wfobj-view/TextureCache/TextureCache.h

21 lines
374 B
C++

#include <GL/gl.h>
#include <map>
#include <string>
class TextureCache
{
public:
GLuint load(const std::string & filename);
private:
/* methods */
GLuint loadTexture(const char * filename,
bool mipmaps = false,
int mode = GL_DECAL,
int quality = 1);
/* data */
std::map< std::string, GLuint > m_cache;
};