projectM-iTunes-VizKit and some wmp improvements.

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@568 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
psperl
2007-10-12 19:44:17 +00:00
parent b4f889e3ee
commit 141b822483
58 changed files with 48 additions and 74 deletions

View File

@ -7,7 +7,17 @@
TextureManager::TextureManager(const std::string _presetURL): presetURL(_presetURL)
{
GLuint tex = SOIL_load_OGL_texture_from_memory(
Preload();
}
TextureManager::~TextureManager()
{
Clear();
}
void TextureManager::Preload()
{
GLuint tex = SOIL_load_OGL_texture_from_memory(
M_data,
M_bytes,
SOIL_LOAD_AUTO,
@ -44,9 +54,9 @@ TextureManager::TextureManager(const std::string _presetURL): presetURL(_presetU
textures["headphones.tga"]=tex;
}
TextureManager::~TextureManager()
{
std::map<std::string, GLuint>::const_iterator iter;
void TextureManager::Clear()
{
std::map<std::string, GLuint>::const_iterator iter;
for(iter = textures.begin(); iter != textures.end(); iter++)
{
@ -55,6 +65,7 @@ TextureManager::~TextureManager()
textures.clear();
}
void TextureManager::unloadTextures(const PresetOutputs::cshape_container &shapes)
{
/*