Inheritance diagram for model:
Public Methods | |
virtual void | draw (int use3d) |
virtual void | draw () |
virtual | ~model () |
Protected Methods | |
void | alloc () |
model (int vertexes, int tris, int texi, int norms=0) | |
Protected Attributes | |
int | vtxnum |
f3 * | vtx |
int | trinum |
int * | tri |
int | texnum |
f2 * | tex |
f3 * | tex3 |
int * | texi |
int | normals |
f3 * | nor |
|
construct model with given number of vertexes, triangles and texture coordinates |
|
destructor - free memory used by model |
|
call after setting vtxnum,trinum and texnum. Will allocate memory for vertex,triangles and texcoord data |
|
draw this model unsing OpenGL commands Reimplemented in item, house, and fbo_switch. |
|
draw this model unsing OpenGL commands
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|