26 lines
343 B
C++
26 lines
343 B
C++
|
|
#ifndef TEXTURECACHE_H
|
|
#define TEXTURECACHE_H TEXTURECACHE_H
|
|
|
|
#include <SDL.h>
|
|
#ifdef GL_INCLUDE_FILE
|
|
#include GL_INCLUDE_FILE
|
|
#else
|
|
#include <GL/gl.h>
|
|
#endif
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
class TextureCache
|
|
{
|
|
public:
|
|
GLuint load(const char *fname);
|
|
|
|
protected:
|
|
/* data */
|
|
std::map< std::string, GLuint > m_cache;
|
|
};
|
|
|
|
#endif
|