X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture.h;h=5566dccb8c9a111f55336b59d6aa7b68d08c0370;hp=477eaca382fa55dbe6ab1925fb62677db1ed72c1;hb=9d696772b2194b67d8e3e4da11169900eab58c0d;hpb=7db48f2836ec42c6e2dbeff336634a03bc6d7a62 diff --git a/source/texture.h b/source/texture.h index 477eaca3..5566dccb 100644 --- a/source/texture.h +++ b/source/texture.h @@ -4,12 +4,11 @@ #include #include "gl.h" #include "predicate.h" +#include "resource.h" namespace Msp { namespace GL { -class Resources; - enum TextureFilter { /// No filtering @@ -65,7 +64,7 @@ texture to be usable. If texture coordinates fall outside of the principal range of the texture, wrapping is applied. The default for all directions is REPEAT. */ -class Texture +class Texture: public Resource { protected: class Loader: public DataFile::CollectionObjectLoader @@ -116,7 +115,7 @@ protected: Predicate cmp_func; mutable int dirty_params; - Texture(GLenum); + Texture(GLenum, ResourceManager * = 0); Texture(const Texture &); Texture &operator=(const Texture &); public: