Changeset 5024 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- Aug 15, 2005, 1:00:21 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4955 r5024 115 115 if (this->isInit) 116 116 return -1; 117 // initialize SDL_VIDEO117 // initialize SDL_VIDEO 118 118 if (SDL_Init(SDL_INIT_VIDEO) == -1) 119 120 119 { 120 PRINTF(1)("could not initialize SDL Video\n"); 121 121 // return -1; 122 122 } 123 123 // initialize SDL_GL-settings 124 124 this->setGLattribs(); … … 145 145 this->setResolution(resX, resY, bbp); 146 146 147 // TO DO: Create a cool icon and use it here148 char* loadPic = new char[strlen(ResourceManager::getInstance()->getDataDir())+ 100];149 sprintf(loadPic, "%s%s", ResourceManager::getInstance()->getDataDir(), "pictures/orxonox-icon32x32.bmp");150 SDL_WM_SetIcon(SDL_LoadBMP(loadPic), NULL);151 delete loadPic;152 147 // Enable default GL stuff 153 148 glEnable(GL_DEPTH_TEST); … … 165 160 void GraphicsEngine::setWindowName(const char* windowName, const char* icon) 166 161 { 167 // Set window labeling 162 SDL_WM_SetIcon(SDL_LoadBMP(icon), NULL); 163 168 164 SDL_WM_SetCaption (windowName, icon); 169 165 }
Note: See TracChangeset
for help on using the changeset viewer.