Class UniformFill

java.lang.Object
heronarts.glx.shader.ShaderProgram
heronarts.glx.shader.UniformFill

public class UniformFill extends ShaderProgram
A global program used for rendering basic polygons with a uniform fill color
  • Constructor Details

    • UniformFill

      public UniformFill(GLX glx)
  • Method Details

    • setFillColor

      public UniformFill setFillColor(int fillColor)
      Sets the fill color of the shape
      Parameters:
      fillColor - Fill color in ARGB format
      Returns:
      this
    • submit

      public UniformFill submit(View view, long state, int fillColor, VertexBuffer... vertexBuffers)
    • setUniforms

      protected void setUniforms(View view)
      Overrides:
      setUniforms in class ShaderProgram
    • dispose

      public void dispose()
      Overrides:
      dispose in class ShaderProgram