public interface GLPipelineRenderer
Modifier and Type | Method and Description |
---|---|
void |
begin(javax.media.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(javax.media.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
|
javax.media.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)
hasNormals
- hasColors
- hasTexcoords
- void enableNormals(boolean set)
set
- boolean isNormalsEnabled()
void enableColors(boolean set)
set
- boolean isColorsEnabled()
void enableTexCoords(boolean set)
set
- boolean isTexCoordsEnabled()
void begin(javax.media.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)
x
- y
- z
- void color(int r, int g, int b, int a)
r
- g
- b
- a
- void texcoord(float x, float y)
x
- y
- void vertex(float x, float y, float z)
x
- y
- z
- void flush()
void end()
boolean isEmpty()
void dispose(javax.media.opengl.GL gl)
javax.media.opengl.GL getGL()
begin(GL, int, int)
and end()
.