-
Notifications
You must be signed in to change notification settings - Fork 2
/
charmander.h
77 lines (70 loc) · 2.01 KB
/
charmander.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
#ifndef _CHARMANDER_H_
#define _CHARMANDER_H_
#define WIN_WIDTH_CHAR 800
#define WIN_HEIGHT_CHAR 800
#define TORSO_HEIGHT_CHAR 1.5
#define TORSO_RADIUS_CHAR 1.5
#define UPPER_ARM_HEIGHT_CHAR 2.0
#define LOWER_ARM_HEIGHT_CHAR 0.0
#define UPPER_ARM_RADIUS_CHAR 0.5
#define LOWER_ARM_RADIUS_CHAR 0.4
#define UPPER_LEG_RADIUS_CHAR 0.6
#define LOWER_LEG_RADIUS_CHAR 0.6
//#define LOWER_LEG_HEIGHT_CHAR 2.5
#define LOWER_LEG_HEIGHT_CHAR 0.0
#define UPPER_LEG_HEIGHT_CHAR 3.0
#define HEAD_HEIGHT_CHAR 1.2
#define HEAD_RADIUS_CHAR 1.0
#define HAND_RADIUS_CHAR 0.4
#define HAND_HEIGHT_CHAR 0.8
#define FOOT_RADIUS_CHAR 0.3
#define FOOT_HEIGHT_CHAR 1.1
#define NECK_RADIUS_CHAR 0.6
#define NECK_HEIGHT_CHAR 0.6
#define JOINT_POINT_RADIUS_CHAR 0.4
#define JOINT_POINT_HEIGHT_CHAR 0.5
#define TAIL_RADIUS_CHAR 0.8
#define TAIL_HEIGHT_CHAR 6.0
/*
Initialization of CharmanderModel parts' angles
*/
static GLfloat thetaC[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
};
/*
CharmanderModel parts
*/
GLUquadricObj *tC, *hC, *nC, *lhC,
*rhC, *lfC, *rfC, *jpC,
*lhndC, *lftC, *luaC, *llaC,
*ruaC, *rlaC, *lllC, *rllC,
*rulC, *lulC, *rhndC, *rftC;
class CharmanderModel{
public:
CharmanderModel(){}
~CharmanderModel(){}
void head(GLuint texture1,GLuint texture2);
void neck(GLuint texture);
void torso(GLuint texture);
void joint_point(GLuint texture);
void joint_point2();
void left_upper_arm(GLuint texture);
void left_hand();
void right_upper_arm(GLuint texture);
void right_hand();
void left_upper_leg(GLuint texture);
void left_lower_leg(GLuint texture);
void left_foot();
void right_upper_leg(GLuint texture);
void right_lower_leg(GLuint texture);
void right_foot();
void tail(GLuint texture1,GLuint texture2);
void drawCyborg(GLuint texture1,GLuint texture2,GLuint texture3,GLuint texture4,GLuint texture5);
void enableShade();
void disableShade();
};
#include "charmander.cpp"
#endif