|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.opengl.renderer.ImmediateModeOGLRenderer
public class ImmediateModeOGLRenderer
The default OpenGL renderer, uses immediate mode for everything
| Field Summary | |
|---|---|
protected float |
alphaScale
The global colour scale |
| Constructor Summary | |
|---|---|
ImmediateModeOGLRenderer()
|
|
| Method Summary | |
|---|---|
boolean |
canSecondaryColor()
|
boolean |
canTextureMirrorClamp()
Check if the mirror clamp extension is available |
void |
enterOrtho(int xsize,
int ysize)
Enter orthographic mode |
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 |
glClearColor(float red,
float green,
float blue,
float alpha)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glClearDepth(float 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 |
glCopyTexImage2D(int target,
int level,
int internalFormat,
int x,
int y,
int width,
int height,
int border)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glDeleteLists(int list,
int count)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glDeleteTextures(java.nio.IntBuffer buffer)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glDepthFunc(int func)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glDepthMask(boolean mask)
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/ |
int |
glGenLists(int count)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glGenTextures(java.nio.IntBuffer ids)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glGetError()
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glGetFloat(int id,
java.nio.FloatBuffer ret)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glGetInteger(int id,
java.nio.IntBuffer ret)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glGetTexImage(int target,
int level,
int format,
int type,
java.nio.ByteBuffer pixels)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glLineWidth(float width)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glLoadIdentity()
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 |
glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels)
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 |
glSecondaryColor3ubEXT(byte b,
byte c,
byte d)
|
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 |
glTexImage2D(int target,
int i,
int dstPixelFormat,
int width,
int height,
int j,
int srcPixelFormat,
int glUnsignedByte,
java.nio.ByteBuffer textureBuffer)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glTexParameteri(int target,
int param,
int value)
OpenGL Method - @url http://www.opengl.org/documentation/ |
void |
glTexSubImage2D(int glTexture2d,
int i,
int pageX,
int pageY,
int width,
int height,
int glBgra,
int glUnsignedByte,
java.nio.ByteBuffer scratchByteBuffer)
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 |
void |
setGlobalAlphaScale(float alphaScale)
Set the scaling we'll apply to any colour binds in this renderer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float alphaScale
| Constructor Detail |
|---|
public ImmediateModeOGLRenderer()
| Method Detail |
|---|
public void initDisplay(int width,
int height)
SGL
initDisplay in interface SGLwidth - The width of the displayheight - The height of the displaySGL.initDisplay(int, int)
public void enterOrtho(int xsize,
int ysize)
SGL
enterOrtho in interface SGLxsize - The size of the ortho displayysize - The size of the ortho displaySGL.enterOrtho(int, int)public void glBegin(int geomType)
SGL
glBegin in interface SGLSGL.glBegin(int)
public void glBindTexture(int target,
int id)
SGL
glBindTexture in interface SGLSGL.glBindTexture(int, int)
public void glBlendFunc(int src,
int dest)
SGL
glBlendFunc in interface SGLSGL.glBlendFunc(int, int)public void glCallList(int id)
SGL
glCallList in interface SGLSGL.glCallList(int)public void glClear(int value)
SGL
glClear in interface SGLSGL.glClear(int)
public void glClearColor(float red,
float green,
float blue,
float alpha)
SGL
glClearColor in interface SGLSGL.glClearColor(float, float, float, float)
public void glClipPlane(int plane,
java.nio.DoubleBuffer buffer)
SGL
glClipPlane in interface SGLSGL.glClipPlane(int, java.nio.DoubleBuffer)
public void glColor4f(float r,
float g,
float b,
float a)
SGL
glColor4f in interface SGLSGL.glColor4f(float, float, float, float)
public void glColorMask(boolean red,
boolean green,
boolean blue,
boolean alpha)
SGL
glColorMask in interface SGLSGL.glColorMask(boolean, boolean, boolean, boolean)
public void glCopyTexImage2D(int target,
int level,
int internalFormat,
int x,
int y,
int width,
int height,
int border)
SGL
glCopyTexImage2D in interface SGLSGL.glCopyTexImage2D(int, int, int, int, int, int, int, int)public void glDeleteTextures(java.nio.IntBuffer buffer)
SGL
glDeleteTextures in interface SGLSGL.glDeleteTextures(java.nio.IntBuffer)public void glDisable(int item)
SGL
glDisable in interface SGLSGL.glDisable(int)public void glEnable(int item)
SGL
glEnable in interface SGLSGL.glEnable(int)public void glEnd()
SGL
glEnd in interface SGLSGL.glEnd()public void glEndList()
SGL
glEndList in interface SGLSGL.glEndList()public int glGenLists(int count)
SGL
glGenLists in interface SGLSGL.glGenLists(int)
public void glGetFloat(int id,
java.nio.FloatBuffer ret)
SGL
glGetFloat in interface SGLSGL.glGetFloat(int, java.nio.FloatBuffer)
public void glGetInteger(int id,
java.nio.IntBuffer ret)
SGL
glGetInteger in interface SGLSGL.glGetInteger(int, java.nio.IntBuffer)
public void glGetTexImage(int target,
int level,
int format,
int type,
java.nio.ByteBuffer pixels)
SGL
glGetTexImage in interface SGLSGL.glGetTexImage(int, int, int, int, java.nio.ByteBuffer)public void glLineWidth(float width)
SGL
glLineWidth in interface SGLSGL.glLineWidth(float)public void glLoadIdentity()
SGL
glLoadIdentity in interface SGLSGL.glLoadIdentity()
public void glNewList(int id,
int option)
SGL
glNewList in interface SGLSGL.glNewList(int, int)public void glPointSize(float size)
SGL
glPointSize in interface SGLSGL.glPointSize(float)public void glPopMatrix()
SGL
glPopMatrix in interface SGLSGL.glPopMatrix()public void glPushMatrix()
SGL
glPushMatrix in interface SGLSGL.glPushMatrix()
public void glReadPixels(int x,
int y,
int width,
int height,
int format,
int type,
java.nio.ByteBuffer pixels)
SGL
glReadPixels in interface SGLSGL.glReadPixels(int, int, int, int, int, int, java.nio.ByteBuffer)
public void glRotatef(float angle,
float x,
float y,
float z)
SGL
glRotatef in interface SGLSGL.glRotatef(float, float, float, float)
public void glScalef(float x,
float y,
float z)
SGL
glScalef in interface SGLSGL.glScalef(float, float, float)
public void glScissor(int x,
int y,
int width,
int height)
SGL
glScissor in interface SGLSGL.glScissor(int, int, int, int)
public void glTexCoord2f(float u,
float v)
SGL
glTexCoord2f in interface SGLSGL.glTexCoord2f(float, float)
public void glTexEnvi(int target,
int mode,
int value)
SGL
glTexEnvi in interface SGLSGL.glTexEnvi(int, int, int)
public void glTranslatef(float x,
float y,
float z)
SGL
glTranslatef in interface SGLSGL.glTranslatef(float, float, float)
public void glVertex2f(float x,
float y)
SGL
glVertex2f in interface SGLSGL.glVertex2f(float, float)
public void glVertex3f(float x,
float y,
float z)
SGL
glVertex3f in interface SGLSGL.glVertex3f(float, float, float)public void flush()
SGL
flush in interface SGLSGL.flush()
public void glTexParameteri(int target,
int param,
int value)
SGL
glTexParameteri in interface SGLSGL.glTexParameteri(int, int, int)public float[] getCurrentColor()
SGL
getCurrentColor in interface SGLSGL.getCurrentColor()
public void glDeleteLists(int list,
int count)
SGL
glDeleteLists in interface SGLSGL.glDeleteLists(int, int)public void glClearDepth(float value)
SGL
glClearDepth in interface SGLSGL.glClearDepth(float)public void glDepthFunc(int func)
SGL
glDepthFunc in interface SGLSGL.glDepthFunc(int)public void glDepthMask(boolean mask)
SGL
glDepthMask in interface SGLSGL.glDepthMask(boolean)public void setGlobalAlphaScale(float alphaScale)
SGL
setGlobalAlphaScale in interface SGLalphaScale - The scale to apply to any colour bindsSGL.setGlobalAlphaScale(float)public void glLoadMatrix(java.nio.FloatBuffer buffer)
SGL
glLoadMatrix in interface SGLSGL.glLoadMatrix(java.nio.FloatBuffer)public void glGenTextures(java.nio.IntBuffer ids)
SGL
glGenTextures in interface SGLpublic void glGetError()
SGL
glGetError in interface SGL
public void glTexImage2D(int target,
int i,
int dstPixelFormat,
int width,
int height,
int j,
int srcPixelFormat,
int glUnsignedByte,
java.nio.ByteBuffer textureBuffer)
SGL
glTexImage2D in interface SGL
public void glTexSubImage2D(int glTexture2d,
int i,
int pageX,
int pageY,
int width,
int height,
int glBgra,
int glUnsignedByte,
java.nio.ByteBuffer scratchByteBuffer)
SGL
glTexSubImage2D in interface SGLpublic boolean canTextureMirrorClamp()
SGL
canTextureMirrorClamp in interface SGLpublic boolean canSecondaryColor()
canSecondaryColor in interface SGL
public void glSecondaryColor3ubEXT(byte b,
byte c,
byte d)
glSecondaryColor3ubEXT in interface SGL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||