|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer org.newdawn.slick.opengl.renderer.VAOGLRenderer
public class VAOGLRenderer
A renderer that caches all operations into an array, creates an opengl vertex array when required and spits the data down to the card in batch mode
Field Summary | |
---|---|
static int |
MAX_VERTS
The maximum number of vertices draw in one batch |
static int |
NONE
Indicates there is no current geometry buffer |
Fields inherited from class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer |
---|
alphaScale |
Constructor Summary | |
---|---|
VAOGLRenderer()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer |
---|
canSecondaryColor, canTextureMirrorClamp, enterOrtho, glClearColor, glClearDepth, glCopyTexImage2D, glDeleteLists, glDeleteTextures, glDepthFunc, glDepthMask, glGenLists, glGenTextures, glGetError, glGetFloat, glGetInteger, glGetTexImage, glLoadIdentity, glReadPixels, glSecondaryColor3ubEXT, glTexImage2D, glTexParameteri, glTexSubImage2D, setGlobalAlphaScale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int MAX_VERTS
Constructor Detail |
---|
public VAOGLRenderer()
Method Detail |
---|
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 displayImmediateModeOGLRenderer.initDisplay(int, int)
public void flush()
SGL
flush
in interface SGL
flush
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.flush()
public void glBegin(int geomType)
SGL
glBegin
in interface SGL
glBegin
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glBegin(int)
public void glColor4f(float r, float g, float b, float a)
SGL
glColor4f
in interface SGL
glColor4f
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glColor4f(float, float, float, float)
public void glEnd()
SGL
glEnd
in interface SGL
glEnd
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glEnd()
public void glTexCoord2f(float u, float v)
SGL
glTexCoord2f
in interface SGL
glTexCoord2f
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glTexCoord2f(float, float)
public void glVertex2f(float x, float y)
SGL
glVertex2f
in interface SGL
glVertex2f
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glVertex2f(float, float)
public void glVertex3f(float x, float y, float z)
SGL
glVertex3f
in interface SGL
glVertex3f
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glVertex3f(float, float, float)
public void glBindTexture(int target, int id)
SGL
glBindTexture
in interface SGL
glBindTexture
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glBindTexture(int, int)
public void glBlendFunc(int src, int dest)
SGL
glBlendFunc
in interface SGL
glBlendFunc
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glBlendFunc(int, int)
public void glCallList(int id)
SGL
glCallList
in interface SGL
glCallList
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glCallList(int)
public void glClear(int value)
SGL
glClear
in interface SGL
glClear
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glClear(int)
public void glClipPlane(int plane, java.nio.DoubleBuffer buffer)
SGL
glClipPlane
in interface SGL
glClipPlane
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glClipPlane(int, java.nio.DoubleBuffer)
public void glColorMask(boolean red, boolean green, boolean blue, boolean alpha)
SGL
glColorMask
in interface SGL
glColorMask
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glColorMask(boolean, boolean, boolean, boolean)
public void glDisable(int item)
SGL
glDisable
in interface SGL
glDisable
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glDisable(int)
public void glEnable(int item)
SGL
glEnable
in interface SGL
glEnable
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glEnable(int)
public void glLineWidth(float width)
SGL
glLineWidth
in interface SGL
glLineWidth
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glLineWidth(float)
public void glPointSize(float size)
SGL
glPointSize
in interface SGL
glPointSize
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glPointSize(float)
public void glPopMatrix()
SGL
glPopMatrix
in interface SGL
glPopMatrix
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glPopMatrix()
public void glPushMatrix()
SGL
glPushMatrix
in interface SGL
glPushMatrix
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glPushMatrix()
public void glRotatef(float angle, float x, float y, float z)
SGL
glRotatef
in interface SGL
glRotatef
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glRotatef(float, float, float, float)
public void glScalef(float x, float y, float z)
SGL
glScalef
in interface SGL
glScalef
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glScalef(float, float, float)
public void glScissor(int x, int y, int width, int height)
SGL
glScissor
in interface SGL
glScissor
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glScissor(int, int, int, int)
public void glTexEnvi(int target, int mode, int value)
SGL
glTexEnvi
in interface SGL
glTexEnvi
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glTexEnvi(int, int, int)
public void glTranslatef(float x, float y, float z)
SGL
glTranslatef
in interface SGL
glTranslatef
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glTranslatef(float, float, float)
public void glEndList()
SGL
glEndList
in interface SGL
glEndList
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glEndList()
public void glNewList(int id, int option)
SGL
glNewList
in interface SGL
glNewList
in class ImmediateModeOGLRenderer
ImmediateModeOGLRenderer.glNewList(int, int)
public float[] getCurrentColor()
SGL
getCurrentColor
in interface SGL
getCurrentColor
in class ImmediateModeOGLRenderer
SGL.getCurrentColor()
public void glLoadMatrix(java.nio.FloatBuffer buffer)
SGL
glLoadMatrix
in interface SGL
glLoadMatrix
in class ImmediateModeOGLRenderer
SGL.glLoadMatrix(java.nio.FloatBuffer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |