|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.opengl.renderer.DefaultLineStripRenderer
public class DefaultLineStripRenderer
The default version of the renderer relies of GL calls to do everything. Unfortunately this is driver dependent and often implemented inconsistantly
| Constructor Summary | |
|---|---|
DefaultLineStripRenderer()
|
|
| Method Summary | |
|---|---|
boolean |
applyGLLineFixes()
Check if we should apply default line fixes |
void |
color(float r,
float g,
float b,
float a)
Apply a colour to the next vertex |
void |
end()
End the line strips |
void |
setAntiAlias(boolean antialias)
Indicate whether antialiasing should be applied |
void |
setLineCaps(boolean caps)
Indicate if we should render end caps |
void |
setWidth(float width)
Set the width of the lines to be drawn |
void |
start()
Start the line strips |
void |
vertex(float x,
float y)
Add a vertex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLineStripRenderer()
| Method Detail |
|---|
public void end()
LineStripRenderer
end in interface LineStripRendererLineStripRenderer.end()public void setAntiAlias(boolean antialias)
LineStripRenderer
setAntiAlias in interface LineStripRendererantialias - True if antialiasing should be appliedLineStripRenderer.setAntiAlias(boolean)public void setWidth(float width)
LineStripRenderer
setWidth in interface LineStripRendererwidth - The width of the lines to be drawnLineStripRenderer.setWidth(float)public void start()
LineStripRenderer
start in interface LineStripRendererLineStripRenderer.start()
public void vertex(float x,
float y)
LineStripRenderer
vertex in interface LineStripRendererx - The x coordinate of the vertexy - The y coordinate of the vertexLineStripRenderer.vertex(float, float)
public void color(float r,
float g,
float b,
float a)
LineStripRenderer
color in interface LineStripRendererr - The red component of the colourg - The green component of the colourb - The blue component of the coloura - The alpha component of the colourLineStripRenderer.color(float, float, float, float)public void setLineCaps(boolean caps)
LineStripRenderer
setLineCaps in interface LineStripRenderercaps - True if we should render end capsLineStripRenderer.setLineCaps(boolean)public boolean applyGLLineFixes()
LineStripRenderer
applyGLLineFixes in interface LineStripRendererLineStripRenderer.applyGLLineFixes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||