Package heronarts.glx.shader
Class UniformFill
java.lang.Object
heronarts.glx.shader.ShaderProgram
heronarts.glx.shader.UniformFill
A global program used for rendering basic polygons with
a uniform fill color
-
Field Summary
Fields inherited from class heronarts.glx.shader.ShaderProgram
bgfxState, DEFAULT_BGFX_STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
setFillColor
(int fillColor) Sets the fill color of the shapeprotected void
setUniforms
(View view) submit
(View view, long state, int fillColor, VertexBuffer... vertexBuffers) Methods inherited from class heronarts.glx.shader.ShaderProgram
setVertexBuffers, submit, submit, submit, submit
-
Constructor Details
-
UniformFill
-
-
Method Details
-
setFillColor
Sets the fill color of the shape- Parameters:
fillColor
- Fill color in ARGB format- Returns:
- this
-
submit
-
setUniforms
- Overrides:
setUniforms
in classShaderProgram
-
dispose
public void dispose()- Overrides:
dispose
in classShaderProgram
-