#include <arobjfile.h>
Public Member Functions | |
| bool | LoadFromFile (const char *filename) |
| Loads the contents from the specified filename. | |
| bool | Refresh () |
| Reloads the model data from the obj file. | |
| GLuint | CreateDisplayList () |
| Creates a display list for use by OpenGL. | |
| void | glDraw () |
| Draws the contents of the obj file using OpenGL. | |
| void | glDrawList () |
| Draw the contents using a glDrawList. | |
| void | Clear () |
| Clears the contents of the ARObjFile instance. | |
| void | SetEnableMaterials (bool enable=true) |
| Defines whether materials loaded from the associated MTL file should be used. | |
This class can load the contents of an OBJ file. It will also load the contents of the associated MTL file if one exists. Once loaded the contents can be drawn within an OpenGL context with a single call.
To manage many OBJ files, see the the ARModels static class.
|
|
Creates a display list for use by OpenGL.
|
|
|
Draw the contents using a glDrawList. The first time this method is called will automatically create the draw list. |
|
|
Loads the contents from the specified filename.
|
|
|
Reloads the model data from the obj file. Useful for when modifying the model and what to see the effect without having to reload the application.
|
|
|
Defines whether materials loaded from the associated MTL file should be used.
|
1.3.9.1