#include <lvt/Shape.h>
Inheritance diagram for Primitive:
Primitive is a templated class that represents OpenGL primitives with a variable number of vertices (e.g. line strips, triangle fans, etc).
Public Member Functions | |
void | Clear () |
Removes all vertices in the primitive. | |
virtual void | Render () |
Draws the primitive. | |
void | AddPoint (const Vec &v) |
Adds a new vertex to the primitive. | |
void | AddPoint (float x, float y, float z=0, float w=1) |
Adds a new vertex to the primitive. | |
void | AddPointAndDraw (const Vec &v) |
Adds a new vertex to the primitive and draws the new portion. | |
void | AddPointAndDraw (float x, float y, float z=0, float w=1) |
Adds a new vertex to the primitive and draws the new portion. |
|
Adds a new vertex to the primitive.
|
|
Adds a new vertex to the primitive.
|
|
Adds a new vertex to the primitive and draws the new portion.
|
|
Adds a new vertex to the primitive and draws the new portion.
|
|
Removes all vertices in the primitive.
|
|
Draws the primitive.
Implements Shape. |