altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Model Class Reference

#include <model.h>

Inheritance diagram for Model:
Inheritance graph
[legend]
Collaboration diagram for Model:
Collaboration graph
[legend]

Public Member Functions

 Model (Entity *entity)
 
 Model ()
 
virtual ~Model ()
 
void calc_frustum (matrix4 &clip)
 
void load (Graphics &gfx, char *file)
 
void create_box (Graphics &gfx, vec3 *aabb)
 
virtual float * get_matrix (float *matrix)
 
void render (Graphics &gfx)
 
void render_box (Graphics &gfx)
 
void clone (Model &model)
 
void getForwardVector (vec3 &forward)
 
virtual void get_frame (Frame &frame)
 
void make_aabb ()
 

Static Public Member Functions

static void CreateObjects (Graphics &gfx)
 

Public Attributes

Entityentity
 
int num_vertex
 
int num_index
 
vertex_tmodel_vertex_array
 
unsigned int * model_index_array
 
char * model_file
 
char * index_file
 
int model_vertex
 
int model_index
 
int model_tex
 
int normal_tex
 
matrix3 morientation
 
vec3 aabb [8]
 
int box_vertex
 
int box_index
 
vec3 center
 
vec4 frustum [6]
 
char name [128]
 
bool blend
 
bool cull_none
 
bool rail_trail
 
bool lightning_trail
 

Static Public Attributes

static int quad_vertex = 0
 
static int quad_index = 0
 
static int cube_vertex = 0
 
static int cube_index = 0
 
static int skybox_vertex
 
static int skybox_index
 

Constructor & Destructor Documentation

Model::Model ( Entity entity)
Model::Model ( )
Model::~Model ( )
virtual

Member Function Documentation

void Model::calc_frustum ( matrix4 clip)

Here is the call graph for this function:

void Model::clone ( Model model)

Here is the caller graph for this function:

void Model::create_box ( Graphics gfx,
vec3 aabb 
)

Here is the call graph for this function:

void Model::CreateObjects ( Graphics gfx)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void Model::get_frame ( Frame frame)
virtual

Reimplemented in RigidBody.

Here is the caller graph for this function:

float * Model::get_matrix ( float *  matrix)
virtual

Reimplemented in RigidBody.

Here is the caller graph for this function:

void Model::getForwardVector ( vec3 forward)

Here is the caller graph for this function:

void Model::load ( Graphics gfx,
char *  file 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Model::make_aabb ( )

Here is the caller graph for this function:

void Model::render ( Graphics gfx)

Here is the call graph for this function:

Here is the caller graph for this function:

void Model::render_box ( Graphics gfx)

Here is the call graph for this function:

Member Data Documentation

vec3 Model::aabb[8]
bool Model::blend
int Model::box_index
int Model::box_vertex
vec3 Model::center
int Model::cube_index = 0
static
int Model::cube_vertex = 0
static
bool Model::cull_none
Entity* Model::entity
vec4 Model::frustum[6]
char* Model::index_file
bool Model::lightning_trail
char* Model::model_file
int Model::model_index
unsigned int* Model::model_index_array
int Model::model_tex
int Model::model_vertex
vertex_t* Model::model_vertex_array
matrix3 Model::morientation
char Model::name[128]
int Model::normal_tex
int Model::num_index
int Model::num_vertex
int Model::quad_index = 0
static
int Model::quad_vertex = 0
static
bool Model::rail_trail
int Model::skybox_index
static
int Model::skybox_vertex
static

The documentation for this class was generated from the following files: