Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9833 in orxonox.OLD for branches/new_class_id/src/lib/gui


Ignore:
Timestamp:
Sep 26, 2006, 4:59:49 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: almost killed off the old ResourceManager

Location:
branches/new_class_id/src/lib/gui/gl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/gui/gl/glgui_handler.cc

    r9715 r9833  
    2323#include "glgui_cursor.h"
    2424
     25#include "loading/new_resource_manager.h"
     26
    2527#include <cassert>
    2628
     
    3032/// TAKE THIS OUT OF HERE.
    3133#include "graphics_engine.h"
    32 #include "loading/resource_manager.h"
    3334
    3435namespace OrxGui
     
    7677    this->_cursor->setMaxBorders(Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY()));
    7778
    78     _cursor->loadTextureSequence(ResourceManager::getInstance()->getDataDir() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49);
     79    _cursor->loadTextureSequence(Resources::NewResourceManager::getInstance()->mainGlobalPath().name() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49);
    7980
    8081  }
  • branches/new_class_id/src/lib/gui/gl/glgui_widget.cc

    r9715 r9833  
    2525
    2626#include "loading/load_param.h"
    27 
    28 /// TODO TAKE THIS OUT OF HERE
    29 #include "loading/resource_manager.h"
     27#include "loading/new_resource_manager.h"
    3028
    3129namespace OrxGui
     
    104102
    105103    if(GLGuiWidget::_defaultFont == NULL)
    106       GLGuiWidget::_defaultFont = new Font(ResourceManager::getInstance()->getDataDir() + "/fonts/final_frontier.ttf", 20);
     104      GLGuiWidget::_defaultFont = new Font(Resources::NewResourceManager::getInstance()->mainGlobalPath().name() + "/fonts/final_frontier.ttf", 20);
    107105
    108106    this->_font = *GLGuiWidget::_defaultFont;
Note: See TracChangeset for help on using the changeset viewer.