public class GL2GL3StrokeLineVisitor extends SimplePathVisitor implements ShaderPathVisitor
CURVE_STEPS
Constructor and Description |
---|
GL2GL3StrokeLineVisitor() |
GL2GL3StrokeLineVisitor(GeometryShaderStrokePipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
void |
beginPoly(int windingRule)
Starts the polygon or polyline.
|
void |
closeLine()
Specifies that the preceding subpath should be closed by appending a line
segment back to the point corresponding to the most recent call to
#moveTo(float[]) . |
void |
endPoly()
Signifies that the polygon or polyline has ended.
|
void |
lineTo(float[] vertex)
Specifies the end point of a line to be drawn from the most recently
specified point.
|
void |
moveTo(float[] vertex)
Specifies the starting location for a new subpath.
|
void |
setGLContext(GL context)
Sets the GL context to be used for the next drawing session.
|
void |
setGLContext(GL glContext,
UniformBufferObject uniforms) |
void |
setStroke(BasicStroke stroke)
Sets the stroke to be used when drawing a path.
|
cubicTo, getNumCurveSteps, quadTo, setNumCurveSteps
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cubicTo, quadTo
public GL2GL3StrokeLineVisitor()
public GL2GL3StrokeLineVisitor(GeometryShaderStrokePipeline pipeline)
public void setGLContext(GL context)
PathVisitor
setGLContext
in interface PathVisitor
context
- The GL contextpublic void setGLContext(GL glContext, UniformBufferObject uniforms)
setGLContext
in interface ShaderPathVisitor
public void setStroke(BasicStroke stroke)
PathVisitor
setStroke
in interface PathVisitor
public void moveTo(float[] vertex)
PathVisitor
moveTo
in interface PathVisitor
vertex
- An array where the first two values are the x,y coordinates of the
start of the subpath.public void lineTo(float[] vertex)
PathVisitor
lineTo
in interface PathVisitor
vertex
- An array where the first two values are the x,y coordinates of the
next point in the subpath.public void closeLine()
PathVisitor
#moveTo(float[])
.closeLine
in interface PathVisitor
public void beginPoly(int windingRule)
PathVisitor
beginPoly
in interface PathVisitor
windingRule
- The winding rule for the polygon.public void endPoly()
PathVisitor
endPoly
in interface PathVisitor
Copyright © 2010-2013. All Rights Reserved.