|
My Project
|
parsing static model: both binary and text format supported More...
#include <XFileStaticModelParser.h>
Public Member Functions | |
| XFileStaticModelParser (const char *pBuffer, int32 nSize) | |
| Constructor. More... | |
| XFile::Scene * | ParseParaXStaticModel () |
| bool | ParseXRefSection () |
| bool | ParseDataObjectXRefObject (ParaXRefObject &xref) |
Public Member Functions inherited from ParaEngine::XFileParser | |
| XFileParser (const char *pBuffer, int32 nSize) | |
| Constructor. More... | |
| ~XFileParser () | |
| Destructor. More... | |
| XFile::Scene * | GetImportedData (bool bGiveupDataOwnerhip=false) |
| Returns the temporary representation of the imported data. More... | |
| XFileDataObjectPtr | CreateEnumObject () |
Additional Inherited Members | |
Protected Member Functions inherited from ParaEngine::XFileParser | |
| void | ParseHeader () |
| void | ParseFile () |
| void | ParseDataObjectTemplate () |
| void | ParseDataObjectFrame (XFile::Node *pParent) |
| void | ParseDataObjectTransformationMatrix (Matrix4 &pMatrix) |
| void | ParseDataObjectMesh (XFile::Mesh *pMesh) |
| void | ParseDataObjectMeshNormals (XFile::Mesh *pMesh) |
| void | ParseDataObjectMeshTextureCoords (XFile::Mesh *pMesh) |
| void | ParseDataObjectMeshVertexColors (XFile::Mesh *pMesh) |
| void | ParseDataObjectMeshMaterialList (XFile::Mesh *pMesh) |
| void | ParseDataObjectMaterial (XFile::Material *pMaterial) |
| void | ParseDataObjectTextureFilename (std::string &pName) |
| void | ParseDataObjectParaXHeader (ParaXHeaderDef &pName) |
| bool | ParseUnknownDataObject () |
| void | FindNextNoneWhiteSpace () |
| places pointer to next begin of a token, and ignores comments | |
| std::string | GetNextToken () |
| returns next parseable token. Returns empty string if no token there | |
| bool | IsEndOfFile () |
| void | readHeadOfDataObject (std::string *poName=NULL) |
| reads header of dataobject including the opening brace. More... | |
| void | CheckForClosingBrace () |
| checks for closing curly brace, throws exception if not there More... | |
| void | CheckForSemicolon () |
| checks for one following semicolon, throws exception if not there More... | |
| void | CheckForSeparator () |
| checks for a separator char, either a ',' or a ';' | |
| void | TestForSeparator () |
| tests and possibly consumes a separator char, but does nothing if there was no separator | |
| void | GetNextTokenAsString (std::string &poString) |
| reads a x file style string | |
| void | ReadUntilEndOfLine () |
| void | ReadToEndOfDataObject () |
| uint16 | ReadBinWord () |
| uint32 | ReadBinDWord () |
| uint32 | ReadInt () |
| float | ReadFloat () |
| Vector2 | ReadVector2 () |
| Vector3 | ReadVector3 () |
| Vector3 | ReadRGB () |
| LinearColor | ReadRGBA () |
| void | ReadCharArray (char *sOutput, int nCount) |
| void | ThrowException (const std::string &pText) |
| Throws an exception with a line number and the given text. More... | |
| void | FilterHierarchy (XFile::Node *pNode) |
| Filters the imported hierarchy for some degenerated cases that some exporters produce. More... | |
Protected Attributes inherited from ParaEngine::XFileParser | |
| uint32 | mMajorVersion |
| uint32 | mMinorVersion |
| version numbers | |
| bool | mIsBinaryFormat |
| true if the file is in binary, false if it's in text form | |
| uint32 | mBinaryFloatSize |
| float size in bytes, either 4 or 8 | |
| uint32 | mBinaryNumCount |
| const char * | P |
| const char * | End |
| uint32 | mLineNumber |
| Line number when reading in text format. | |
| XFile::Scene * | mScene |
| Imported data. | |
parsing static model: both binary and text format supported
| ParaEngine::XFileStaticModelParser::XFileStaticModelParser | ( | const char * | pBuffer, |
| int32 | nSize | ||
| ) |
Constructor.
Creates a data structure out of the XFile given in the memory block.
| pBuffer | Null-terminated memory buffer containing the XFile |
1.8.12