Changeset 4681 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 24, 2005, 12:32:14 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4663 r4681 157 157 fullscreenFlag = 0; 158 158 159 printf ("ok\n");160 159 if((this->screen = SDL_SetVideoMode(this->resolutionX, this->resolutionY, this->bitsPerPixel, this->videoFlags | fullscreenFlag)) == NULL) 161 160 { … … 339 338 { 340 339 #ifndef NO_TEXT 341 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/ druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0);340 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 342 341 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 343 342 this->geTextCFPS->setPosition(5, 500); 344 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/ druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0);343 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 345 344 this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT); 346 345 this->geTextMaxFPS->setPosition(5, 530); 347 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/ druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0);346 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 35, TEXT_DYNAMIC, 0, 255, 0); 348 347 this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT); 349 348 this->geTextMinFPS->setPosition(5, 560); -
orxonox/trunk/src/lib/graphics/graphics_engine.h
r4619 r4681 59 59 void listModes(void); 60 60 61 /** \brief swaps the GL_BUFFERS */ 62 static void swapBuffers(void) { SDL_GL_SwapBuffers(); }; 63 61 64 public: 62 65 static bool texturesEnabled; -
orxonox/trunk/src/lib/graphics/text_engine.cc
r4597 r4681 254 254 glTranslatef(pos.x, pos.y, 0); 255 255 256 // printf("%d, %d\n", this->font->getFastTextureID(), glyphArray[65]->displayList);257 256 char* tmpText = this->text; 258 257 while (*tmpText != '\0') -
orxonox/trunk/src/story_entities/world.cc
r4664 r4681 1072 1072 until there is need or time to do it the other way around. 1073 1073 \todo: GraphicsEngine ticks world: separation of processes and data... 1074 1075 bensch: in my opinion the GraphicsEngine could draw the world, but not tick it, 1076 beceause graphics have nothing(or at least not much) to do with Motion. 1074 1077 */ 1075 1078 GraphicsEngine::getInstance()->tick(this->dtS); … … 1110 1113 /* \todo draw HUD */ 1111 1114 // flip buffers 1112 SDL_GL_SwapBuffers();1115 GraphicsEngine::swapBuffers(); 1113 1116 //SDL_Surface* screen = Orxonox::getInstance()->getScreen (); 1114 1117 //SDL_Flip (screen);
Note: See TracChangeset
for help on using the changeset viewer.