X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.h;h=4cd5481e2e18f570377c3f13d86b8b4dbf984cb8;hb=a480d4cc323db7cc77388f5af0094dd593dc66e9;hp=5566dccb8c9a111f55336b59d6aa7b68d08c0370;hpb=9d696772b2194b67d8e3e4da11169900eab58c0d;p=libs%2Fgl.git diff --git a/source/texture.h b/source/texture.h index 5566dccb..4cd5481e 100644 --- a/source/texture.h +++ b/source/texture.h @@ -2,7 +2,9 @@ #define MSP_GL_TEXTURE_H_ #include +#include "datatype.h" #include "gl.h" +#include "pixelformat.h" #include "predicate.h" #include "resource.h" @@ -122,6 +124,8 @@ public: ~Texture(); protected: + static DataType get_alloc_type(PixelFormat); + void update_parameter(int) const; public: void set_min_filter(TextureFilter); @@ -144,6 +148,10 @@ public: 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 @@ -162,6 +170,8 @@ public: static const Texture *current(unsigned = 0); static void unbind() { unbind_from(0); } static void unbind_from(unsigned); + + virtual UInt64 get_data_size() const { return 0; } }; } // namespace GL