openpiano.gl
Class GLModel
java.lang.Object
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 |
GLModel
public GLModel(BufferedReader file,
javax.media.opengl.GL gl)
- Constructs a simple GLModel (vertices and faces)
- Parameters:
file - model file to loadgl - the relevant GL context
draw
public void draw(javax.media.opengl.GL gl)
- Draws the model
- Parameters:
gl - the relevant GL context