Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7123 in orxonox.OLD for trunk/src/world_entities/skybox.cc


Ignore:
Timestamp:
Feb 11, 2006, 8:57:26 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some cleanup before the new tag

  1. BaseObject isA was wrong… every subclass was detected as any other subclass
  2. Classes get unloaded again as they should
  3. some minor fixes (Material* → Material) and some other cleanups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/skybox.cc

    r6863 r7123  
    2727#include "network_game_manager.h"
    2828#include "converter.h"
     29#include "resource_manager.h"
     30
    2931
    3032using namespace std;
     
    107109    if( this->material[i])
    108110      delete this->material[i];
    109 //     if( this->cubeTexture[i])
    110 //       delete this->cubeTexture[i];
     111    if( this->cubeTexture[i])
     112      ResourceManager::getInstance()->unload(this->cubeTexture[i]);
    111113  }
    112114}
     
    169171    this->loadCubeMapTextures(top, bottom, left, right, front, back);
    170172}
    171 
    172 
    173 #include "resource_manager.h"
    174173
    175174void SkyBox::loadCubeMapTextures(const char* top, const char* bottom, const char* left,
Note: See TracChangeset for help on using the changeset viewer.