GLGeometry Class Reference

#include <GLGeometry.h>

Inheritance diagram for GLGeometry:

GLNamedObject GLMesh List of all members.

Detailed Description

A renderable entity (base class).

This represents anything that can be rendered in the world. Traditionally this would be a triangle mesh, or a particle system.

Definition at line 56 of file GLGeometry.h.

Public Member Functions

virtual int endRenderID () const=0
 Clean up this type of object.
virtual int initRenderID () const=0
 Set up this type of object.
GLMaterialmaterial ()
const GLMaterialmaterial () const
 Get the material.
const char * name () const
 Get the name.
virtual int render (const GLShader *shader) const =0
 Render the geometry.
virtual GLRENDERID renderID () const=0
 Return the rendering index of the type.
void setTexture (uint slot, GLTexture *texture)
 Set the texture.
const GLTexturetexture (uint slot) const
 Get the texture.
virtual const GLVertexvertexBufferData () const=0
 Get the pointer to the vertex data.
virtual size_t vertexBufferStride () const=0
 Get the stride for the vertex data.

Static Public Member Functions

static uint TextureSlots ()
 Return the number of textures.

Protected Member Functions

 GLGeometry (const char *name)
 Constructor.
virtual ~GLGeometry ()
 Destructor.

Protected Attributes

GLMaterial m_Material
 The material.
std::string m_Name
 The name.
GLTexturem_textures [GLGEOMETRY_TEXTURE_COUNT]
 The textures.


Member Function Documentation

virtual GLRENDERID GLGeometry::renderID (  )  const [pure virtual]

Return the rendering index of the type.

This allows the program to separate each type of object in rendering, and also determines what order objects are rendered in.

Implemented in GLMesh.

Referenced by Logic::initRenderID().


The documentation for this class was generated from the following files:
Generated on Fri Mar 23 12:55:04 2007 for glsldemo by  doxygen 1.5.1-p1