comparison pidgin/plugins/crazychat/draw.c @ 31534:a8cc50c2279f

Remove trailing whitespace
author Richard Laager <rlaager@wiktel.com>
date Tue, 04 Jan 2011 06:55:30 +0000
parents 5fe8042783c1
children
comparison
equal deleted inserted replaced
31533:44f53d3fc54f 31534:a8cc50c2279f
38 points[3][2]=front; 38 points[3][2]=front;
39 39
40 ctrlpoints[0][0][0]=points[0][0]; 40 ctrlpoints[0][0][0]=points[0][0];
41 ctrlpoints[0][0][1]=points[0][1]; 41 ctrlpoints[0][0][1]=points[0][1];
42 ctrlpoints[0][0][2]=points[0][2]; 42 ctrlpoints[0][0][2]=points[0][2];
43 43
44 ctrlpoints[0][1][0]=points[1][0]; 44 ctrlpoints[0][1][0]=points[1][0];
45 ctrlpoints[0][1][1]=points[1][1]; 45 ctrlpoints[0][1][1]=points[1][1];
46 ctrlpoints[0][1][2]=points[1][2]; 46 ctrlpoints[0][1][2]=points[1][2];
47 47
48 ctrlpoints[0][2][0]=points[2][0]; 48 ctrlpoints[0][2][0]=points[2][0];
49 ctrlpoints[0][2][1]=points[2][1]; 49 ctrlpoints[0][2][1]=points[2][1];
50 ctrlpoints[0][2][2]=points[2][2]; 50 ctrlpoints[0][2][2]=points[2][2];
51 51
52 ctrlpoints[1][0][0]=points[0][0]; 52 ctrlpoints[1][0][0]=points[0][0];
53 ctrlpoints[1][0][1]=points[0][1]; 53 ctrlpoints[1][0][1]=points[0][1];
54 ctrlpoints[1][0][2]=points[0][2]; 54 ctrlpoints[1][0][2]=points[0][2];
55 55
56 ctrlpoints[1][1][0]=0; 56 ctrlpoints[1][1][0]=0;
57 ctrlpoints[1][1][1]=0; 57 ctrlpoints[1][1][1]=0;
58 ctrlpoints[1][1][2]=back; 58 ctrlpoints[1][1][2]=back;
59 59
60 ctrlpoints[1][2][0]=points[2][0]; 60 ctrlpoints[1][2][0]=points[2][0];
61 ctrlpoints[1][2][1]=points[2][1]; 61 ctrlpoints[1][2][1]=points[2][1];
62 ctrlpoints[1][2][2]=points[2][2]; 62 ctrlpoints[1][2][2]=points[2][2];
63 63
64 ctrlpoints[2][0][0]=points[0][0]; 64 ctrlpoints[2][0][0]=points[0][0];
65 ctrlpoints[2][0][1]=points[0][1]; 65 ctrlpoints[2][0][1]=points[0][1];
66 ctrlpoints[2][0][2]=points[0][2]; 66 ctrlpoints[2][0][2]=points[0][2];
67 67
68 ctrlpoints[2][1][0]=points[3][0]; 68 ctrlpoints[2][1][0]=points[3][0];
69 ctrlpoints[2][1][1]=points[3][1]; 69 ctrlpoints[2][1][1]=points[3][1];
70 ctrlpoints[2][1][2]=points[3][2]; 70 ctrlpoints[2][1][2]=points[3][2];
71 71
72 ctrlpoints[2][2][0]=points[2][0]; 72 ctrlpoints[2][2][0]=points[2][0];
73 ctrlpoints[2][2][1]=points[2][1]; 73 ctrlpoints[2][2][1]=points[2][1];
74 ctrlpoints[2][2][2]=points[2][2]; 74 ctrlpoints[2][2][2]=points[2][2];
75 } 75 }
76 76
77 void drawMouth(struct Packet* p) 77 void drawMouth(struct Packet* p)
78 { 78 {
79 GLshort[4][3][3] ctrlpoints; 79 GLshort[4][3][3] ctrlpoints;
80 CalculateMouthPoints(ctrlpoints, p); 80 CalculateMouthPoints(ctrlpoints, p);
81 81
82 glMap2f(GL_MAP2_VERTEX_3, 0, 10, 3, 3, 0.0, 10.0, 9, 3, &ctrlpoints[0][0][0]); 82 glMap2f(GL_MAP2_VERTEX_3, 0, 10, 3, 3, 0.0, 10.0, 9, 3, &ctrlpoints[0][0][0]);
83 glEnable(GL_MAP2_VERTEX_3); 83 glEnable(GL_MAP2_VERTEX_3);
84 glMapGrid2f(10, 0, 10, 10, 0, 10); 84 glMapGrid2f(10, 0, 10, 10, 0, 10);
85 glEnable(GL_AUTO_NORMAL); 85 glEnable(GL_AUTO_NORMAL);
86 glEvalMesh2(GL_FILL, 0, 10, 0, 10); 86 glEvalMesh2(GL_FILL, 0, 10, 0, 10);
87 } 87 }
88 88
89 void initEyes(){ 89 void initEyes(){
90 90
91 91
92 void drawEyes(struct Packet* p){ 92 void drawEyes(struct Packet* p){
93 GLshort eye[3][3][3]; 93 GLshort eye[3][3][3];
94 CalculateEyePoints(eye, p, LEFT); 94 CalculateEyePoints(eye, p, LEFT);
95 glMap2f(GL_MAP2_VERTEX_3, 0, 10, 3, 3, 0.0, 10.0, 9, 3, &eyep[0][0][0]); 95 glMap2f(GL_MAP2_VERTEX_3, 0, 10, 3, 3, 0.0, 10.0, 9, 3, &eyep[0][0][0]);
96 glMapGrid2f(10, 0, 10, 10, 0, 10); 96 glMapGrid2f(10, 0, 10, 10, 0, 10);
97 glEvalMesh2(GL_FILL, 0, 10, 0, 10); 97 glEvalMesh2(GL_FILL, 0, 10, 0, 10);
98 98
99 CalculateEyePoints(eye, p, RIGHT); 99 CalculateEyePoints(eye, p, RIGHT);
100 glMap2f(GL_MAP2_VERTEX_3, 0, 10, 3, 3, 0.0, 10.0, 9, 3, &eyep[0][0][0]); 100 glMap2f(GL_MAP2_VERTEX_3, 0, 10, 3, 3, 0.0, 10.0, 9, 3, &eyep[0][0][0]);
101 glMapGrid2f(10, 0, 10, 10, 0, 10); 101 glMapGrid2f(10, 0, 10, 10, 0, 10);
102 glEvalMesh2(GL_FILL, 0, 10, 0, 10); 102 glEvalMesh2(GL_FILL, 0, 10, 0, 10);
103 103
104 } 104 }
105 105
106 void drawHead(struct Packet* p){ 106 void drawHead(struct Packet* p){
107 } 107 }