Class LineVis
Defined in File LineVis.h
Class Documentation
-
class LineVis
Interface for managing a LineConfig
Public Functions
Create a new interface for managing a LineConfig
- Parameters:
l – The line config being constructed
r – Initial color’s red component
g – Initial color’s green component
b – Initial color’s blue component
a – Initial color’s alpha component
-
void setColor(float r, float g, float b, float a = 1.0f)
Update the color for following vertices
-
void addVertex(float x, float y, float z = 0.0f)
Adds a new vertex to the drawing
Note
Y is considered the vertical axis
- Parameters:
x – Vertex’s x coord
y – Vertex’s y coord
z – Vertex’s z coord
-
void clear()
Remove all sketch data to start drawing a replacement