|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SGL
The description of the OpenGL functions used Slick. Any other rendering method will need to emulate these.
Field Summary | |
---|---|
static int |
GL_ALWAYS
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_BGRA
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_BLEND
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_CLAMP
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_CLIP_PLANE0
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_CLIP_PLANE1
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_CLIP_PLANE2
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_CLIP_PLANE3
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_COLOR_BUFFER_BIT
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_COLOR_CLEAR_VALUE
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_COLOR_SUM_EXT
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_COMPILE
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_COMPILE_AND_EXECUTE
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_DEPTH_BUFFER_BIT
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_DEPTH_TEST
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_DST_ALPHA
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_EQUAL
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_LINE_SMOOTH
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_LINE_STRIP
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_LINE_WIDTH
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_LINEAR
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_LINES
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_MAX_TEXTURE_SIZE
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_MIRROR_CLAMP_TO_EDGE_EXT
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_MODELVIEW_MATRIX
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_MODULATE
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_NEAREST
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_NOTEQUAL
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_ONE
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_ONE_MINUS_DST_ALPHA
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_ONE_MINUS_SRC_ALPHA
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_ONE_MINUS_SRC_COLOR
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_POINT_SMOOTH
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_POINTS
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_POLYGON_SMOOTH
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_QUADS
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_RGB
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_RGBA
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_RGBA16
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_RGBA8
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_SCISSOR_TEST
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_SRC_ALPHA
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_SRC_COLOR
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TEXTURE_2D
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TEXTURE_ENV
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TEXTURE_ENV_MODE
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TEXTURE_MAG_FILTER
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TEXTURE_MIN_FILTER
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TEXTURE_WRAP_S
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TEXTURE_WRAP_T
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TRIANGLE_FAN
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_TRIANGLES
OpenGL Enum - @url http://www.opengl.org/documentation |
static int |
GL_UNSIGNED_BYTE
OpenGL Enum - @url http://www.opengl.org/documentation |
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 get2Fold,
int get2Fold2,
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 |
Field Detail |
---|
static final int GL_TEXTURE_2D
static final int GL_RGBA
static final int GL_RGB
static final int GL_UNSIGNED_BYTE
static final int GL_LINEAR
static final int GL_NEAREST
static final int GL_TEXTURE_MIN_FILTER
static final int GL_TEXTURE_MAG_FILTER
static final int GL_POINT_SMOOTH
static final int GL_POLYGON_SMOOTH
static final int GL_LINE_SMOOTH
static final int GL_SCISSOR_TEST
static final int GL_MODULATE
static final int GL_TEXTURE_ENV
static final int GL_TEXTURE_ENV_MODE
static final int GL_QUADS
static final int GL_POINTS
static final int GL_LINES
static final int GL_LINE_STRIP
static final int GL_TRIANGLES
static final int GL_TRIANGLE_FAN
static final int GL_SRC_ALPHA
static final int GL_ONE
static final int GL_ONE_MINUS_DST_ALPHA
static final int GL_DST_ALPHA
static final int GL_ONE_MINUS_SRC_ALPHA
static final int GL_COMPILE
static final int GL_MAX_TEXTURE_SIZE
static final int GL_COLOR_BUFFER_BIT
static final int GL_DEPTH_BUFFER_BIT
static final int GL_BLEND
static final int GL_COLOR_CLEAR_VALUE
static final int GL_LINE_WIDTH
static final int GL_CLIP_PLANE0
static final int GL_CLIP_PLANE1
static final int GL_CLIP_PLANE2
static final int GL_CLIP_PLANE3
static final int GL_COMPILE_AND_EXECUTE
static final int GL_RGBA8
static final int GL_RGBA16
static final int GL_BGRA
static final int GL_MIRROR_CLAMP_TO_EDGE_EXT
static final int GL_TEXTURE_WRAP_S
static final int GL_TEXTURE_WRAP_T
static final int GL_CLAMP
static final int GL_COLOR_SUM_EXT
static final int GL_ALWAYS
static final int GL_DEPTH_TEST
static final int GL_NOTEQUAL
static final int GL_EQUAL
static final int GL_SRC_COLOR
static final int GL_ONE_MINUS_SRC_COLOR
static final int GL_MODELVIEW_MATRIX
Method Detail |
---|
void flush()
void initDisplay(int width, int height)
width
- The width of the displayheight
- The height of the displayvoid enterOrtho(int xsize, int ysize)
xsize
- The size of the ortho displayysize
- The size of the ortho displayvoid glClearColor(float red, float green, float blue, float alpha)
red
- green
- blue
- alpha
- void glClipPlane(int plane, java.nio.DoubleBuffer buffer)
plane
- buffer
- void glScissor(int x, int y, int width, int height)
x
- y
- width
- height
- void glLineWidth(float width)
width
- void glClear(int value)
value
- void glColorMask(boolean red, boolean green, boolean blue, boolean alpha)
red
- green
- blue
- alpha
- void glLoadIdentity()
void glGetInteger(int id, java.nio.IntBuffer ret)
id
- ret
- void glGetFloat(int id, java.nio.FloatBuffer ret)
id
- ret
- void glEnable(int item)
item
- void glDisable(int item)
item
- void glBindTexture(int target, int id)
target
- id
- void glGetTexImage(int target, int level, int format, int type, java.nio.ByteBuffer pixels)
target
- level
- format
- type
- pixels
- void glDeleteTextures(java.nio.IntBuffer buffer)
buffer
- void glColor4f(float r, float g, float b, float a)
r
- g
- b
- a
- void glTexCoord2f(float u, float v)
u
- v
- void glVertex3f(float x, float y, float z)
x
- y
- z
- void glVertex2f(float x, float y)
x
- y
- void glRotatef(float angle, float x, float y, float z)
angle
- x
- y
- z
- void glTranslatef(float x, float y, float z)
x
- y
- z
- void glBegin(int geomType)
geomType
- void glEnd()
void glTexEnvi(int target, int mode, int value)
target
- mode
- value
- void glPointSize(float size)
size
- void glScalef(float x, float y, float z)
x
- y
- z
- void glPushMatrix()
void glPopMatrix()
void glBlendFunc(int src, int dest)
src
- dest
- int glGenLists(int count)
count
-
void glNewList(int id, int option)
id
- option
- void glEndList()
void glCallList(int id)
id
- void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border)
target
- level
- internalFormat
- x
- y
- width
- height
- border
- void glReadPixels(int x, int y, int width, int height, int format, int type, java.nio.ByteBuffer pixels)
x
- y
- width
- height
- format
- type
- pixels
- void glTexParameteri(int target, int param, int value)
target
- param
- value
- float[] getCurrentColor()
void glDeleteLists(int list, int count)
list
- count
- void glDepthMask(boolean mask)
mask
- void glClearDepth(float value)
value
- void glDepthFunc(int func)
func
- void setGlobalAlphaScale(float alphaScale)
alphaScale
- The scale to apply to any colour bindsvoid glLoadMatrix(java.nio.FloatBuffer buffer)
buffer
- void glGenTextures(java.nio.IntBuffer ids)
ids
- void glGetError()
void glTexImage2D(int target, int i, int dstPixelFormat, int get2Fold, int get2Fold2, int j, int srcPixelFormat, int glUnsignedByte, java.nio.ByteBuffer textureBuffer)
void glTexSubImage2D(int glTexture2d, int i, int pageX, int pageY, int width, int height, int glBgra, int glUnsignedByte, java.nio.ByteBuffer scratchByteBuffer)
boolean canTextureMirrorClamp()
boolean canSecondaryColor()
void glSecondaryColor3ubEXT(byte b, byte c, byte d)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |