ssmith.opengl
Class Model

java.lang.Object
  extended by ssmith.opengl.Model

public final class Model
extends java.lang.Object


Constructor Summary
Model(ModelData data, net.java.games.jogl.GL gl, int list_no, IModelDrawer col_select)
          Create a new OBJ model that will render the object data specified in OpenGL
 
Method Summary
static int getNextListNo()
           
static Model LoadObj(java.lang.String model_filename, net.java.games.jogl.GL gl, int list_no, float scale, IModelDrawer colour_sel)
           
 void render(net.java.games.jogl.GL gl)
          Render the OBJ Model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model(ModelData data,
             net.java.games.jogl.GL gl,
             int list_no,
             IModelDrawer col_select)
Create a new OBJ model that will render the object data specified in OpenGL

Parameters:
data - The data to be rendered for this model
Method Detail

getNextListNo

public static int getNextListNo()

render

public void render(net.java.games.jogl.GL gl)
Render the OBJ Model


LoadObj

public static Model LoadObj(java.lang.String model_filename,
                            net.java.games.jogl.GL gl,
                            int list_no,
                            float scale,
                            IModelDrawer colour_sel)
                     throws java.io.IOException
Throws:
java.io.IOException