java.lang.Object
de.grogra.glsl.utility.Drawable
- All Implemented Interfaces:
Comparable<Drawable>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Matrix4dprotected intprotected Shaderprotected GLSLMaterialprotected GLSLRenderableprotected intprotected Matrix4d -
Constructor Summary
ConstructorsConstructorDescriptionDrawable(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix34d worldTransform, Matrix34d cachedWorldTransform) Drawable(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix4d worldTransform, Matrix4d cachedWorldTransform) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateGLSLShader(OpenGLState glState, GLSLDisplay disp) voidactivateGLSLShader(OpenGLState glState, GLSLDisplay disp, boolean depthonly) voidactivateGLSLShader(OpenGLState glState, GLSLDisplay disp, boolean depthonly, boolean discard) intvoiddraw(GLSLDisplay disp, GLSLUpdateCache visit, Matrix4d worldToView, boolean normal) protected voiddraw(GLSLDisplay disp, OpenGLState glState) voiddrawAndUpdate(GLSLDisplay disp, GLSLUpdateCache visit, Matrix4d worldToView) getShape()intgetType()voidinit(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer) voidinit(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix34d worldTransform, Matrix34d cachedWorldTransform) voidinit(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix4d worldTransform, Matrix4d cachedWorldTransform) voidrebuildVolumeData(OpenGLState glState) voidvoidvoidsetType(int type)
-
Field Details
-
worldTransform
-
cachedWorldTransform
-
layer
protected int layer -
shape
-
s
-
sh
-
asNode
protected boolean asNode -
type
protected int type
-
-
Constructor Details
-
Drawable
public Drawable(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix4d worldTransform, Matrix4d cachedWorldTransform) -
Drawable
public Drawable(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix34d worldTransform, Matrix34d cachedWorldTransform)
-
-
Method Details
-
getShape
-
getShader
-
setShader
-
setGLSLShader
-
getGLSLShader
-
init
public void init(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix4d worldTransform, Matrix4d cachedWorldTransform) -
init
public void init(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix34d worldTransform, Matrix34d cachedWorldTransform) -
init
-
getWorldTransform
-
activateGLSLShader
-
activateGLSLShader
-
activateGLSLShader
public void activateGLSLShader(OpenGLState glState, GLSLDisplay disp, boolean depthonly, boolean discard) -
rebuildVolumeData
-
draw
-
drawAndUpdate
-
draw
-
getType
public int getType() -
setType
public void setType(int type) -
compareTo
- Specified by:
compareToin interfaceComparable<Drawable>
-