|
static int | MAX_FILE_SIZE = 1000000 |
|
This class is used to load MD2 model data and skin texture from files
- Author
- Peter Lager
static void shapes3d.utils.MD2.displayGLcommands |
( |
| ) |
|
|
static |
The remaining methods in this class were used to confirm that the MD2 file was read correctly and are not needed in the distribution version
static void shapes3d.utils.MD2.getGLcommands |
( |
| ) |
|
|
static |
- Get the OpenGL commands to be used (GL_TRIANGLE_STRIP or
- GL_TRIANGLE_FAN) and the vertices (index to points array
- and texture coordinates)
static MD2_Data shapes3d.utils.MD2.getModelData |
( |
PApplet |
app, |
|
|
String |
modelFile, |
|
|
String |
skinFile |
|
) |
| |
|
static |
This method load a single MD model from the given files.
The model requires
1) the name of the file with the model data
2) the name of the skin image file
If you use an existing ID previously used you will get the original model and no attempt will be made to load a new one.
- Parameters
-
app | a PApplet object need to access Processing methods |
modelFile | a model data filename |
skinFile | an image filename |
- Returns
- an MD2_Model object
The documentation for this class was generated from the following file:
- /Users/peter/git/shapes3d-repos/Shapes 3D/src/shapes3d/utils/MD2.java