public class DefaultLineStripRenderer extends java.lang.Object implements LineStripRenderer
| Constructor and Description |
|---|
DefaultLineStripRenderer() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void end()
LineStripRendererend in interface LineStripRendererpublic void setAntiAlias(boolean antialias)
LineStripRenderersetAntiAlias in interface LineStripRendererantialias - True if antialiasing should be appliedpublic void setWidth(float width)
LineStripRenderersetWidth in interface LineStripRendererwidth - The width of the lines to be drawnpublic void start()
LineStripRendererstart in interface LineStripRendererpublic void vertex(float x,
float y)
LineStripRenderervertex in interface LineStripRendererx - The x coordinate of the vertexy - The y coordinate of the vertexpublic void color(float r,
float g,
float b,
float a)
LineStripRenderercolor 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 colourpublic void setLineCaps(boolean caps)
LineStripRenderersetLineCaps in interface LineStripRenderercaps - True if we should render end capspublic boolean applyGLLineFixes()
LineStripRendererapplyGLLineFixes in interface LineStripRenderer