Clementine-audio-player-Mac.../3rdparty/libprojectm/Renderer/UserTexture.cpp

51 lines
835 B
C++
Raw Normal View History

2010-06-06 23:43:45 +02:00
/*
* UserTexture.cpp
*
* Created on: Jul 16, 2008
* Author: pete
*/
#include "UserTexture.hpp"
UserTexture::UserTexture(std::string qualifiedName): qname(qualifiedName)
{
if (qualifiedName.substr(0,3) == "fc_")
{
name = qualifiedName.substr(3);
bilinear = true;
wrap = false;
}
else if (qualifiedName.substr(0,3) == "fw_")
{
name = qualifiedName.substr(3);
bilinear = true;
wrap = true;
}
else if (qualifiedName.substr(0,3) == "pc_")
{
name = qualifiedName.substr(3);
bilinear = false;
wrap = false;
}
else if (qualifiedName.substr(0,3) == "pw_")
{
name = qualifiedName.substr(3);
bilinear = false;
wrap = true;
}
else
{
name = qualifiedName;
bilinear = true;
wrap = true;
}
texsizeDefined = false;
}
UserTexture::~UserTexture()
{
// TODO Auto-generated destructor stub
}