TextureManager::~TextureManager() { // call this ONLY when linking with FreeImage as a static library #ifdef FREEIMAGE_LIB FreeImage_DeInitialise(); #endif UnloadAllTextures(); m_inst = 0; }
void ModelContainer::UnloadAll(void) { int i; for (i=0; i < NUMBER_OF_MODELS; i++) UnloadMD2Model(i); UnloadAllTextures(); for (i=0; i < NUMBER_OF_XMODELS; i++) UnloadXModel(i); }
TextureManager::~TextureManager() { UnloadAllTextures(); }