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

Mesh Class Reference
[Scene Graph]

#include <lvt/Mesh.h>

Inheritance diagram for Mesh:

Inheritance graph
[legend]
List of all members.

Detailed Description

A triangle mesh.


Public Member Functions

int GetNumVertices () const
 Returns the number of vertices in the mesh.
unsigned char * GetVertices ()
 Returns a pointer to the vertex data.
virtual void Render ()
 Renders the object.
void SetVertices (int n, unsigned char *vertexData)
 Sets the vertices used by the mesh.


Member Function Documentation

int GetNumVertices  )  const [inline]
 

Returns the number of vertices in the mesh.

unsigned char* GetVertices  )  [inline]
 

Returns a pointer to the vertex data.

virtual void Render  )  [virtual]
 

Renders the object.

Draws the object and/or modifies the OpenGL state appropriately.

Implements Node.

void SetVertices int  n,
unsigned char *  vertexData
 

Sets the vertices used by the mesh.

Parameters:
n Number of vertices in the buffer pointed to by vertexData
vertexData Pointer to the buffer containing the vertices to add
The Mesh object assumes ownership of the buffer pointed to by vertexData, and deletes the data when the Mesh is destroyed.


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