#include <Object.h>
Inherited by OpenGLObject.
Inheritance diagram for Object:
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) |
char * | getVertices () |
bool | flipNormals () |
bool | findAttribute (const AttributeType attType, unsigned int *where) const |
virtual void | draw ()=0 |
Protected Attributes | |
char * | vertices |
char * | indices |
unsigned int | nVertices |
unsigned int | nIndices |
unsigned int | vertexSize |
unsigned int | indiceSize |
Set< Format > | formats |
Primitive | primitive |
Definition at line 47 of file Object.h.
|
Definition at line 29 of file Object.cpp. References clear(), indices, and vertices. Here is the call graph for this function: |
|
Definition at line 35 of file Object.cpp. References clear(), and LOG_SUCCESS. Here is the call graph for this function: |
|
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: |
|
Definition at line 40 of file Object.cpp. References indices, indiceSize, nIndices, nVertices, vertexSize, and vertices. |
|
Implemented in OpenGLObject. |
|
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: |
|
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: |
|
Definition at line 57 of file Object.h. References vertices. Referenced by ObjLevel::drawWaterSurface(). |
|
Definition at line 61 of file Object.cpp. References indices, indiceSize, and nIndices. Referenced by Cubemap::Cubemap(). |
|
Definition at line 51 of file Object.cpp. References primitive. Referenced by Box::Box(), Tube::createFlatTube(), Cubemap::Cubemap(), ObjLevel::load(), and Sphere::Sphere(). |
|
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(). |
|
Definition at line 76 of file Object.h. Referenced by addFormat(), OpenGLObject::draw(), findAttribute(), and flipNormals(). |
|
Definition at line 69 of file Object.h. Referenced by clear(), OpenGLObject::createVertexBuffer(), Cubemap::Cubemap(), OpenGLObject::draw(), Object(), and setIndices(). |
|
Definition at line 74 of file Object.h. Referenced by clear(), OpenGLObject::createVertexBuffer(), and setIndices(). |
|
Definition at line 72 of file Object.h. Referenced by clear(), OpenGLObject::createVertexBuffer(), OpenGLObject::draw(), and setIndices(). |
|
Definition at line 71 of file Object.h. Referenced by clear(), OpenGLObject::createVertexBuffer(), OpenGLObject::draw(), flipNormals(), and setVertices(). |
|
Definition at line 77 of file Object.h. Referenced by OpenGLObject::draw(), and setPrimitive(). |
|
Definition at line 73 of file Object.h. Referenced by clear(), OpenGLObject::createVertexBuffer(), OpenGLObject::draw(), flipNormals(), and setVertices(). |
|
Definition at line 68 of file Object.h. Referenced by clear(), OpenGLObject::createVertexBuffer(), Cubemap::Cubemap(), OpenGLObject::draw(), flipNormals(), getVertices(), Object(), and setVertices(). |