Public API Reference |
#include <object.h>
Inheritance diagram for aeObject:
Public Member Functions | |
virtual char * | getName () |
Get object's name. | |
virtual aeMaterial * | getMaterial () |
Get the object's material. | |
virtual void | draw (aeEngineflags *)=0 |
Draw this object. | |
virtual aeVector3 | getOrigin () |
Get the origin for this object. | |
virtual void | setOrigin (const aeVector3 &norigin) |
Set the origin for this object. | |
virtual void | setColor (float r, float g, float b) |
Set the RGB color of this object. | |
virtual void | setColor (float r, float g, float b, float a) |
Set the RGBA color of this object. | |
virtual void | setColor (const aeColor3 &color) |
Set the RGB color of this object. | |
virtual void | setColor (const aeColor4 &color) |
Set the RGBA color of this object. | |
virtual void | setTexCoord (const aeTexCoord2 &texcoord) |
Set the texture coordinate for the next vertex(es). | |
virtual void | setTexCoord (float s, float t) |
Set the texture coordinate for the next vertex(es). | |
virtual void | setMaterial (aeMaterial *mat) |
Set material for this object. | |
virtual void | addVertex (const aeVector3 &vertex) |
Add a vertex to this object. | |
virtual void | setTransparent (bool) |
Used to specify whether this object is transparent or not. | |
virtual unsigned int | getVertexCount () |
Get the number of vertices in this object. | |
virtual aeVector3 | getVertex (int) |
Get a vertex of this object. | |
virtual float | getBoundingSphereRadius () |
Return the radius of the bounding sphere of this object. | |
virtual bool | isTransparent () |
Used to check if this object is currently transparent. | |
virtual void | setMode (aeObjRenderingMode mode) |
Set the object rendering mode. | |
Protected Attributes | |
aeVector3_vector * | vertexList |
aeColor4_vector * | vertexColorList |
aeTexCoord2_vector * | vertexTexcoordList |
aeVector3 | origin |
aeColor4 | currentVertexColor |
aeTexCoord2 | currentVertexTexcoord |
bool | hasMaterial |
aeMaterial * | material |
char * | objName |
bool | isObjTransparent |
float | objRadius |
aeObjRenderingMode | objRenderMode |
Definition at line 127 of file object.h.
|
Add a vertex to this object. This adds a single vertex to this object.
|
|
Draw this object. This is called by aeEngine::Render(). You shouldn't need to call this yourself. Implemented in aeLine, aeModel, aePolygon, aeQuad, aeTriangle, and aeMD2Object. |
|
Return the radius of the bounding sphere of this object.
|
|
Get the object's material.
|
|
Get object's name.
|
|
Get the origin for this object.
|
|
Get a vertex of this object.
|
|
Get the number of vertices in this object.
|
|
Used to check if this object is currently transparent.
|
|
Set the RGBA color of this object. This accepts an aeColor4 to specify the color. Subsequent AddVertex() calls will add a vertex of this color.
|
|
Set the RGB color of this object. This accepts an aeColor3 to specify the color. Subsequent AddVertex() calls will add a vertex of this color.
|
|
Set the RGBA color of this object. The values are from 0.0 to 1.0. Subsequent AddVertex() calls will add a vertex of this color.
|
|
Set the RGB color of this object. The values are from 0.0 to 1.0. Subsequent AddVertex() calls will add a vertex of this color.
|
|
Set material for this object.
|
|
Set the object rendering mode. For each derived object type (aeTriangle, aeQuad, aePolygon, aeLine) there is a set of rendering modes which indicate how the object's vertices are to be interpreted when drawing them. Possible modes are:
|
|
Set the origin for this object.
|
|
Set the texture coordinate for the next vertex(es). Use this before AddVertex() to add a texture coordinate for that vertex. If you set a texcoord only for the first vertex, that coordinate will be used for all subsequent vertices until you specify a new texture coordinate.
|
|
Set the texture coordinate for the next vertex(es). Use this before AddVertex() to add a texture coordinate for that vertex. If you set a texcoord only for the first vertex, that coordinate will be used for all subsequent vertices until you specify a new texture coordinate.
|
|
Used to specify whether this object is transparent or not.
|