altEngine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
model.h
Go to the documentation of this file.
1
#include "
include.h
"
2
3
#ifndef MODEL_H
4
#define MODEL_H
5
6
class
Model
7
{
8
public
:
9
Model
(
Entity
*
entity
);
10
Model
();
11
virtual
~Model
();
12
static
void
CreateObjects
(
Graphics
&gfx);
13
void
calc_frustum
(
matrix4
&clip);
14
void
load
(
Graphics
&gfx,
char
*file);
15
void
create_box
(
Graphics
&gfx,
vec3
*
aabb
);
16
virtual
float
*
get_matrix
(
float
*matrix);
17
void
render
(
Graphics
&gfx);
18
void
render_box
(
Graphics
&gfx);
19
void
clone
(
Model
&model);
20
void
getForwardVector
(
vec3
&forward);
21
virtual
void
get_frame
(
Frame
&frame);
22
void
make_aabb
();
23
24
Entity
*
entity
;
25
26
int
num_vertex
;
27
int
num_index
;
28
vertex_t
*
model_vertex_array
;
29
unsigned
int
*
model_index_array
;
30
char
*
model_file
;
31
char
*
index_file
;
32
int
model_vertex
;
33
int
model_index
;
34
int
model_tex
;
35
int
normal_tex
;
36
37
//quaternion orientation;
38
matrix3
morientation
;
39
vec3
aabb[8];
40
int
box_vertex
;
41
int
box_index
;
42
vec3
center
;
43
vec4
frustum
[6];
44
45
static
int
quad_vertex
;
46
static
int
quad_index
;
47
48
static
int
cube_vertex
;
49
static
int
cube_index
;
50
51
static
int
skybox_vertex
;
52
static
int
skybox_index
;
53
54
char
name
[128];
55
56
bool
blend
;
57
bool
cull_none
;
58
bool
rail_trail
;
59
bool
lightning_trail
;
60
};
61
62
#endif
Generated on Tue Nov 21 2017 19:18:54 for altEngine by
1.8.2