Changeset 7157 in orxonox.OLD for trunk/src/subprojects
- Timestamp:
- Feb 16, 2006, 3:34:01 PM (19 years ago)
- Location:
- trunk/src/subprojects
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/subprojects/collision_detection/collision_detection.cc
r7156 r7157 31 31 32 32 #include "graphics_engine.h" 33 34 #include "state.h" 33 35 34 36 Model* mod; … … 53 55 CDEngine::getInstance(); 54 56 57 State::setObjectManager(new ObjectManager); 55 58 /* Primitive Data Test */ 56 59 // sVec3D* data = new sVec3D[6]; … … 92 95 // entityList->add(b); 93 96 94 CDEngine::getInstance()->setEntityList(entityList);97 //CDEngine::getInstance()->setEntityList(entityList); 95 98 96 99 LightManager* lightMan = LightManager::getInstance(); … … 229 232 { 230 233 231 CDEngine::getInstance()->checkCollisions();234 //CDEngine::getInstance()->checkCollisions(); 232 235 233 236 -
trunk/src/subprojects/collision_detection/collision_test_entity.cc
r6512 r7157 82 82 83 83 84 /**85 * draws the CollisionTestEntity86 */87 void CollisionTestEntity::draw ()88 {89 glMatrixMode(GL_MODELVIEW);90 glPushMatrix();91 float matrix[4][4];92 93 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);94 //rotate95 this->getAbsDir().matrix (matrix);96 glMultMatrixf((float*)matrix);97 98 this->model->draw();99 100 glPopMatrix();101 }102 -
trunk/src/subprojects/collision_detection/collision_test_entity.h
r6512 r7157 30 30 virtual void tick (float time); 31 31 32 virtual void draw ();33 34 32 }; 35 33 -
trunk/src/subprojects/framework.cc
r6074 r7157 90 90 { 91 91 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 92 glLoadIdentity(); // Reset the view 92 camera->apply(); 93 camera->project(); 93 94 94 95 this->moduleDraw(); 95 96 96 camera->apply();97 97 98 98 SDL_GL_SwapBuffers(); // Swap the buffers -
trunk/src/subprojects/importer/importer.cc
r6310 r7157 95 95 void Framework::moduleDraw(void) const 96 96 { 97 LightManager::getInstance()->draw(); 97 98 obj->draw(); 98 99 99 LightManager::getInstance()->draw();100 100 } 101 101
Note: See TracChangeset
for help on using the changeset viewer.