Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Object Class Reference

#include <Object.h>

Inherited by OpenGLObject.

Inheritance diagram for Object:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Object ()
 ~Object ()
void clear ()
void setPrimitive (const Primitive prim)
void setVertices (void *vertexArray, const unsigned int numVertices, const unsigned int size)
void setIndices (void *indiceArray, const unsigned int numIndices, const unsigned int size)
void addFormat (const AttributeType attType, const AttributeFormat attFormat, const unsigned int size, const unsigned int offset)
chargetVertices ()
bool flipNormals ()
bool findAttribute (const AttributeType attType, unsigned int *where) const
virtual void draw ()=0

Protected Attributes

charvertices
charindices
unsigned int nVertices
unsigned int nIndices
unsigned int vertexSize
unsigned int indiceSize
Set< Formatformats
Primitive primitive

Detailed Description

Definition at line 47 of file Object.h.


Constructor & Destructor Documentation

Object::Object  ) 
 

Definition at line 29 of file Object.cpp.

References clear(), indices, and vertices.

Here is the call graph for this function:

Object::~Object  ) 
 

Definition at line 35 of file Object.cpp.

References clear(), and LOG_SUCCESS.

Here is the call graph for this function:


Member Function Documentation

void Object::addFormat const AttributeType  attType,
const AttributeFormat  attFormat,
const unsigned int  size,
const unsigned int  offset
 

Definition at line 67 of file Object.cpp.

References Set< TYPE >::add(), Format::attFormat, Format::attType, formats, Format::offset, and Format::size.

Referenced by Box::Box(), Tube::createFlatTube(), Cubemap::Cubemap(), ObjLevel::load(), and Sphere::Sphere().

Here is the call graph for this function:

void Object::clear  ) 
 

Definition at line 40 of file Object.cpp.

References indices, indiceSize, nIndices, nVertices, vertexSize, and vertices.

Referenced by Object(), and ~Object().

virtual void Object::draw  )  [pure virtual]
 

Implemented in OpenGLObject.

bool Object::findAttribute const AttributeType  attType,
unsigned int *  where
const
 

Definition at line 77 of file Object.cpp.

References formats, and Set< TYPE >::getCount().

Referenced by flipNormals().

Here is the call graph for this function:

bool Object::flipNormals  ) 
 

Definition at line 87 of file Object.cpp.

References ATT_NORMAL, findAttribute(), formats, getValue(), nVertices, setValue(), vertexSize, and vertices.

Here is the call graph for this function:

char* Object::getVertices  )  [inline]
 

Definition at line 57 of file Object.h.

References vertices.

Referenced by ObjLevel::drawWaterSurface().

void Object::setIndices void *  indiceArray,
const unsigned int  numIndices,
const unsigned int  size
 

Definition at line 61 of file Object.cpp.

References indices, indiceSize, and nIndices.

Referenced by Cubemap::Cubemap().

void Object::setPrimitive const Primitive  prim  ) 
 

Definition at line 51 of file Object.cpp.

References primitive.

Referenced by Box::Box(), Tube::createFlatTube(), Cubemap::Cubemap(), ObjLevel::load(), and Sphere::Sphere().

void Object::setVertices void *  vertexArray,
const unsigned int  numVertices,
const unsigned int  size
 

Definition at line 55 of file Object.cpp.

References nVertices, vertexSize, and vertices.

Referenced by Box::Box(), Tube::createFlatTube(), Cubemap::Cubemap(), ObjLevel::load(), and Sphere::Sphere().


Member Data Documentation

Set<Format> Object::formats [protected]
 

Definition at line 76 of file Object.h.

Referenced by addFormat(), OpenGLObject::draw(), findAttribute(), and flipNormals().

char* Object::indices [protected]
 

Definition at line 69 of file Object.h.

Referenced by clear(), OpenGLObject::createVertexBuffer(), Cubemap::Cubemap(), OpenGLObject::draw(), Object(), and setIndices().

unsigned int Object::indiceSize [protected]
 

Definition at line 74 of file Object.h.

Referenced by clear(), OpenGLObject::createVertexBuffer(), and setIndices().

unsigned int Object::nIndices [protected]
 

Definition at line 72 of file Object.h.

Referenced by clear(), OpenGLObject::createVertexBuffer(), OpenGLObject::draw(), and setIndices().

unsigned int Object::nVertices [protected]
 

Definition at line 71 of file Object.h.

Referenced by clear(), OpenGLObject::createVertexBuffer(), OpenGLObject::draw(), flipNormals(), and setVertices().

Primitive Object::primitive [protected]
 

Definition at line 77 of file Object.h.

Referenced by OpenGLObject::draw(), and setPrimitive().

unsigned int Object::vertexSize [protected]
 

Definition at line 73 of file Object.h.

Referenced by clear(), OpenGLObject::createVertexBuffer(), OpenGLObject::draw(), flipNormals(), and setVertices().

char* Object::vertices [protected]
 

Definition at line 68 of file Object.h.

Referenced by clear(), OpenGLObject::createVertexBuffer(), Cubemap::Cubemap(), OpenGLObject::draw(), flipNormals(), getVertices(), Object(), and setVertices().


Generated on Sun Jun 5 15:50:24 2005 for Defacto by  doxygen 1.4.3