Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

Primitive Class Template Reference
[Scene Graph]

#include <lvt/Shape.h>

Inheritance diagram for Primitive:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<GLenum T>
class LVT::Primitive< T >

A variable-vertex 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.


Member Function Documentation

void AddPoint const Vec v  )  [inline]
 

Adds a new vertex to the primitive.

void AddPoint float  x,
float  y,
float  z = 0,
float  w = 1
[inline]
 

Adds a new vertex to the primitive.

void AddPointAndDraw const Vec v  )  [inline]
 

Adds a new vertex to the primitive and draws the new portion.

void AddPointAndDraw float  x,
float  y,
float  z = 0,
float  w = 1
[inline]
 

Adds a new vertex to the primitive and draws the new portion.

void Clear  )  [inline]
 

Removes all vertices in the primitive.

virtual void Render  )  [inline, virtual]
 

Draws the primitive.

Implements Shape.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1