#include <armodels.h>
Static Public Member Functions | |
| ARObjFile * | Add (const char *filename, unsigned int key) |
| Add a new obj file to the current list of entries. | |
| ARObjFile * | Item (unsigned int key) |
| Returns a pointer to the Obj file associated with the specified key. | |
| void | glDraw (unsigned int key) |
| Draws the contents of the obj file using OpenGL. | |
| void | glDrawList (unsigned int key) |
| Draw the contents using a glDrawList. | |
| void | Clear () |
| Removes all entries from the current list of models. | |
| void | Refresh () |
| Reloads all the models. | |
The vector of obj files is static therefore no instance of this class needs to created.
For example to add a new obj file to the current entries use...
ARModels::Add( "MyFilename.obj", 1001 );
ARModels::glDraw( 1001 );
ARModels::glDrawList( 1001 );
|
||||||||||||
|
Add a new obj file to the current list of entries.
|
|
|
Draws the contents of the obj file using OpenGL. If the object to be draw is static (i.e. never modified) then the preferred and faster method is to us glDrawList.
|
|
|
Draw the contents using a glDrawList. The first time this method is called will automatically create the draw list.
|
|
|
Returns a pointer to the Obj file associated with the specified key.
|
1.3.9.1