jjdh API

jjdh.opengl.meshes.common
Class Flag

java.lang.Object
  extended by jjdh.opengl.meshes.core.AbstractMesh
      extended by jjdh.opengl.meshes.core.VertexArrayMesh
          extended by jjdh.opengl.meshes.common.Flag
All Implemented Interfaces:
Renderable, Mesh

public class Flag
extends VertexArrayMesh


Field Summary
private  Face face
           
(package private) static CgProgram flagProgram
           
(package private) static com.sun.opengl.cg.CGparameter modelViewMatrix
           
(package private)  com.sun.opengl.util.texture.Texture texture
           
private static float TWO_PI
           
(package private) static com.sun.opengl.cg.CGparameter wave
           
(package private)  float waveAdvance
           
 
Fields inherited from class jjdh.opengl.meshes.core.VertexArrayMesh
job
 
Fields inherited from class jjdh.opengl.meshes.core.AbstractMesh
material, position, rotation, scale
 
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.VertexArrayMesh
bind
 
Methods inherited from class jjdh.opengl.meshes.core.AbstractMesh
applyMaterial, applyPosition, applyRotation, applyScaling, getMaterial, getPosition, move, render, rotate, setMaterial, setPosition, setRotation, setScale, toString, unApplyMaterial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Flag

public Flag(float width,
            float height,
            int parts,
            float windSpeed,
            com.sun.opengl.util.texture.Texture texture,
            SystemContext context)
Method Detail

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

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.