#include "Graphix\Shader.h"
#include "Graphix\Graphix.h"
+#include "Graphix\Texture.h"
#include "Fps.h"
#include "Events.h"
Game::~Game()
{
delete current_world;
+
+ //RALLLY BAD HACK!!!! No Texture will be freed!!!!
+ Texture::clean();
}
void Graphix::cleanup()
{
+ delete shader_BBox;
SDL_SetWindowGrab(sdl_window, SDL_FALSE);
SDL_GL_DeleteContext(sdl_glcontext);
Texture::~Texture()
{
+ texture_map.erase(path);
glDeleteTextures(1, &handle);
}
return path;
}
+void Texture::clean()
+{
+ //RALLLY BAD HACK!!!! No Texture will be freed!!!!
+ texture_map.clear();
+}
+
str2int_map Texture::texture_map;
\ No newline at end of file
vec4 material;
+ //RALLLY BAD HACK!!!! No Texture will be freed!!!!
+ static void clean();
+
private:
unsigned int handle;
string path;