|
@@ -39,7 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
---------------------------------------------------------------------------
|
|
|
*/
|
|
|
|
|
|
-/** @file assimp.h
|
|
|
+/** @file cimport.h
|
|
|
* @brief Defines the C-API to the Open Asset Import Library.
|
|
|
*/
|
|
|
#ifndef AI_ASSIMP_H_INC
|
|
@@ -139,7 +139,17 @@ ASSIMP_API const C_STRUCT aiScene* aiImportFileEx(
|
|
|
// --------------------------------------------------------------------------------
|
|
|
/** Same as #aiImportFileEx, but adds an extra parameter containing importer settings.
|
|
|
*
|
|
|
+ * @param pFile Path and filename of the file to be imported,
|
|
|
+ * expected to be a null-terminated c-string. NULL is not a valid value.
|
|
|
+ * @param pFlags Optional post processing steps to be executed after
|
|
|
+ * a successful import. Provide a bitwise combination of the
|
|
|
+ * #aiPostProcessSteps flags.
|
|
|
+ * @param pFS aiFileIO structure. Will be used to open the model file itself
|
|
|
+ * and any other files the loader needs to open. Pass NULL to use the default
|
|
|
+ * implementation.
|
|
|
* @param pProps #aiPropertyStore instance containing import settings.
|
|
|
+ * @return Pointer to the imported data or NULL if the import failed.
|
|
|
+ * @note Include <aiFileIO.h> for the definition of #aiFileIO.
|
|
|
* @see aiImportFileEx
|
|
|
*/
|
|
|
ASSIMP_API const C_STRUCT aiScene* aiImportFileExWithProperties(
|
|
@@ -188,7 +198,29 @@ ASSIMP_API const C_STRUCT aiScene* aiImportFileFromMemory(
|
|
|
// --------------------------------------------------------------------------------
|
|
|
/** Same as #aiImportFileFromMemory, but adds an extra parameter containing importer settings.
|
|
|
*
|
|
|
+ * @param pBuffer Pointer to the file data
|
|
|
+ * @param pLength Length of pBuffer, in bytes
|
|
|
+ * @param pFlags Optional post processing steps to be executed after
|
|
|
+ * a successful import. Provide a bitwise combination of the
|
|
|
+ * #aiPostProcessSteps flags. If you wish to inspect the imported
|
|
|
+ * scene first in order to fine-tune your post-processing setup,
|
|
|
+ * consider to use #aiApplyPostProcessing().
|
|
|
+ * @param pHint An additional hint to the library. If this is a non empty string,
|
|
|
+ * the library looks for a loader to support the file extension specified by pHint
|
|
|
+ * and passes the file to the first matching loader. If this loader is unable to
|
|
|
+ * completely the request, the library continues and tries to determine the file
|
|
|
+ * format on its own, a task that may or may not be successful.
|
|
|
+ * Check the return value, and you'll know ...
|
|
|
* @param pProps #aiPropertyStore instance containing import settings.
|
|
|
+ * @return A pointer to the imported data, NULL if the import failed.
|
|
|
+ *
|
|
|
+ * @note This is a straightforward way to decode models from memory
|
|
|
+ * buffers, but it doesn't handle model formats that spread their
|
|
|
+ * data across multiple files or even directories. Examples include
|
|
|
+ * OBJ or MD3, which outsource parts of their material info into
|
|
|
+ * external scripts. If you need full functionality, provide
|
|
|
+ * a custom IOSystem to make Assimp find these files and use
|
|
|
+ * the regular aiImportFileEx()/aiImportFileExWithProperties() API.
|
|
|
* @see aiImportFileFromMemory
|
|
|
*/
|
|
|
ASSIMP_API const C_STRUCT aiScene* aiImportFileFromMemoryWithProperties(
|
|
@@ -210,7 +242,7 @@ ASSIMP_API const C_STRUCT aiScene* aiImportFileFromMemoryWithProperties(
|
|
|
* meaning this is still the same #aiScene which you passed for pScene. However,
|
|
|
* _if_ post-processing failed, the scene could now be NULL. That's quite a rare
|
|
|
* case, post processing steps are not really designed to 'fail'. To be exact,
|
|
|
- * the #aiProcess_ValidateDS flag is currently the only post processing step
|
|
|
+ * the #aiProcess_ValidateDataStructure flag is currently the only post processing step
|
|
|
* which can actually cause the scene to be reset to NULL.
|
|
|
*/
|
|
|
ASSIMP_API const C_STRUCT aiScene* aiApplyPostProcessing(
|
|
@@ -266,7 +298,7 @@ ASSIMP_API void aiEnableVerboseLogging(aiBool d);
|
|
|
// --------------------------------------------------------------------------------
|
|
|
/** Detach a custom log stream from the libraries' logging system.
|
|
|
*
|
|
|
- * This is the counterpart of #aiAttachPredefinedLogStream. If you attached a stream,
|
|
|
+ * This is the counterpart of #aiAttachLogStream. If you attached a stream,
|
|
|
* don't forget to detach it again.
|
|
|
* @param stream The log stream to be detached.
|
|
|
* @return AI_SUCCESS if the log stream has been detached successfully.
|
|
@@ -356,8 +388,9 @@ ASSIMP_API void aiReleasePropertyStore(C_STRUCT aiPropertyStore* p);
|
|
|
* interface, properties are always shared by all imports. It is not possible to
|
|
|
* specify them per import.
|
|
|
*
|
|
|
+ * @param store Store to modify. Use #aiCreatePropertyStore to obtain a store.
|
|
|
* @param szName Name of the configuration property to be set. All supported
|
|
|
- * public properties are defined in the config.h header file (#AI_CONFIG_XXX).
|
|
|
+ * public properties are defined in the config.h header file (AI_CONFIG_XXX).
|
|
|
* @param value New value for the property
|
|
|
*/
|
|
|
ASSIMP_API void aiSetImportPropertyInteger(
|
|
@@ -372,8 +405,9 @@ ASSIMP_API void aiSetImportPropertyInteger(
|
|
|
* interface, properties are always shared by all imports. It is not possible to
|
|
|
* specify them per import.
|
|
|
*
|
|
|
+ * @param store Store to modify. Use #aiCreatePropertyStore to obtain a store.
|
|
|
* @param szName Name of the configuration property to be set. All supported
|
|
|
- * public properties are defined in the config.h header file (#AI_CONFIG_XXX).
|
|
|
+ * public properties are defined in the config.h header file (AI_CONFIG_XXX).
|
|
|
* @param value New value for the property
|
|
|
*/
|
|
|
ASSIMP_API void aiSetImportPropertyFloat(
|
|
@@ -388,10 +422,10 @@ ASSIMP_API void aiSetImportPropertyFloat(
|
|
|
* interface, properties are always shared by all imports. It is not possible to
|
|
|
* specify them per import.
|
|
|
*
|
|
|
- * @param property store to modify. Use #aiCreatePropertyStore to obtain a store.
|
|
|
+ * @param store Store to modify. Use #aiCreatePropertyStore to obtain a store.
|
|
|
* @param szName Name of the configuration property to be set. All supported
|
|
|
- * public properties are defined in the config.h header file (#AI_CONFIG_XXX).
|
|
|
- * @param value New value for the property
|
|
|
+ * public properties are defined in the config.h header file (AI_CONFIG_XXX).
|
|
|
+ * @param st New value for the property
|
|
|
*/
|
|
|
ASSIMP_API void aiSetImportPropertyString(
|
|
|
C_STRUCT aiPropertyStore* store,
|
|
@@ -405,10 +439,10 @@ ASSIMP_API void aiSetImportPropertyString(
|
|
|
* interface, properties are always shared by all imports. It is not possible to
|
|
|
* specify them per import.
|
|
|
*
|
|
|
- * @param property store to modify. Use #aiCreatePropertyStore to obtain a store.
|
|
|
+ * @param store Store to modify. Use #aiCreatePropertyStore to obtain a store.
|
|
|
* @param szName Name of the configuration property to be set. All supported
|
|
|
- * public properties are defined in the config.h header file (#AI_CONFIG_XXX).
|
|
|
- * @param value New value for the property
|
|
|
+ * public properties are defined in the config.h header file (AI_CONFIG_XXX).
|
|
|
+ * @param mat New value for the property
|
|
|
*/
|
|
|
ASSIMP_API void aiSetImportPropertyMatrix(
|
|
|
C_STRUCT aiPropertyStore* store,
|