de.grogra.imp3d.glsl.renderable
Class GLSLSphere

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.GLSLSphere

public class GLSLSphere
extends GLSLInstanceableRenderable


Field Summary
protected  float radius
           
 
Fields inherited from class de.grogra.imp3d.glsl.renderable.GLSLInstanceableRenderable
DIRECT, INDIRECT, INSTANCIATED
 
Constructor Summary
GLSLSphere()
           
 
Method Summary
 void draw(OpenGLState glState, RenderState 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.GLSLInstanceableRenderable
updateInstance
 
Methods inherited from class de.grogra.imp3d.glsl.renderable.GLSLRenderable
activateShader, drawAlt, findShader, isShaderDependant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

protected float radius
Constructor Detail

GLSLSphere

public GLSLSphere()
Method Detail

draw

public void draw(OpenGLState glState,
                 RenderState rs)
Specified by:
draw 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)
Specified by:
updateInstanceByInstancing in class GLSLInstanceableRenderable

updateInstanceDirect

protected void updateInstanceDirect(Renderable reference)
Specified by:
updateInstanceDirect in class GLSLInstanceableRenderable

updateInstanceIndirect

public void updateInstanceIndirect(java.lang.Object state,
                                   boolean asNode,
                                   GraphState gs)
Specified by:
updateInstanceIndirect in class GLSLInstanceableRenderable