Changeset 3174 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Dec 15, 2004, 1:45:10 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r3022 r3174 97 97 98 98 get_config_file (argc, argv); 99 100 // initialize SDL 101 printf("> Initializing SDL\n"); 102 if( SDL_Init (SDL_INIT_EVERYTHING) == -1) 103 { 104 printf ("Could not SDL_Init(): %s\n", SDL_GetError()); 105 return -1; 106 } 107 99 SDL_Init (SDL_INIT_TIMER); 108 100 // initialize everything 109 printf("> Initializing video\n");110 101 if( init_video () == -1) return -1; 111 printf("> Initializing sound\n");112 102 if( init_sound () == -1) return -1; 113 103 printf("> Initializing input\n"); … … 128 118 int Orxonox::init_video () 129 119 { 120 printf("> Initializing video\n"); 121 if (SDL_Init (SDL_INIT_VIDEO) == -1) 122 { 123 printf ("could not initialize SDL Video\n"); 124 return -1; 125 } 130 126 // Set video mode 131 127 // TO DO: parse arguments for settings … … 185 181 int Orxonox::init_sound () 186 182 { 183 printf("> Initializing sound\n"); 184 // SDL_Init (SDL_INIT_AUDIO); 187 185 printf("Not yet implemented\n"); 188 186 return 0;
Note: See TracChangeset
for help on using the changeset viewer.