|
||||||||||
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
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 SGL
width
- The width of the displayheight
- The height of the displaySGL.initDisplay(int, int)
public void enterOrtho(int xsize, int ysize)
SGL
enterOrtho
in interface SGL
xsize
- The size of the ortho displayysize
- The size of the ortho displaySGL.enterOrtho(int, int)
public void glBegin(int geomType)
SGL
glBegin
in interface SGL
SGL.glBegin(int)
public void glBindTexture(int target, int id)
SGL
glBindTexture
in interface SGL
SGL.glBindTexture(int, int)
public void glBlendFunc(int src, int dest)
SGL
glBlendFunc
in interface SGL
SGL.glBlendFunc(int, int)
public void glCallList(int id)
SGL
glCallList
in interface SGL
SGL.glCallList(int)
public void glClear(int value)
SGL
glClear
in interface SGL
SGL.glClear(int)
public void glClearColor(float red, float green, float blue, float alpha)
SGL
glClearColor
in interface SGL
SGL.glClearColor(float, float, float, float)
public void glClipPlane(int plane, java.nio.DoubleBuffer buffer)
SGL
glClipPlane
in interface SGL
SGL.glClipPlane(int, java.nio.DoubleBuffer)
public void glColor4f(float r, float g, float b, float a)
SGL
glColor4f
in interface SGL
SGL.glColor4f(float, float, float, float)
public void glColorMask(boolean red, boolean green, boolean blue, boolean alpha)
SGL
glColorMask
in interface SGL
SGL.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 SGL
SGL.glCopyTexImage2D(int, int, int, int, int, int, int, int)
public void glDeleteTextures(java.nio.IntBuffer buffer)
SGL
glDeleteTextures
in interface SGL
SGL.glDeleteTextures(java.nio.IntBuffer)
public void glDisable(int item)
SGL
glDisable
in interface SGL
SGL.glDisable(int)
public void glEnable(int item)
SGL
glEnable
in interface SGL
SGL.glEnable(int)
public void glEnd()
SGL
glEnd
in interface SGL
SGL.glEnd()
public void glEndList()
SGL
glEndList
in interface SGL
SGL.glEndList()
public int glGenLists(int count)
SGL
glGenLists
in interface SGL
SGL.glGenLists(int)
public void glGetFloat(int id, java.nio.FloatBuffer ret)
SGL
glGetFloat
in interface SGL
SGL.glGetFloat(int, java.nio.FloatBuffer)
public void glGetInteger(int id, java.nio.IntBuffer ret)
SGL
glGetInteger
in interface SGL
SGL.glGetInteger(int, java.nio.IntBuffer)
public void glGetTexImage(int target, int level, int format, int type, java.nio.ByteBuffer pixels)
SGL
glGetTexImage
in interface SGL
SGL.glGetTexImage(int, int, int, int, java.nio.ByteBuffer)
public void glLineWidth(float width)
SGL
glLineWidth
in interface SGL
SGL.glLineWidth(float)
public void glLoadIdentity()
SGL
glLoadIdentity
in interface SGL
SGL.glLoadIdentity()
public void glNewList(int id, int option)
SGL
glNewList
in interface SGL
SGL.glNewList(int, int)
public void glPointSize(float size)
SGL
glPointSize
in interface SGL
SGL.glPointSize(float)
public void glPopMatrix()
SGL
glPopMatrix
in interface SGL
SGL.glPopMatrix()
public void glPushMatrix()
SGL
glPushMatrix
in interface SGL
SGL.glPushMatrix()
public void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.ByteBuffer pixels)
SGL
glReadPixels
in interface SGL
SGL.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 SGL
SGL.glRotatef(float, float, float, float)
public void glScalef(float x, float y, float z)
SGL
glScalef
in interface SGL
SGL.glScalef(float, float, float)
public void glScissor(int x, int y, int width, int height)
SGL
glScissor
in interface SGL
SGL.glScissor(int, int, int, int)
public void glTexCoord2f(float u, float v)
SGL
glTexCoord2f
in interface SGL
SGL.glTexCoord2f(float, float)
public void glTexEnvi(int target, int mode, int value)
SGL
glTexEnvi
in interface SGL
SGL.glTexEnvi(int, int, int)
public void glTranslatef(float x, float y, float z)
SGL
glTranslatef
in interface SGL
SGL.glTranslatef(float, float, float)
public void glVertex2f(float x, float y)
SGL
glVertex2f
in interface SGL
SGL.glVertex2f(float, float)
public void glVertex3f(float x, float y, float z)
SGL
glVertex3f
in interface SGL
SGL.glVertex3f(float, float, float)
public void flush()
SGL
flush
in interface SGL
SGL.flush()
public void glTexParameteri(int target, int param, int value)
SGL
glTexParameteri
in interface SGL
SGL.glTexParameteri(int, int, int)
public float[] getCurrentColor()
SGL
getCurrentColor
in interface SGL
SGL.getCurrentColor()
public void glDeleteLists(int list, int count)
SGL
glDeleteLists
in interface SGL
SGL.glDeleteLists(int, int)
public void glClearDepth(float value)
SGL
glClearDepth
in interface SGL
SGL.glClearDepth(float)
public void glDepthFunc(int func)
SGL
glDepthFunc
in interface SGL
SGL.glDepthFunc(int)
public void glDepthMask(boolean mask)
SGL
glDepthMask
in interface SGL
SGL.glDepthMask(boolean)
public void setGlobalAlphaScale(float alphaScale)
SGL
setGlobalAlphaScale
in interface SGL
alphaScale
- The scale to apply to any colour bindsSGL.setGlobalAlphaScale(float)
public void glLoadMatrix(java.nio.FloatBuffer buffer)
SGL
glLoadMatrix
in interface SGL
SGL.glLoadMatrix(java.nio.FloatBuffer)
public void glGenTextures(java.nio.IntBuffer ids)
SGL
glGenTextures
in interface SGL
public 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 SGL
public boolean canTextureMirrorClamp()
SGL
canTextureMirrorClamp
in interface SGL
public 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 |