de.grogra.imp3d.glsl.renderable
Class GLSLBox

java.lang.Object
  extended by de.grogra.imp3d.glsl.renderable.GLSLRenderable
      extended by de.grogra.imp3d.glsl.renderable.GLSLInstanceableRenderable
          extended by de.grogra.imp3d.glsl.renderable.GLSLBitCache
              extended by de.grogra.imp3d.glsl.renderable.GLSLAxis
                  extended by de.grogra.imp3d.glsl.renderable.GLSLBox

public class GLSLBox
extends GLSLAxis


Field Summary
protected  float height
           
protected  float width
           
 
Fields inherited from class de.grogra.imp3d.glsl.renderable.GLSLAxis
endPosition, length, SCALE_V_MASK, startPosition, USED_BITS
 
Fields inherited from class de.grogra.imp3d.glsl.renderable.GLSLBitCache
BITMASK
 
Fields inherited from class de.grogra.imp3d.glsl.renderable.GLSLInstanceableRenderable
DIRECT, INDIRECT, INSTANCIATED
 
Constructor Summary
GLSLBox()
           
 
Method Summary
 void draw(OpenGLState glState, RenderState rs)
           
 void drawAlt(OpenGLState glState, GLSLDisplay rs)
           
 GLSLRenderable getInstance()
           
 java.lang.Class<?> instanceFor()
           
protected  void updateInstanceByInstancing(Renderable reference, GraphState gs)
           
protected  void updateInstanceDirect(Renderable reference)
           
 void updateInstanceIndirect(java.lang.Object state, boolean asNode, GraphState gs)
           
 
Methods inherited from class de.grogra.imp3d.glsl.renderable.GLSLBitCache
getBool, setBool
 
Methods inherited from class de.grogra.imp3d.glsl.renderable.GLSLInstanceableRenderable
updateInstance
 
Methods inherited from class de.grogra.imp3d.glsl.renderable.GLSLRenderable
activateShader, findShader, isShaderDependant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

height

protected float height

width

protected float width
Constructor Detail

GLSLBox

public GLSLBox()
Method Detail

draw

public void draw(OpenGLState glState,
                 RenderState rs)
Specified by:
draw in class GLSLRenderable

drawAlt

public void drawAlt(OpenGLState glState,
                    GLSLDisplay rs)
Overrides:
drawAlt in class GLSLRenderable

getInstance

public GLSLRenderable getInstance()
Specified by:
getInstance in class GLSLRenderable

instanceFor

public java.lang.Class<?> instanceFor()
Specified by:
instanceFor in class GLSLRenderable

updateInstanceByInstancing

protected void updateInstanceByInstancing(Renderable reference,
                                          GraphState gs)
Overrides:
updateInstanceByInstancing in class GLSLAxis

updateInstanceDirect

protected void updateInstanceDirect(Renderable reference)
Overrides:
updateInstanceDirect in class GLSLAxis

updateInstanceIndirect

public void updateInstanceIndirect(java.lang.Object state,
                                   boolean asNode,
                                   GraphState gs)
Overrides:
updateInstanceIndirect in class GLSLAxis