Package org.jzy3d.plot3d.primitives.vbo
Class ColormapTexture
java.lang.Object
org.jzy3d.plot3d.primitives.vbo.ColormapTexture
-
Field Summary
-
Constructor Summary
ConstructorDescriptionColormapTexture
(ColorMapper mapper) ColormapTexture
(ColorMapper mapper, String name, int id) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(com.jogamp.opengl.GL gl) protected void
feedBufferWithColormap
(ColorMapper mapper) int
getID()
void
setTextureData
(com.jogamp.opengl.GL gl, Buffer buffer, int[] shape) void
unbind
(com.jogamp.opengl.GL gl) void
update
(com.jogamp.opengl.GL gl) void
updateColormap
(ColorMapper mapper) protected boolean
validateTexID
(com.jogamp.opengl.GL gl, boolean throwException)
-
Field Details
-
id
protected int id -
texID
protected int texID -
image
-
shape
protected int[] shape -
isUpdate
protected boolean isUpdate -
name
-
nColors
protected int nColors
-
-
Constructor Details
-
ColormapTexture
-
ColormapTexture
-
-
Method Details
-
updateColormap
-
feedBufferWithColormap
-
update
public void update(com.jogamp.opengl.GL gl) -
bind
public void bind(com.jogamp.opengl.GL gl) throws com.jogamp.opengl.GLException - Throws:
com.jogamp.opengl.GLException
-
unbind
public void unbind(com.jogamp.opengl.GL gl) -
setTextureData
-
getID
public int getID() -
validateTexID
protected boolean validateTexID(com.jogamp.opengl.GL gl, boolean throwException)
-