hmi.graphics.opengl
Class GLSkeleton
java.lang.Object
hmi.graphics.opengl.GLSkeleton
- All Implemented Interfaces:
- GLRenderObject
public class GLSkeleton
- extends Object
- implements GLRenderObject
Debug class used to draw the skeleton from a root VJoint
- Author:
- welberge
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
private VJoint parent
sphere
private SphereGeometry sphere
sphereState
private GLMaterial sphereState
lineState
private GLMaterial lineState
noTextureState
private NoTexture2DState noTextureState
sphereDiffuse
private final float[] sphereDiffuse
sphereSpecular
private final float[] sphereSpecular
sphereAmbient
private final float[] sphereAmbient
sphereEmission
private final float[] sphereEmission
lineDiffuse
private final float[] lineDiffuse
lineAmbient
private final float[] lineAmbient
lineEmission
private final float[] lineEmission
lineSpecular
private final float[] lineSpecular
offset
private float[] offset
GLSkeleton
public GLSkeleton(VJoint p)
setOffset
public void setOffset(float x,
float y,
float z)
renderJoints
private void renderJoints(GLRenderContext gl,
VJoint p)
renderLines
private void renderLines(GLRenderContext gl,
VJoint p)
glRender
public void glRender(GLRenderContext gl)
- Description copied from interface:
GLRenderObject
- Called during openGL rendering.
- Specified by:
glRender in interface GLRenderObject
glInit
public void glInit(GLRenderContext gl)
- OpenGL initialization.
- Specified by:
glInit in interface GLRenderObject