mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-24 08:45:47 +00:00
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:
@ -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)
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user