openpiano.gl
Class GLModel

java.lang.Object
  extended by openpiano.gl.GLModel
All Implemented Interfaces:
Cloneable

public class GLModel
extends Object
implements Cloneable

Wavefront model loader class. Based on code examples of JautOGL by Evangelos Pournaras

Version:
1.0, 07/30/08
Author:
Sascha Westermann

Constructor Summary
GLModel(BufferedReader file, javax.media.opengl.GL gl)
          Constructs a simple GLModel (vertices and faces)
 
Method Summary
 void draw(javax.media.opengl.GL gl)
          Draws the model
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLModel

public GLModel(BufferedReader file,
               javax.media.opengl.GL gl)
Constructs a simple GLModel (vertices and faces)

Parameters:
file - model file to load
gl - the relevant GL context
Method Detail

draw

public void draw(javax.media.opengl.GL gl)
Draws the model

Parameters:
gl - the relevant GL context