|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.opengl.renderer.Renderer
public class Renderer
The static holder for the current GL implementation. Note that this renderer can only be set before the game has been started.
Field Summary | |
---|---|
static int |
DEFAULT_LINE_STRIP_RENDERER
The indicator for direct GL line renderer (the default) |
static int |
IMMEDIATE_RENDERER
The indicator for immediate mode renderering (the default) |
static int |
QUAD_BASED_LINE_STRIP_RENDERER
The indicator for consistant quad based lines |
static int |
VERTEX_ARRAY_RENDERER
The indicator for vertex array based rendering |
Constructor Summary | |
---|---|
Renderer()
|
Method Summary | |
---|---|
static SGL |
get()
Get the renderer to be used when accessing GL |
static LineStripRenderer |
getLineStripRenderer()
Get the line strip renderer to use |
static void |
setLineStripRenderer(int type)
Set the line strip renderer to one of the known types |
static void |
setLineStripRenderer(LineStripRenderer renderer)
Set the line strip renderer to be used globally |
static void |
setRenderer(int type)
Set the renderer to one of the known types |
static void |
setRenderer(SGL r)
Set the renderer to be used |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IMMEDIATE_RENDERER
public static final int VERTEX_ARRAY_RENDERER
public static final int DEFAULT_LINE_STRIP_RENDERER
public static final int QUAD_BASED_LINE_STRIP_RENDERER
Constructor Detail |
---|
public Renderer()
Method Detail |
---|
public static void setRenderer(int type)
type
- The type of renderer to usepublic static void setLineStripRenderer(int type)
type
- The type of renderer to usepublic static void setLineStripRenderer(LineStripRenderer renderer)
renderer
- The line strip renderer to be usedpublic static void setRenderer(SGL r)
r
- The renderer to be usedpublic static SGL get()
public static LineStripRenderer getLineStripRenderer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |