java.lang.Object
de.grogra.glsl.utility.Drawable
- All Implemented Interfaces:
Comparable<Drawable>
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected Matrix4d
protected int
protected Shader
protected GLSLMaterial
protected GLSLRenderable
protected int
protected Matrix4d
-
Constructor Summary
ConstructorDescriptionDrawable
(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 TypeMethodDescriptionvoid
activateGLSLShader
(OpenGLState glState, GLSLDisplay disp) void
activateGLSLShader
(OpenGLState glState, GLSLDisplay disp, boolean depthonly) void
activateGLSLShader
(OpenGLState glState, GLSLDisplay disp, boolean depthonly, boolean discard) int
void
draw
(GLSLDisplay disp, GLSLUpdateCache visit, Matrix4d worldToView, boolean normal) protected void
draw
(GLSLDisplay disp, OpenGLState glState) void
drawAndUpdate
(GLSLDisplay disp, GLSLUpdateCache visit, Matrix4d worldToView) getShape()
int
getType()
void
init
(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer) void
init
(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix34d worldTransform, Matrix34d cachedWorldTransform) void
init
(GLSLRenderable shape, Shader s, GLSLMaterial sh, boolean asNode, int layer, Matrix4d worldTransform, Matrix4d cachedWorldTransform) void
rebuildVolumeData
(OpenGLState glState) void
void
void
setType
(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:
compareTo
in interfaceComparable<Drawable>
-