public class Renderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Renderer() |
Modifier and Type | Method and Description |
---|---|
static void |
bindColor(Color color)
Bind the specified Color to the GL context.
|
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
|
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
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()
public static void bindColor(Color color)
color
- The Color to be bound to the GL context