Class RenderState

java.lang.Object
com.jogamp.graph.curve.opengl.RenderState

public class RenderState extends Object
  • Field Details

  • Method Details

    • createRenderState

      public static RenderState createRenderState(Vertex.Factory<? extends Vertex> pointFactory)
    • createRenderState

      public static RenderState createRenderState(Vertex.Factory<? extends Vertex> pointFactory, PMVMatrix pmvMatrix)
    • getRenderState

      public static final RenderState getRenderState(GL2ES2 gl)
    • id

      public final int id()
    • getShaderProgram

      public final ShaderProgram getShaderProgram()
    • isShaderProgramInUse

      public final boolean isShaderProgramInUse()
    • setShaderProgram

      public final boolean setShaderProgram(GL2ES2 gl, ShaderProgram spNext)
      Set a ShaderProgram and enable it. If the given ShaderProgram is new, method returns true, otherwise false.
      Parameters:
      gl -
      spNext -
      Returns:
      true if a new shader program is being used and hence external uniform-data and -location, as well as the attribute-location must be updated, otherwise false.
    • getVertexFactory

      public final Vertex.Factory<? extends Vertex> getVertexFactory()
    • getMatrix

      public final PMVMatrix getMatrix()
    • isWeightValid

      public static boolean isWeightValid(float v)
    • getWeight

      public final float getWeight()
    • setWeight

      public final void setWeight(float v)
    • getColorStatic

      public final float[] getColorStatic(float[] rgbaColor)
    • setColorStatic

      public final void setColorStatic(float r, float g, float b, float a)
    • updateUniformLoc

      public final boolean updateUniformLoc(GL2ES2 gl, boolean updateLocation, GLUniformData data, boolean throwOnError)
      Parameters:
      gl -
      updateLocation -
      data -
      throwOnError - TODO
      Returns:
      true if no error occured, i.e. all locations found, otherwise false.
    • updateUniformDataLoc

      public final boolean updateUniformDataLoc(GL2ES2 gl, boolean updateLocation, boolean updateData, GLUniformData data, boolean throwOnError)
      Parameters:
      gl -
      updateLocation -
      updateData - TODO
      data -
      throwOnError - TODO
      Returns:
      true if no error occured, i.e. all locations found, otherwise false.
    • updateAttributeLoc

      public final boolean updateAttributeLoc(GL2ES2 gl, boolean updateLocation, GLArrayDataServer data, boolean throwOnError)
      Parameters:
      gl -
      data -
      throwOnError - TODO
      Returns:
      true if no error occured, i.e. all locations found, otherwise false.
    • isHintMaskSet

      public final boolean isHintMaskSet(int mask)
    • setHintMask

      public final void setHintMask(int mask)
    • clearHintMask

      public final void clearHintMask(int mask)
    • destroy

      public void destroy(GL2ES2 gl)
    • attachTo

      public final RenderState attachTo(GL2ES2 gl)
    • detachFrom

      public final boolean detachFrom(GL2ES2 gl)
    • toString

      public String toString()
      Overrides:
      toString in class Object