Changeset 5024 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Aug 15, 2005, 1:00:21 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 6 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 } -
orxonox/trunk/src/lib/gui/gui_exec.h
r5021 r5024 1 1 /*! 2 \file gui_exec.h3 \briefFile that holds the class that creates the execute-Options.4 */2 * file gui_exec.h 3 * File that holds the class that creates the execute-Options. 4 */ 5 5 6 6 #ifndef _GUI_EXEC_H -
orxonox/trunk/src/lib/gui/gui_gtk.h
r5015 r5024 1 1 /*! 2 \file gui_gtk.h3 \briefContains all th different Widgets.4 */2 * @file gui_gtk.h 3 * Contains all th different Widgets. 4 */ 5 5 #ifndef _GUI_GTK_H 6 6 #define _GUI_GTK_H … … 33 33 34 34 // enumerator for different GuiOption-Types 35 enum GUI_OPTION {GUI_BOX = -2, 36 GUI_CONTAINER = -1, 37 GUI_NOTHING = 0, 38 GUI_BOOL = 1, 39 GUI_INT = 2, 40 GUI_FLOAT = 3, 41 GUI_CHAR = 4, 42 GUI_CHAR_ARRAY = 5}; 35 enum GUI_OPTION 36 { 37 GUI_BOX = -2, 38 GUI_CONTAINER = -1, 39 GUI_NOTHING = 0, 40 GUI_BOOL = 1, 41 GUI_INT = 2, 42 GUI_FLOAT = 3, 43 GUI_CHAR = 4, 44 GUI_CHAR_ARRAY = 5 45 }; 43 46 44 47 extern char* executable; -
orxonox/trunk/src/lib/gui/gui_video.cc
r4836 r5024 223 223 } 224 224 } 225 SDL_QuitSubSystem(SDL_INIT_VIDEO); 225 226 SDL_Quit(); 226 227 } -
orxonox/trunk/src/orxonox.cc
r5019 r5024 160 160 161 161 GraphicsEngine::getInstance(); 162 GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, PACKAGE_NAME " " PACKAGE_VERSION);163 162 164 163 GraphicsEngine::getInstance()->initFromIniFile(this->iniParser); 165 164 165 char* icon = ResourceManager::getFullName("pictures/fighter-top-32x32.bmp"); 166 GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, icon); 167 delete icon; 166 168 return 0; 167 169 } -
orxonox/trunk/src/orxonox.h
r5018 r5024 54 54 55 55 56 57 56 //////////////////////// 57 // Start-up functions // 58 //////////////////////// 58 59 int startHelp(int argc, char** argv); 59 60 int startOrxonox(int argc, char** argv);
Note: See TracChangeset
for help on using the changeset viewer.