|
| MaterialSerializer () |
| default constructor
|
|
virtual | ~MaterialSerializer () |
| default destructor
|
|
void | addListener (Listener *listener) |
| Register a listener to this Serializer.
|
|
void | beginSection (unsigned short level, const bool useMainBuffer=true) |
|
void | clearQueue () |
| Clears the internal buffer.
|
|
void | endSection (unsigned short level, const bool useMainBuffer=true) |
|
void | exportMaterial (const MaterialPtr &pMat, const String &filename, bool exportDefaults=false, const bool includeProgDef=false, const String &programFilename="", const String &materialName="") |
| Exports a single in-memory Material to the named material script file.
|
|
void | exportQueued (const String &filename, const bool includeProgDef=false, const String &programFilename="") |
| Exports queued material(s) to a named material script file.
|
|
const String & | getQueuedAsString () const |
| Returns a string representing the parsed material(s)
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new
|
|
void * | operator new[] (size_t sz) |
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info
|
|
void | parseScript (DataStreamPtr &stream, const String &groupName) |
| Parses a Material script file passed as a stream.
|
|
void | queueForExport (const MaterialPtr &pMat, bool clearQueued=false, bool exportDefaults=false, const String &materialName="") |
| Queue an in-memory Material to the internal buffer for export.
|
|
String | quoteWord (const String &val) |
|
void | removeListener (Listener *listener) |
| Remove a listener from this Serializer.
|
|
void | writeAttribute (unsigned short level, const String &att, const bool useMainBuffer=true) |
|
void | writeComment (unsigned short level, const String &comment, const bool useMainBuffer=true) |
|
void | writeValue (const String &val, const bool useMainBuffer=true) |
|
|
String | convertFiltering (FilterOptions fo) |
|
void | finishProgramDefinition (void) |
| Internal method for saving a program definition which has been built up.
|
|
void | fireGpuProgramRefEvent (SerializeEvent event, bool &skip, const String &attrib, const GpuProgramPtr &program, const GpuProgramParametersSharedPtr ¶ms, GpuProgramParameters *defaultParams) |
| Internal methods that invokes registered listeners callback.
|
|
void | fireMaterialEvent (SerializeEvent event, bool &skip, const Material *mat) |
| Internal methods that invokes registered listeners callback.
|
|
void | firePassEvent (SerializeEvent event, bool &skip, const Pass *pass) |
| Internal methods that invokes registered listeners callback.
|
|
void | fireTechniqueEvent (SerializeEvent event, bool &skip, const Technique *tech) |
| Internal methods that invokes registered listeners callback.
|
|
void | fireTextureUnitStateEvent (SerializeEvent event, bool &skip, const TextureUnitState *textureUnit) |
| Internal methods that invokes registered listeners callback.
|
|
bool | invokeParser (String &line, AttribParserList &parsers) |
| internal method for finding & invoking an attribute parser.
|
|
bool | parseScriptLine (String &line) |
| internal method for parsing a material
|
|
void | writeColourValue (const ColourValue &colour, bool writeAlpha=false) |
|
void | writeCompareFunction (const CompareFunction cf) |
|
void | writeEnvironmentMapEffect (const TextureUnitState::TextureEffect &effect, const TextureUnitState *pTex) |
|
void | writeFragmentProgramRef (const Pass *pPass) |
|
void | writeGpuProgramParameter (const String &commandName, const String &identifier, const GpuProgramParameters::AutoConstantEntry *autoEntry, const GpuProgramParameters::AutoConstantEntry *defaultAutoEntry, bool isFloat, bool isDouble, size_t physicalIndex, size_t physicalSize, const GpuProgramParametersSharedPtr ¶ms, GpuProgramParameters *defaultParams, const unsigned short level, const bool useMainBuffer) |
|
void | writeGPUProgramParameters (const GpuProgramParametersSharedPtr ¶ms, GpuProgramParameters *defaultParams, const unsigned short level=4, const bool useMainBuffer=true) |
|
void | writeGpuProgramRef (const String &attrib, const GpuProgramPtr &program, const GpuProgramParametersSharedPtr ¶ms) |
|
void | writeGpuPrograms (void) |
|
void | writeLayerBlendOperationEx (const LayerBlendOperationEx op) |
|
void | writeLayerBlendSource (const LayerBlendSource lbs) |
|
void | writeLowLevelGpuProgramParameters (const GpuProgramParametersSharedPtr ¶ms, GpuProgramParameters *defaultParams, const unsigned short level=4, const bool useMainBuffer=true) |
|
void | writeMaterial (const MaterialPtr &pMat, const String &materialName="") |
|
void | writeNamedGpuProgramParameters (const GpuProgramParametersSharedPtr ¶ms, GpuProgramParameters *defaultParams, const unsigned short level=4, const bool useMainBuffer=true) |
|
void | writePass (const Pass *pPass) |
|
void | writeRotationEffect (const TextureUnitState::TextureEffect &effect, const TextureUnitState *pTex) |
|
void | writeSceneBlendFactor (const SceneBlendFactor c_src, const SceneBlendFactor c_dest, const SceneBlendFactor a_src, const SceneBlendFactor a_dest) |
|
void | writeSceneBlendFactor (const SceneBlendFactor sbf) |
|
void | writeSceneBlendFactor (const SceneBlendFactor sbf_src, const SceneBlendFactor sbf_dest) |
|
void | writeScrollEffect (const TextureUnitState::TextureEffect &effect, const TextureUnitState *pTex) |
|
void | writeShadowCasterFragmentProgramRef (const Pass *pPass) |
|
void | writeShadowCasterVertexProgramRef (const Pass *pPass) |
|
void | writeShadowReceiverFragmentProgramRef (const Pass *pPass) |
|
void | writeShadowReceiverVertexProgramRef (const Pass *pPass) |
|
void | writeTechnique (const Technique *pTech) |
|
void | writeTextureUnit (const TextureUnitState *pTex) |
|
void | writeTransformEffect (const TextureUnitState::TextureEffect &effect, const TextureUnitState *pTex) |
|
void | writeVertexProgramRef (const Pass *pPass) |
|
Class for serializing Materials to / from a .material script.
Definition at line 106 of file OgreMaterialSerializer.h.