Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3174 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Dec 15, 2004, 1:45:10 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: SDL_Init - fix. it's better that way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r3022 r3174  
    9797 
    9898  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);
    108100  // initialize everything
    109   printf("> Initializing video\n");
    110101  if( init_video () == -1) return -1;
    111   printf("> Initializing sound\n");
    112102  if( init_sound () == -1) return -1;
    113103  printf("> Initializing input\n");
     
    128118int Orxonox::init_video ()
    129119{
     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    }
    130126  // Set video mode
    131127  // TO DO: parse arguments for settings
     
    185181int Orxonox::init_sound ()
    186182{
     183  printf("> Initializing sound\n");
     184  // SDL_Init (SDL_INIT_AUDIO);
    187185  printf("Not yet implemented\n");
    188186  return 0;
Note: See TracChangeset for help on using the changeset viewer.