#define MSP_GL_TEXTURE2D_H_
#include <string>
+#include <msp/datafile/loader.h>
#include "pixelformat.h"
#include "texture.h"
namespace Msp {
namespace GL {
+class Image;
+
/**
Two-dimensional texture class. This is the most common type of texture.
*/
class Texture2D: public Texture
{
+public:
+ class Loader: public Texture::Loader
+ {
+ public:
+ Loader(Texture2D &);
+ private:
+ void image_data(const std::string &);
+ };
+
private:
PixelFormat ifmt;
sizei width;
sizei get_width() const { return width; }
sizei get_height() const { return height; }
+
+private:
+ void image(const Image &);
};
} // namespace GL