Class ColormapTexture

java.lang.Object
org.jzy3d.plot3d.primitives.vbo.ColormapTexture

public class ColormapTexture extends Object
  • Field Details

    • id

      protected int id
    • texID

      protected int texID
    • image

      protected ByteBuffer image
    • shape

      protected int[] shape
    • isUpdate

      protected boolean isUpdate
    • name

      protected String name
    • nColors

      protected int nColors
  • Constructor Details

    • ColormapTexture

      public ColormapTexture(ColorMapper mapper, String name, int id)
    • ColormapTexture

      public ColormapTexture(ColorMapper mapper)
  • Method Details

    • updateColormap

      public void updateColormap(ColorMapper mapper)
    • feedBufferWithColormap

      protected void feedBufferWithColormap(ColorMapper mapper)
    • 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

      public void setTextureData(com.jogamp.opengl.GL gl, Buffer buffer, int[] shape)
    • getID

      public int getID()
    • validateTexID

      protected boolean validateTexID(com.jogamp.opengl.GL gl, boolean throwException)