1 |
#ifndef __Rotations_H__
|
2 |
#define __Rotations_H__
|
3 |
|
4 |
#include "Object3dData.h"
|
5 |
|
6 |
class Rotations : public Object3dData
|
7 |
{
|
8 |
|
9 |
public:
|
10 |
|
11 |
Rotations();
|
12 |
~Rotations();
|
13 |
|
14 |
|
15 |
|
16 |
void copy_matrix(float rotate[4][4],float dest[4][4]);
|
17 |
void inverse_matrix(float rotate[4][4]);
|
18 |
void makenormtab();
|
19 |
void matmulmatrix44(float a[4][4] ,float b[4][4], float result[4][4]);
|
20 |
void clearmatric(float a[4][4]);
|
21 |
void objectspline(float x, float y, float z);
|
22 |
void objectsmulmatrix();
|
23 |
void calculaterotation();
|
24 |
void calculate_inverse_rotation();
|
25 |
void backfacecull();
|
26 |
bool check_vertices_is_visibly( int oo, int step);
|
27 |
void initbackfacecull();
|
28 |
|
29 |
protected:
|
30 |
|
31 |
float rotate[4][4];
|
32 |
float inverse_rotate[4][4];
|
33 |
float rotate_x2[4][4];
|
34 |
float rotate_y2[4][4];
|
35 |
float rotate_z2[4][4];
|
36 |
float translate2[4][4];
|
37 |
|
38 |
float xangle;
|
39 |
float yangle;
|
40 |
float zangle;
|
41 |
|
42 |
private:
|
43 |
};
|
44 |
|
45 |
#endif
|
46 |
|