OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
HLMS stands for "High Level Material System". More...
#include <OgreHlmsJson.h>
Classes | |
struct | NamedBlocks |
HLMS stands for "High Level Material System".
Ogre::HlmsJson::HlmsJson | ( | HlmsManager * | hlmsManager, |
HlmsJsonListener * | listener | ||
) |
Ogre::HlmsJson::~HlmsJson | ( | ) |
String Ogre::HlmsJson::getName | ( | const HlmsBlendblock * | blendblock | ) | const |
String Ogre::HlmsJson::getName | ( | const HlmsMacroblock * | macroblock | ) | const |
|
static |
void Ogre::HlmsJson::loadMaterials | ( | const String & | filename, |
const String & | resourceGroup, | ||
const char * | jsonString, | ||
const String & | additionalTextureExtension | ||
) |
Loads all Hlms datablocks from a JSON formatted string.
filename | Name of the file. It's only used for providing additional info on the log about where it is failing. |
resourceGroup | See filename argument. |
jsonString | Null-terminated C string (UTF8) containing valid JSON with the Hlms definitions. |
additionalTextureExtension | Additional string to append to the texture files while loading. e.g. if texture to load is "mytex.png" and additionalTextureExtension = ".dds" then the actual texture loaded will be "mytex.png.dds" Leave it blank if you don't know what to put |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void Ogre::HlmsJson::saveMaterial | ( | const HlmsDatablock * | datablock, |
String & | outString, | ||
const String & | additionalTextureExtension | ||
) |
Saves a single datablock to a string.
datablock | Material to save. |
outString | [out] String with valid JSON output. String is appended to existing contents. |
additionalTextureExtension | Additional string to append to the texture files while saving. e.g. if texture name is "mytex.png" and additionalTextureExtension = ".dds" then the actual texture saved will be "mytex.png.dds" Leave it blank if you don't know what to put |
void Ogre::HlmsJson::saveMaterials | ( | const Hlms * | hlms, |
String & | outString, | ||
const String & | additionalTextureExtension | ||
) |
Saves all the Datablocks defined in the given Hlms into a JSON formatted string.
hlms | Hlms from whose materials to save. |
outString | [out] String with valid JSON output. String is appended to existing contents. |
additionalTextureExtension | Additional string to append to the texture files while saving. e.g. if texture name is "mytex.png" and additionalTextureExtension = ".dds" then the actual texture saved will be "mytex.png.dds" Leave it blank if you don't know what to put |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |