Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.utils.MD2 Class Reference

Static Public Member Functions

static MD2_Data getModelData (PApplet app, String modelFile, String skinFile)
 
static void getGLcommands ()
 
static void displayGLcommands ()
 
static void displayModelStates ()
 
static void displayFrameNames ()
 
static void displayHeader ()
 

Static Public Attributes

static int MAX_FILE_SIZE = 1000000
 

Detailed Description

This class is used to load MD2 model data and skin texture from files

Author
Peter Lager

Member Function Documentation

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
appa PApplet object need to access Processing methods
modelFilea model data filename
skinFilean image filename
Returns
an MD2_Model object

The documentation for this class was generated from the following file: