jjdh.opengl.meshes.common
Class Flag
java.lang.Object
jjdh.opengl.meshes.core.AbstractMesh
jjdh.opengl.meshes.core.VertexArrayMesh
jjdh.opengl.meshes.common.Flag
- All Implemented Interfaces:
- Renderable, Mesh
public class Flag
- extends VertexArrayMesh
Constructor Summary |
Flag(float width,
float height,
int parts,
float windSpeed,
com.sun.opengl.util.texture.Texture texture,
SystemContext context)
|
Method Summary |
void |
dispose(javax.media.opengl.GL gl)
|
private static void |
loadProgram()
|
protected void |
privateRender(javax.media.opengl.GL gl)
This method has to be overwritten by subcasses. |
Methods inherited from class jjdh.opengl.meshes.core.AbstractMesh |
applyMaterial, applyPosition, applyRotation, applyScaling, getMaterial, getPosition, move, render, rotate, setMaterial, setPosition, setRotation, setScale, toString, unApplyMaterial |
flagProgram
static CgProgram flagProgram
modelViewMatrix
static com.sun.opengl.cg.CGparameter modelViewMatrix
wave
static com.sun.opengl.cg.CGparameter wave
TWO_PI
private static final float TWO_PI
- See Also:
- Constant Field Values
texture
com.sun.opengl.util.texture.Texture texture
waveAdvance
float waveAdvance
face
private Face face
Flag
public Flag(float width,
float height,
int parts,
float windSpeed,
com.sun.opengl.util.texture.Texture texture,
SystemContext context)
loadProgram
private static void loadProgram()
privateRender
protected void privateRender(javax.media.opengl.GL gl)
- Description copied from class:
AbstractMesh
- This method has to be overwritten by subcasses.
- Overrides:
privateRender
in class VertexArrayMesh
- Parameters:
gl
- a OpenGL obejct
dispose
public void dispose(javax.media.opengl.GL gl)
- Specified by:
dispose
in interface Mesh
- Overrides:
dispose
in class VertexArrayMesh
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.