Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MSModel Class Reference

#include <msmodel.h>

Inheritance diagram for MSModel:

Model List of all members.

Public Member Functions

 MSModel (string dir, string filename)
virtual void render (void)
virtual void tick (double t)
void reload_textures (void)
bool load_model (string dir, string filename)
virtual Vec3 get_min (void)
virtual Vec3 get_max (void)
virtual string get_info ()
Vertexget_vertices (void)
Triangleget_triangles (void)
int get_num_vertices (void)
int get_num_triangles (void)

Protected Attributes

string _dir
 the base dir for textures, etc

string _filename
 the model's filename

Material * _materials
 list of materials used by the model

uint _num_materials
Mesh_meshes
 list of meshes that make up the model

uint _num_meshes
Triangle_triangles
 list of triangles used in the mesh

uint _num_triangles
Vertex_vertices
 list of vertices used in the mesh

uint _num_vertices
Bone_bones
 list of bones in the skeleton

uint _num_bones
double _time
 total animation time, sec

double _curtime
 current time

Vec3 _min
 minimum x,y,z (for bbox)

Vec3 _max
 maximum x,y,z (for bbox)


Detailed Description

A Milkshape3D graphical model.


Member Function Documentation

bool MSModel::load_model string  dir,
string  filename
 

Load in the MS3D model from a model file. Assumes dir is passed in with approprate trailing slash.

void MSModel::reload_textures void   ) 
 

Load in the textures from their files.

void MSModel::render void   )  [virtual]
 

Render the object to the screen.

Reimplemented from Model.

void MSModel::tick double  t  )  [virtual]
 

Advance the animation by t seconds. This involves interpolating between the two closest keyframes to our current time, and updating our bones to the correct location/orientation.


The documentation for this class was generated from the following files:
Generated on Sat Mar 13 15:00:11 2004 by doxygen 1.3.5