|
/** @file IOSystem.h
* @brief File system wrapper for C++. Inherit this class to supply
* custom file handling logic to the Import library.
*/
#ifndef AI_SYSTEMTYPES_H_INC
#define AI_SYSTEMTYPES_H_INC
//#include <boost/static_assert.hpp>
// ----------------------------------------------------------------------------------
/** Standard return type for all library functions.
*
* To check whether or not a function failed check against
* AI_SUCCESS. The error codes are mainly used by the C-API.
*/
enum IOaiReturn
{
//! Indicates that a function was successful
IOAI_SUCCESS = 0x0,
//! Indicates that a function failed
IOAI_FAILURE = -0x1,
//! Indicates that a file was invalid
IOAI_INVALIDFILE = -0x2,
//! Indicates that not enough memory was available
//! to perform the requested operation
IOAI_OUTOFMEMORY = -0x3,
//! Indicates that an illegal argument has been
//! passed to a function. This is rarely used,
//! most functions assert in this case.
IOAI_INVALIDARG = -0x4,
//! Force 32-bit size enum
IO_AI_ENFORCE_ENUM_SIZE = 0x7fffffff
}; // !enum IOaiReturn
// ----------------------------------------------------------------------------------
/** Seek origins (for the virtual file system API)
*/
enum IOaiOrigin
{
//! Beginning of the file
IOaiOrigin_SET = 0x0,
//! Current position of the file pointer
IOaiOrigin_CUR = 0x1,
//! End of the file, offsets must be negative
IOaiOrigin_END = 0x2,
//! Force 32-bit size enum
IO_AI_ORIGIN_ENFORCE_ENUM_SIZE = 0x7fffffff
}; // !enum aiOrigin
#endif //AI_IOSYSTEM_H_INC
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I live in Matão, a small city in Brazil. I studied as Programmer in a College for Software Development in Database.
After finishing the College I have been working with java, c# and Computer Graphics with searches for OpenGL.