#include <PropaneModel.h>
Public Member Functions | |
| virtual void | renderModel (float wx, float wy, float rz, float rX, float rY, float rZ, int frame, GLuint *texture) |
| Renders the object in worldspace at (wx,wy,wz) with rotation (rX,rY,rZ) in animation frame frame, with texture map texture. | |
| virtual bool | loadModel (char *filename) |
| Loads the model from disk. Returns false on failure. | |
| PropaneModel () | |
| Basic constructor. Gives you an impostor object that should not be rendered. | |
| virtual | ~PropaneModel () |
| Basic destructor. | |
| int | getFrames () |
| Returns the number of framees in this object. | |
Protected Member Functions | |
| void | renderGlCommands (int commands[]) |
| Renders the object using the GL commands provided. | |
Protected Attributes | |
| float | scaleX |
| The graphical scale for this object. | |
| srTriangles * | tris |
| Container of the triangles. | |
| stTexCoords * | texCoords |
| Container of the texture coordinates (S,T). | |
| stFrames * | frames |
| Container of the animation frames. | |
| int * | commands |
| Container of the OpenGL commands. | |
| int | numFrames |
| Count of frames. | |
| int | numTris |
| Count of triangles. | |
| int | skinWidth |
| Width of the skin texture. | |
| int | skinHeight |
| Height of the skin texture. | |
| float | bbox_w |
| Width, height, and depth of the bounding box for this object. | |
| float | uniform_scale |
| Uniform scaling value to normalize this object to (1,1,1). | |
1.4.7