33 } parameters{0.02f, 2.0f};
Class to render Normals from another vertex array.
Definition Normals.h:12
bool isTarget(const VertexArrayBase *object) const
Checks if the passed object is where the normals are taken from.
TVertexArray(ShaderProgram *sp)
Constructor.
void modifyContext(bool before, bool draw, size_t mode_index) override
Overridden from base class to set the line width.
void setTarget(const VertexArrayBase *object)
Sets the target for this and regenerates the data.
void generate() override
Overridden from base class.
TVertexArray(ShaderProgram *sp)
Constructor.
Base class for vertex-array derived classes.
Definition VertexArrayBase.h:15
Definition DemoRenderer.h:6
Parameters for generating the data.
Definition Normals.h:21
float lineWidth
Dynamic line width of the normals. This parameter is used when drawing.
Definition Normals.h:31
float length
Static length of the normal lines. This parameter is used when generating data.
Definition Normals.h:26
#define _XGL_CLASS
Definition xgl/global.h:35