Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

model Class Reference

Inheritance diagram for model:

item cylinder cylindercaps empty flat coneseg pseudocylinder fbo_switch house List of all members.

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
f3vtx
int trinum
int * tri
int texnum
f2tex
f3tex3
int * texi
int normals
f3nor

Detailed Description

class containing model in B-representation as vertex, triangle and texcoord lists


Constructor & Destructor Documentation

model int    vertexes,
int    tris,
int    texi,
int    norms = 0
[protected]
 

construct model with given number of vertexes, triangles and texture coordinates

virtual ~model   [virtual]
 

destructor - free memory used by model


Member Function Documentation

void alloc   [protected]
 

call after setting vtxnum,trinum and texnum. Will allocate memory for vertex,triangles and texcoord data

virtual void draw   [virtual]
 

draw this model unsing OpenGL commands

Reimplemented in item, house, and fbo_switch.

virtual void draw int    use3d [virtual]
 

draw this model unsing OpenGL commands

Parameters:
use3d Use 3d coordinates instead of 2d


Member Data Documentation

f3* nor [protected]
 

int normals [protected]
 

f2* tex [protected]
 

f3* tex3 [protected]
 

int* texi [protected]
 

int texnum [protected]
 

int* tri [protected]
 

int trinum [protected]
 

f3* vtx [protected]
 

int vtxnum [protected]