Class to render axis lines in OpenGL. Length is both positive and negative direction.
Definition Axes.h:14
TVertexArray(ShaderProgram *sp)
Constructor.
void modifyContext(bool before, bool draw, size_t mode_index) override
Overridden from base class.
void generate() override
Overridden from base class.
Color class used in vertex arrays and a layout of 4 x GLfloat.
Definition Color.h:14
TVertexArray(ShaderProgram *sp)
Constructor.
Definition DemoRenderer.h:6
Parameters()
Constructor setting the defaults of the data members.
Color color_z
Z-axis color.
Definition Axes.h:37
Color color_y
Y-axis color.
Definition Axes.h:35
float width
Specifies the width of a line to be rendered.
Definition Axes.h:31
float length
Length of the axis line in positive and optional negative direction.
Definition Axes.h:29
bool both
Render axes in the positive direction only.
Definition Axes.h:27
Color color_x
X-axis color.
Definition Axes.h:33
#define _XGL_CLASS
Definition xgl/global.h:35