Changeset 8561 in orxonox.OLD for branches/bsp_model/src
- Timestamp:
- Jun 17, 2006, 12:36:19 PM (18 years ago)
- Location:
- branches/bsp_model/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc
r8560 r8561 204 204 */ 205 205 void MD3Model::drawBoneFrame(MD3BoneFrame* frame) 206 {} 206 { 207 float x1 = frame->mins.x; 208 float y1 = frame->mins.y; 209 float z1 = frame->mins.z; 210 float x2 = frame->maxs.x; 211 float y2 = frame->maxs.y; 212 float z2 = frame->maxs.z; 213 214 glPushAttrib(GL_TEXTURE_2D); 215 glPushAttrib(GL_LIGHTING); 216 217 glColor3f(1.0f,0.0f,0.0f); 218 glPointSize(6.0f); 219 220 glBegin(GL_POINTS); 221 glVertex3f(frame->position.x, frame->position.y, frame->position.z); 222 glEnd(); 223 glPointSize(1.0f); 224 225 glColor3f(0.0f,1.0f,0.0f); 226 glBegin(GL_LINE_LOOP); 227 glVertex3f(x1,y1,z1); 228 glVertex3f(x1,y1,z2); 229 glVertex3f(x1,y2,z2); 230 glVertex3f(x1,y2,z1); 231 glEnd(); 232 233 glBegin(GL_LINE_LOOP); 234 glVertex3f(x2,y2,z2); 235 glVertex3f(x2,y1,z2); 236 glVertex3f(x2,y1,z1); 237 glVertex3f(x2,y2,z1); 238 glEnd(); 239 240 glBegin(GL_LINES); 241 glVertex3f(x1,y1,z1); 242 glVertex3f(x2,y1,z1); 243 244 glVertex3f(x1,y1,z2); 245 glVertex3f(x2,y1,z2); 246 247 glVertex3f(x1,y2,z2); 248 glVertex3f(x2,y2,z2); 249 250 glVertex3f(x1,y2,z1); 251 glVertex3f(x2,y2,z1); 252 glEnd(); 253 254 glPopAttrib(); 255 glPopAttrib(); 256 } 207 257 208 258 -
branches/bsp_model/src/lib/math/quaternion.h
r8560 r8561 119 119 120 120 121 // some helper functions122 float* quaternionFromMatrix(float* mat);123 124 121 125 122 #endif /* __QUATERNION_H_ */
Note: See TracChangeset
for help on using the changeset viewer.