Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4094 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
May 6, 2005, 8:49:29 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: orxonox now runs from anywhere of the LINUX environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/graphics_engine.cc

    r3844 r4094  
    1717
    1818#include "graphics_engine.h"
     19#include "resource_manager.h"
    1920
    2021#include "debug.h"
     
    101102 
    102103  // TO DO: Create a cool icon and use it here
    103   SDL_WM_SetIcon(SDL_LoadBMP("../data/pictures/orxonox-icon32x32.bmp"), NULL); 
    104 
     104  char* loadPic = new char[strlen(ResourceManager::getInstance()->getDataDir())+ 100];
     105  sprintf(loadPic, "%s%s", ResourceManager::getInstance()->getDataDir(),  "pictures/orxonox-icon32x32.bmp");
     106  SDL_WM_SetIcon(SDL_LoadBMP(loadPic), NULL); 
     107  delete loadPic;
    105108  // Enable default GL stuff
    106109  glEnable(GL_DEPTH_TEST);
Note: See TracChangeset for help on using the changeset viewer.