public class VAOGLRenderer extends ImmediateModeOGLRenderer
Modifier and Type | Field and Description |
---|---|
static int |
MAX_VERTS
The maximum number of vertices draw in one batch
|
static int |
NONE
Indicates there is no current geometry buffer
|
alphaScale
GL_ALWAYS, GL_BGRA, GL_BLEND, GL_CLAMP, GL_CLIP_PLANE0, GL_CLIP_PLANE1, GL_CLIP_PLANE2, GL_CLIP_PLANE3, GL_COLOR_BUFFER_BIT, GL_COLOR_CLEAR_VALUE, GL_COLOR_SUM_EXT, GL_COMPILE, GL_COMPILE_AND_EXECUTE, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_DST_ALPHA, GL_EQUAL, GL_LINE_SMOOTH, GL_LINE_STRIP, GL_LINE_WIDTH, GL_LINEAR, GL_LINES, GL_MAX_TEXTURE_SIZE, GL_MIRROR_CLAMP_TO_EDGE_EXT, GL_MODELVIEW_MATRIX, GL_MODULATE, GL_NEAREST, GL_NOTEQUAL, GL_ONE, GL_ONE_MINUS_DST_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR, GL_POINT_SMOOTH, GL_POINTS, GL_POLYGON_SMOOTH, GL_QUADS, GL_RGB, GL_RGBA, GL_RGBA16, GL_RGBA8, GL_SCISSOR_TEST, GL_SRC_ALPHA, GL_SRC_COLOR, GL_TEXTURE_2D, GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_UNSIGNED_BYTE
Constructor and Description |
---|
VAOGLRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush the current state of the renderer down to GL
|
float[] |
getCurrentColor()
Get the current colour being rendered
|
void |
glBegin(int geomType)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glBindTexture(int target,
int id)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glBlendFunc(int src,
int dest)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glCallList(int id)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glClear(int value)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glClipPlane(int plane,
java.nio.DoubleBuffer buffer)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glColor4f(float r,
float g,
float b,
float a)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glColorMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glDisable(int item)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glEnable(int item)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glEnd()
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glEndList()
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glLineWidth(float width)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glLoadMatrix(java.nio.FloatBuffer buffer)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glNewList(int id,
int option)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glPointSize(float size)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glPopMatrix()
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glPushMatrix()
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glRotatef(float angle,
float x,
float y,
float z)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glScalef(float x,
float y,
float z)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glScissor(int x,
int y,
int width,
int height)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glTexCoord2f(float u,
float v)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glTexEnvi(int target,
int mode,
int value)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glTranslatef(float x,
float y,
float z)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glVertex2f(float x,
float y)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
glVertex3f(float x,
float y,
float z)
OpenGL Method - @url http://www.opengl.org/documentation/
|
void |
initDisplay(int width,
int height)
Initialise the display
|
canSecondaryColor, canTextureMirrorClamp, enterOrtho, glClearColor, glClearDepth, glCopyTexImage2D, glDeleteLists, glDeleteTextures, glDepthFunc, glDepthMask, glGenLists, glGenTextures, glGetError, glGetFloat, glGetInteger, glGetTexImage, glLoadIdentity, glReadPixels, glSecondaryColor3ubEXT, glTexImage2D, glTexParameteri, glTexSubImage2D, setGlobalAlphaScale
public static final int NONE
public static final int MAX_VERTS
public void initDisplay(int width, int height)
SGL
initDisplay
in interface SGL
initDisplay
in class ImmediateModeOGLRenderer
width
- The width of the displayheight
- The height of the displaypublic void flush()
SGL
flush
in interface SGL
flush
in class ImmediateModeOGLRenderer
public void glBegin(int geomType)
SGL
glBegin
in interface SGL
glBegin
in class ImmediateModeOGLRenderer
public void glColor4f(float r, float g, float b, float a)
SGL
glColor4f
in interface SGL
glColor4f
in class ImmediateModeOGLRenderer
public void glEnd()
SGL
glEnd
in interface SGL
glEnd
in class ImmediateModeOGLRenderer
public void glTexCoord2f(float u, float v)
SGL
glTexCoord2f
in interface SGL
glTexCoord2f
in class ImmediateModeOGLRenderer
public void glVertex2f(float x, float y)
SGL
glVertex2f
in interface SGL
glVertex2f
in class ImmediateModeOGLRenderer
public void glVertex3f(float x, float y, float z)
SGL
glVertex3f
in interface SGL
glVertex3f
in class ImmediateModeOGLRenderer
public void glBindTexture(int target, int id)
SGL
glBindTexture
in interface SGL
glBindTexture
in class ImmediateModeOGLRenderer
public void glBlendFunc(int src, int dest)
SGL
glBlendFunc
in interface SGL
glBlendFunc
in class ImmediateModeOGLRenderer
public void glCallList(int id)
SGL
glCallList
in interface SGL
glCallList
in class ImmediateModeOGLRenderer
public void glClear(int value)
SGL
glClear
in interface SGL
glClear
in class ImmediateModeOGLRenderer
public void glClipPlane(int plane, java.nio.DoubleBuffer buffer)
SGL
glClipPlane
in interface SGL
glClipPlane
in class ImmediateModeOGLRenderer
public void glColorMask(boolean red, boolean green, boolean blue, boolean alpha)
SGL
glColorMask
in interface SGL
glColorMask
in class ImmediateModeOGLRenderer
public void glDisable(int item)
SGL
glDisable
in interface SGL
glDisable
in class ImmediateModeOGLRenderer
public void glEnable(int item)
SGL
glEnable
in interface SGL
glEnable
in class ImmediateModeOGLRenderer
public void glLineWidth(float width)
SGL
glLineWidth
in interface SGL
glLineWidth
in class ImmediateModeOGLRenderer
public void glPointSize(float size)
SGL
glPointSize
in interface SGL
glPointSize
in class ImmediateModeOGLRenderer
public void glPopMatrix()
SGL
glPopMatrix
in interface SGL
glPopMatrix
in class ImmediateModeOGLRenderer
public void glPushMatrix()
SGL
glPushMatrix
in interface SGL
glPushMatrix
in class ImmediateModeOGLRenderer
public void glRotatef(float angle, float x, float y, float z)
SGL
glRotatef
in interface SGL
glRotatef
in class ImmediateModeOGLRenderer
public void glScalef(float x, float y, float z)
SGL
glScalef
in interface SGL
glScalef
in class ImmediateModeOGLRenderer
public void glScissor(int x, int y, int width, int height)
SGL
glScissor
in interface SGL
glScissor
in class ImmediateModeOGLRenderer
public void glTexEnvi(int target, int mode, int value)
SGL
glTexEnvi
in interface SGL
glTexEnvi
in class ImmediateModeOGLRenderer
public void glTranslatef(float x, float y, float z)
SGL
glTranslatef
in interface SGL
glTranslatef
in class ImmediateModeOGLRenderer
public void glEndList()
SGL
glEndList
in interface SGL
glEndList
in class ImmediateModeOGLRenderer
public void glNewList(int id, int option)
SGL
glNewList
in interface SGL
glNewList
in class ImmediateModeOGLRenderer
public float[] getCurrentColor()
SGL
getCurrentColor
in interface SGL
getCurrentColor
in class ImmediateModeOGLRenderer
public void glLoadMatrix(java.nio.FloatBuffer buffer)
SGL
glLoadMatrix
in interface SGL
glLoadMatrix
in class ImmediateModeOGLRenderer