47 #ifndef AI_ASSIMP_H_INC 48 #define AI_ASSIMP_H_INC 59 typedef void (*aiLogStreamCallback)(
const char* ,
char* );
115 unsigned int pFlags);
198 unsigned int pLength,
232 unsigned int pLength,
253 const C_STRUCT
aiScene* pScene,
254 unsigned int pFlags);
331 const C_STRUCT
aiScene* pScene);
350 const char* szExtension);
564 #endif // AI_ASSIMP_H_INC ASSIMP_API void aiReleasePropertyStore(C_STRUCT aiPropertyStore *p)
Delete a property store.
ASSIMP_API void aiIdentityMatrix4(C_STRUCT aiMatrix4x4 *mat)
Get a 4x4 identity matrix.
Basic data types and primitives, such as vectors or colors.
C-API: File system callbacks.
Definition: cfileio.h:78
Definition: matrix4x4.h:269
ASSIMP_API void aiTransformVecByMatrix4(C_STRUCT aiVector3D *vec, const C_STRUCT aiMatrix4x4 *mat)
Transform a vector by a 4x4 matrix.
ASSIMP_API void aiDecomposeMatrix(const C_STRUCT aiMatrix4x4 *mat, C_STRUCT aiVector3D *scaling, C_STRUCT aiQuaternion *rotation, C_STRUCT aiVector3D *position)
Decompose a transformation matrix into its rotational, translational and scaling components.
ASSIMP_API void aiSetImportPropertyFloat(C_STRUCT aiPropertyStore *store, const char *szName, ai_real value)
Set a floating-point property.
ASSIMP_API void aiEnableVerboseLogging(aiBool d)
Enable verbose logging.
ASSIMP_API void aiAttachLogStream(const C_STRUCT aiLogStream *stream)
Attach a custom log stream to the libraries' logging system.
Definition: quaternion.h:123
char * user
user data to be passed to the callback
Definition: cimport.h:74
ASSIMP_API size_t aiGetImportFormatCount(void)
Returns the number of import file formats available in the current Assimp build.
ASSIMP_API const C_STRUCT aiScene * aiImportFileFromMemoryWithProperties(const char *pBuffer, unsigned int pLength, unsigned int pFlags, const char *pHint, const C_STRUCT aiPropertyStore *pProps)
Same as aiImportFileFromMemory, but adds an extra parameter containing importer settings.
ASSIMP_API void aiGetExtensionList(C_STRUCT aiString *szOut)
Get a list of all file extensions supported by ASSIMP.
Stores the memory requirements for different components (e.g.
Definition: types.h:463
aiReturn
Standard return type for some library functions.
Definition: types.h:375
ASSIMP_API C_ENUM aiReturn aiDetachLogStream(const C_STRUCT aiLogStream *stream)
Detach a custom log stream from the libraries' logging system.
C-API: Represents a log stream.
Definition: cimport.h:68
int aiBool
Our own C boolean type.
Definition: cimport.h:92
GLM_FUNC_DECL qua< T, Q > rotation(vec< 3, T, Q > const &orig, vec< 3, T, Q > const &dest)
Compute the rotation between two vectors.
Definition: quaternion.inl:122
ASSIMP_API void aiSetImportPropertyString(C_STRUCT aiPropertyStore *store, const char *szName, const C_STRUCT aiString *st)
Set a string property.
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:252
ASSIMP_API void aiMultiplyMatrix4(C_STRUCT aiMatrix4x4 *dst, const C_STRUCT aiMatrix4x4 *src)
Multiply two 4x4 matrices.
ASSIMP_API void aiSetImportPropertyInteger(C_STRUCT aiPropertyStore *store, const char *szName, int value)
Set an integer property.
ASSIMP_API const C_STRUCT aiScene * aiImportFileFromMemory(const char *pBuffer, unsigned int pLength, unsigned int pFlags, const char *pHint)
Reads the given file from a given memory buffer,.
ASSIMP_API const C_STRUCT aiScene * aiImportFileExWithProperties(const char *pFile, unsigned int pFlags, C_STRUCT aiFileIO *pFS, const C_STRUCT aiPropertyStore *pProps)
Same as aiImportFileEx, but adds an extra parameter containing importer settings. ...
ASSIMP_API C_STRUCT aiLogStream aiGetPredefinedLogStream(C_ENUM aiDefaultLogStream pStreams, const char *file)
Get one of the predefine log streams.
ASSIMP_API aiBool aiIsExtensionSupported(const char *szExtension)
Returns whether a given file extension is supported by ASSIMP.
Meta information about a particular importer.
Definition: importerdesc.h:89
ASSIMP_API void aiMultiplyMatrix3(C_STRUCT aiMatrix3x3 *dst, const C_STRUCT aiMatrix3x3 *src)
Multiply two 3x3 matrices.
ASSIMP_API const C_STRUCT aiScene * aiImportFile(const char *pFile, unsigned int pFlags)
Reads the given file and returns its content.
The root structure of the imported data.
Definition: scene.h:240
ASSIMP_API const C_STRUCT aiImporterDesc * aiGetImportFormatDescription(size_t pIndex)
Returns a description of the nth import file format.
aiDefaultLogStream
Enumerates predefined log streaming destinations.
Definition: types.h:429
Definition: vector3.h:135
aiImporterFlags, aiImporterDesc implementation.
ASSIMP_API void aiTransposeMatrix4(C_STRUCT aiMatrix4x4 *mat)
Transpose a 4x4 matrix.
ASSIMP_API void aiIdentityMatrix3(C_STRUCT aiMatrix3x3 *mat)
Get a 3x3 identity matrix.
ASSIMP_API const char * aiGetErrorString(void)
Returns the error text of the last failed import process.
ASSIMP_API void aiTransposeMatrix3(C_STRUCT aiMatrix3x3 *mat)
Transpose a 3x3 matrix.
ASSIMP_API void aiTransformVecByMatrix3(C_STRUCT aiVector3D *vec, const C_STRUCT aiMatrix3x3 *mat)
Transform a vector by a 3x3 matrix.
ASSIMP_API const C_STRUCT aiScene * aiApplyPostProcessing(const C_STRUCT aiScene *pScene, unsigned int pFlags)
Apply post-processing to an already-imported scene.
ASSIMP_API void aiCreateQuaternionFromMatrix(C_STRUCT aiQuaternion *quat, const C_STRUCT aiMatrix3x3 *mat)
Construct a quaternion from a 3x3 rotation matrix.
ASSIMP_API void aiReleaseImport(const C_STRUCT aiScene *pScene)
Releases all resources associated with the given import process.
ASSIMP_API C_STRUCT aiPropertyStore * aiCreatePropertyStore(void)
Create an empty property store.
ASSIMP_API const C_STRUCT aiScene * aiImportFileEx(const char *pFile, unsigned int pFlags, C_STRUCT aiFileIO *pFS)
Reads the given file using user-defined I/O functions and returns its content.
ASSIMP_API void aiSetImportPropertyMatrix(C_STRUCT aiPropertyStore *store, const char *szName, const C_STRUCT aiMatrix4x4 *mat)
Set a matrix property.
Definition: matrix3x3.h:174
C-API: Represents an opaque set of settings to be used during importing.
Definition: cimport.h:89
ASSIMP_API void aiGetMemoryRequirements(const C_STRUCT aiScene *pIn, C_STRUCT aiMemoryInfo *in)
Get the approximated storage required by an imported asset.
qua< float, defaultp > quat
Quaternion of single-precision floating-point numbers.
Definition: quaternion_float.hpp:35
aiLogStreamCallback callback
callback to be called
Definition: cimport.h:71
ASSIMP_API void aiDetachAllLogStreams(void)
Detach all active log streams from the libraries' logging system.