My Project
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ParaEngine::CParaXSerializer Class Reference

this class is used for importing and exporting ParaX model from or to memory files. More...

#include <ParaXSerializer.h>

Public Member Functions

 CParaXSerializer (void)
 CParaXSerializer //.
 
const byte * GetRawData (int nOffset) const
 get the raw data pointer at the specified offset. More...
 
void * LoadParaXMesh (CParaFile &f)
 load an existing mesh at one time. More...
 

Static Public Member Functions

static void ExportParaXMesh (const string &filePath, CParaXModel *pMesh)
 

Static Public Attributes

static SerializerOptions g_pDefaultOption
 default option
 

Detailed Description

this class is used for importing and exporting ParaX model from or to memory files.

currently, it supports ParaX and M2 file importing and ParaX file exporting.

Member Function Documentation

§ GetRawData()

const byte* ParaEngine::CParaXSerializer::GetRawData ( int  nOffset) const
inline

get the raw data pointer at the specified offset.

return NULL if raw data is not available

§ LoadParaXMesh()

void * CParaXSerializer::LoadParaXMesh ( CParaFile f)

load an existing mesh at one time.

To selectively parse file, use LoadParaX_XXX() functions.

Parameters
ffile to be saved to.
Returns
: return a pointer to the loaded mesh object. The mesh object is allocated on heap using new operator, one needs to delete it manually. If the function failed, NULL is returned

The documentation for this class was generated from the following files: