Click here to Skip to main content
15,896,201 members
Articles / Desktop Programming / MFC

OAG Library (OpenGL) Part 1 - Setting Up the Library for an MFC Application

Rate me:
Please Sign up or sign in to vote.
4.40/5 (11 votes)
7 Aug 2011CPOL3 min read 56.3K   56  
OAG is a library written in C++. With this library, you can create OpenGL based applications.
/** @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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Brazil Brazil
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.

Comments and Discussions