public interface GLPipelineRenderer
Modifier and Type | Method and Description |
---|---|
void |
begin(com.jogamp.opengl.GL gl,
int glMode,
int maxVertices)
Begins rendering of primitives
|
void |
color(int r,
int g,
int b,
int a)
Cues up a color to use for following vertices
|
void |
dispose(com.jogamp.opengl.GL gl)
Disposes of any resources.
|
void |
enableColors(boolean set)
Enables/disables per-vertex colors.
|
void |
enableNormals(boolean set)
Enables/disables per-vertex normals.
|
void |
enableTexCoords(boolean set)
Enables/disables per-vertex texture coordinates.
|
void |
end()
Ends drawing, flushing the pipeline if necessary
|
void |
flush()
Flushes the pipeline
|
com.jogamp.opengl.GL |
getGL()
The currently-active GL context if rendering.
|
boolean |
isColorsEnabled() |
boolean |
isEmpty()
Checks whether or not pipeline is empty
|
boolean |
isNormalsEnabled() |
boolean |
isTexCoordsEnabled() |
void |
normal(float x,
float y,
float z)
Cues up a normal to use for following vertices
|
void |
setup(boolean hasNormals,
boolean hasColors,
boolean hasTexcoords)
Set up properties of pipeline.
|
void |
texcoord(float x,
float y)
Cues up a texture coordinate to use for following
vertices
|
void |
vertex(float x,
float y,
float z)
Adds a vertex to the pipeline with the currently active
attributes.
|
void setup(boolean hasNormals, boolean hasColors, boolean hasTexcoords)
void enableNormals(boolean set)
boolean isNormalsEnabled()
void enableColors(boolean set)
boolean isColorsEnabled()
void enableTexCoords(boolean set)
boolean isTexCoordsEnabled()
void begin(com.jogamp.opengl.GL gl, int glMode, int maxVertices)
gl
- context to useglMode
- draw modemaxVertices
- maximum number of vertices before content
is flushed. This should be a valid multiple of the vertices
required to complete primitives in the given draw mode.void normal(float x, float y, float z)
void color(int r, int g, int b, int a)
void texcoord(float x, float y)
void vertex(float x, float y, float z)
void flush()
void end()
boolean isEmpty()
void dispose(com.jogamp.opengl.GL gl)
com.jogamp.opengl.GL getGL()
begin(GL, int, int)
and end()
.