CPPGPGPU Library - Reference (Doxygen)

Main Page | General Use | Reference | Examples Info | Get/Download CPPGPGPU | SF.net Page

OBJModel.h

Go to the documentation of this file.
00001 #ifndef _OBJ_MODEL_H
00002 #define _OBJ_MODEL_H
00003 
00004 // Apple's annoying non-standard GL include location
00005 #if defined(__APPLE__) || defined(MACOSX)
00006 #include <GLUT/glut.h>
00007 #else
00008 #include <GL/glut.h>
00009 #endif
00010 
00012 
00015 class OBJModel
00016 {
00017 public:
00018     OBJModel();
00019     ~OBJModel();
00020 
00022     bool LoadOBJ( const char * sFileToLoad );
00023 
00025     void Unload( );
00026 
00028     void Render( ) { glCallList( iList ); }
00029 
00031     int * iIndices;
00032 
00034     float * fVertices;
00035 
00037     int iIndexCount;
00038 
00040     int iVertexCount;
00041 private:
00042     GLuint iList;
00043 };
00044 
00045 #endif
00046 
00047 //Copyright 2007 Charles Lohr under the MIT/X11 license.

© 2005-2007 Charles Lohr, Joshua Allen, David Chapman, Andrew Lohr. All material including documentation under the MIT/X11 license.