Vbo Class Reference

The VBO of a triangle 3d-Mesh. More...

#include <Vbo.h>

List of all members.

Public Member Functions

 Vbo ()
 Standard Constructor.
 Vbo (const string &filename)
 Constructor.
 Vbo (const Vbo &source)
 Copy-constructor.
 ~Vbo ()
 Destructor.
void renderGl ()
 Draw vbo in OpenGL.
void selectGl ()
 Draw vbo in OpenGL for picking.
const string & getFilename () const
 Gets mesh filename.
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.
Vbo operator= (const Vbo &tex)
 Operator =.

Private Attributes

vboEntrydata


Detailed Description

The VBO of a triangle 3d-Mesh.

Constructor & Destructor Documentation

Vbo::Vbo (  ) 

Standard Constructor.

Vbo::Vbo ( const string &  filename  ) 

Constructor.

If an invalid filename was choosen, a default image will be generated

Parameters:
filename The image to be loaded

Vbo::Vbo ( const Vbo source  ) 

Copy-constructor.

Duplicates a texture

Vbo::~Vbo (  ) 

Destructor.

Destroys the Object.


Member Function Documentation

void Vbo::renderGl (  ) 

Draw vbo in OpenGL.

Signals OpenGL to draw this vbo

void Vbo::selectGl (  ) 

Draw vbo in OpenGL for picking.

Signals OpenGL to draw this vbo without normal or texture coordinate information

const string & Vbo::getFilename (  )  const

Gets mesh filename.

Returns:
The objects's mesh filename

string Vbo::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

string Vbo::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

enum classId Vbo::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Vbo Vbo::operator= ( const Vbo tex  )  [inline]

Operator =.


Member Data Documentation

vboEntry* Vbo::data [private]


The documentation for this class was generated from the following files:

Generated on Mon Jul 7 13:30:35 2008 for Firefly by  doxygen 1.5.6