#define MSP_GL_TEXTURE_H_
#include <msp/datafile/objectloader.h>
+#include "datatype.h"
#include "gl.h"
+#include "pixelformat.h"
#include "predicate.h"
#include "resource.h"
~Texture();
protected:
+ static DataType get_alloc_type(PixelFormat);
+
void update_parameter(int) const;
public:
void set_min_filter(TextureFilter);
when a texture image is uploaded. */
void set_generate_mipmap(bool);
+protected:
+ void auto_generate_mipmap();
+
+public:
/** Sets depth texture comparison. Has no effect on other formats. When
comparison is enabled, the third component of the texture coordinate is
compared against the texel value, and the result is returned as the texture