45 #ifndef AI_EXPORT_H_INC 46 #define AI_EXPORT_H_INC 48 #ifndef ASSIMP_BUILD_NO_EXPORT 106 ASSIMP_API
void aiCopyScene(
const C_STRUCT aiScene* pIn,
107 C_STRUCT aiScene** pOut);
112 ASSIMP_API
void aiFreeScene(
const C_STRUCT aiScene* pIn);
156 ASSIMP_API aiReturn
aiExportScene(
const C_STRUCT aiScene* pScene,
157 const char* pFormatId,
158 const char* pFileName,
159 unsigned int pPreprocessing);
178 const char* pFormatId,
179 const char* pFileName,
181 unsigned int pPreprocessing );
223 ~
aiExportDataBlob() {
delete []
static_cast<unsigned char*
>( data );
delete next; }
229 #endif // __cplusplus 256 #endif // ASSIMP_BUILD_NO_EXPORT 257 #endif // AI_EXPORT_H_INC ASSIMP_API const C_STRUCT aiExportFormatDesc * aiGetExportFormatDescription(size_t pIndex)
Returns a description of the nth export file format.
ASSIMP_API aiReturn aiExportScene(const C_STRUCT aiScene *pScene, const char *pFormatId, const char *pFileName, unsigned int pPreprocessing)
Exports the given scene to a chosen file format and writes the result file(s) to disk.
size_t size
Size of the data in bytes.
Definition: cexport.h:197
Basic data types and primitives, such as vectors or colors.
C-API: File system callbacks.
Definition: cfileio.h:76
C_STRUCT aiString name
Name of the blob.
Definition: cexport.h:214
ASSIMP_API size_t aiGetExportFormatCount(void)
Returns the number of export file formats available in the current Assimp build.
ASSIMP_API aiReturn aiExportSceneEx(const C_STRUCT aiScene *pScene, const char *pFormatId, const char *pFileName, C_STRUCT aiFileIO *pIO, unsigned int pPreprocessing)
Exports the given scene to a chosen file format using custom IO logic supplied by you...
ASSIMP_API void aiCopyScene(const C_STRUCT aiScene *pIn, C_STRUCT aiScene **pOut)
Create a modifiable copy of a scene.
void * data
The data.
Definition: cexport.h:200
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:251
Describes a blob of exported scene data.
Definition: cexport.h:194
ASSIMP_API void aiFreeScene(const C_STRUCT aiScene *pIn)
Frees a scene copy created using aiCopyScene()
ASSIMP_API const C_STRUCT aiExportDataBlob * aiExportSceneToBlob(const C_STRUCT aiScene *pScene, const char *pFormatId, unsigned int pPreprocessing)
Exports the given scene to a chosen file format.
C_STRUCT aiExportDataBlob * next
Pointer to the next blob in the chain or NULL if there is none.
Definition: cexport.h:217
ASSIMP_API void aiReleaseExportBlob(const C_STRUCT aiExportDataBlob *pData)
Releases the memory associated with the given exported data.