Importer class to load MD3 files.
More...
Inherits Assimp::BaseImporter.
|
| enum | TextFileMode { ALLOW_EMPTY,
FORBID_EMPTY
} |
| | Enum to define, if empty files are ok or not. More...
|
| |
| static bool | CheckMagicToken (IOSystem *pIOHandler, const std::string &pFile, const void *magic, unsigned int num, unsigned int offset=0, unsigned int size=4) |
| | Check whether a file starts with one or more magic tokens. More...
|
| |
| static void | ConvertToUTF8 (std::vector< char > &data) |
| | An utility for all text file loaders. More...
|
| |
| static void | ConvertUTF8toISO8859_1 (std::string &data) |
| | An utility for all text file loaders. More...
|
| |
| template<typename T > |
| static AI_FORCE_INLINE void | CopyVector (std::vector< T > &vec, T *&out, unsigned int &outLength) |
| | Utility function to move a std::vector into a aiScene array. More...
|
| |
| static std::string | GetExtension (const std::string &pFile) |
| | Extract file extension from a string. More...
|
| |
| static bool | SearchFileHeaderForToken (IOSystem *pIOSystem, const std::string &file, const char **tokens, unsigned int numTokens, unsigned int searchBytes=200, bool tokensSol=false) |
| | A utility for CanRead(). More...
|
| |
| static bool | SimpleExtensionCheck (const std::string &pFile, const char *ext0, const char *ext1=NULL, const char *ext2=NULL) |
| | Check whether a file has a specific file extension. More...
|
| |
| static void | TextFileToBuffer (IOStream *stream, std::vector< char > &data, TextFileMode mode=FORBID_EMPTY) |
| | Utility for text file loaders which copies the contents of the file into a memory buffer and converts it to our UTF8 representation. More...
|
| |
Importer class to load MD3 files.
◆ MD3Importer()
| MD3Importer::MD3Importer |
( |
| ) |
|
◆ ~MD3Importer()
| MD3Importer::~MD3Importer |
( |
| ) |
|
◆ CanRead()
| bool MD3Importer::CanRead |
( |
const std::string & |
pFile, |
|
|
IOSystem * |
pIOHandler, |
|
|
bool |
checkSig |
|
) |
| const |
|
virtual |
◆ ConvertPath()
| void MD3Importer::ConvertPath |
( |
const char * |
texture_name, |
|
|
const char * |
header_path, |
|
|
std::string & |
out |
|
) |
| const |
|
protected |
Convert a texture path in a MD3 file to a proper value.
- Parameters
-
| [in] | texture_name | Path to be converted |
| [in] | header_path | Base path specified in MD3 header |
| [out] | out | Receives the converted output string |
◆ GetInfo()
Return importer meta information.
See #BaseImporter::GetInfo for the details
Implements Assimp::BaseImporter.
◆ InternReadFile()
| void MD3Importer::InternReadFile |
( |
const std::string & |
pFile, |
|
|
aiScene * |
pScene, |
|
|
IOSystem * |
pIOHandler |
|
) |
| |
|
protectedvirtual |
◆ ReadMultipartFile()
| bool MD3Importer::ReadMultipartFile |
( |
| ) |
|
|
protected |
Read a Q3 multipart file.
- Returns
- true if multi part has been processed
◆ ReadShader()
Try to read the shader for a MD3 file.
- Parameters
-
| fill | Receives output information |
◆ ReadSkin()
Try to read the skin for a MD3 file.
- Parameters
-
| fill | Receives output information |
◆ SetupProperties()
| void MD3Importer::SetupProperties |
( |
const Importer * |
pImp | ) |
|
|
virtual |
Called prior to ReadFile().
The function is a request to the importer to update its configuration basing on the Importer's configuration property list.
Reimplemented from Assimp::BaseImporter.
◆ ValidateHeaderOffsets()
| void MD3Importer::ValidateHeaderOffsets |
( |
| ) |
|
|
protected |
Validate offsets in the header.
◆ ValidateSurfaceHeaderOffsets()
| void MD3Importer::ValidateSurfaceHeaderOffsets |
( |
const MD3::Surface * |
pcSurfHeader | ) |
|
|
protected |
◆ configFrameID
| unsigned int Assimp::MD3Importer::configFrameID |
|
protected |
Configuration option: frame to be loaded.
◆ configHandleMP
| bool Assimp::MD3Importer::configHandleMP |
|
protected |
Configuration option: process multi-part files.
◆ configShaderFile
| std::string Assimp::MD3Importer::configShaderFile |
|
protected |
Configuration option: name or path of shader.
◆ configSkinFile
| std::string Assimp::MD3Importer::configSkinFile |
|
protected |
Configuration option: name of skin file to be read.
◆ configSpeedFlag
| bool Assimp::MD3Importer::configSpeedFlag |
|
protected |
Configuration option: speed flag was set?
◆ filename
| std::string Assimp::MD3Importer::filename |
|
protected |
Pure file we're currently reading.
◆ fileSize
| unsigned int Assimp::MD3Importer::fileSize |
|
protected |
Size of the file, in bytes.
◆ mBuffer
| BE_NCONST unsigned char* Assimp::MD3Importer::mBuffer |
|
protected |
◆ mFile
| std::string Assimp::MD3Importer::mFile |
|
protected |
◆ mIOHandler
| IOSystem* Assimp::MD3Importer::mIOHandler |
|
protected |
IO system to be used to access the data.
◆ mScene
| aiScene* Assimp::MD3Importer::mScene |
|
protected |
Output scene to be filled.
◆ path
| std::string Assimp::MD3Importer::path |
|
protected |
◆ pcHeader
The documentation for this class was generated from the following files: