-
Notifications
You must be signed in to change notification settings - Fork 2
/
marill.h
91 lines (82 loc) · 2.26 KB
/
marill.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef _MARILL_H_
#define _MARILL_H_
/*
Define of humanoid PickachuModel properties
*/
#define WIN_WIDTH_MARILL 800
#define WIN_HEIGHT_MARILL 800
#define TORSO_HEIGHT_MARILL 2.5
#define TORSO_RADIUS_MARILL 1.5
#define UPPER_ARM_HEIGHT_MARILL 0.7
#define LOWER_ARM_HEIGHT_MARILL 1.3
#define UPPER_ARM_RADIUS_MARILL 0.2
#define LOWER_ARM_RADIUS_MARILL 0.0
#define UPPER_LEG_RADIUS_MARILL 0.0
#define LOWER_LEG_RADIUS_MARILL 0.0
#define LOWER_LEG_HEIGHT_MARILL_MARILL 1.1
#define UPPER_LEG_HEIGHT_MARILL 0.0
#define EAR_HEIGHT_MARILL 2.9
#define EAR_RADIUS_MARILL 0.4
#define TAIL_RADIUS_MARILL 0.7
#define TAIL_HEIGHT_MARILL 3.3
#define HEAD_HEIGHT_MARILL 1.0
#define HEAD_RADIUS_MARILL 1.0
#define HAND_RADIUS_MARILL 0.0
#define HAND_HEIGHT_MARILL 0.3
#define FOOT_RADIUS_MARILL 0.2
#define FOOT_HEIGHT_MARILL 0.5
#define NECK_RADIUS_MARILL 0.2
#define NECK_HEIGHT_MARILL 0.1
#define JOINT_POINT_RADIUS_MARILL 0.0
#define JOINT_POINT_HEIGHT_MARILL 0.1
bool flag1M=true, flag2M=false,
flag3M=true, flag4M=false,
flag5M=true, flag6M=false,
hflagM=true;
/*
Initialization of PickachuModel parts' angles
*/
static GLfloat thetaM[17] = {0.0, 0.0, 0.0, 90.0,
-20.0, 90.0, -20.0, 180.0,
0.0, 180.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0,
0.0
};
/*
PickachuModel parts
*/
GLUquadricObj *tM, *hM, *nM, *lhM,
*rhM, *lfM, *rfM, *jpM,
*lhndM, *lftM, *luaM, *llaM,
*ruaM, *rlaM, *lllM, *rllM,
*rulM, *lulM, *rhndM, *rftM;
class MarillModel{
public:
MarillModel(){}
~MarillModel(){}
void head(GLuint texture);
void right_ear(GLuint texture);
void left_ear(GLuint texture);
void neck();
void torso(GLuint texture);
void joint_point();
void left_upper_arm(GLuint texture);
void left_lower_arm();
void left_hand();
void right_upper_arm(GLuint texture);
void right_lower_arm();
void right_hand();
void left_upper_leg();
void left_lower_leg();
void left_foot(GLuint texture);
void right_upper_leg();
void right_lower_leg();
void right_foot(GLuint texture);
void tail(GLuint texture);
void drawCyborg(GLuint texture1,GLuint texture2,GLuint texture3,GLuint texture4);
void enableShade();
void disableShade();
static void timer_walk(int nm);
};
#include "marill.cpp"
#endif