X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.h;h=5566dccb8c9a111f55336b59d6aa7b68d08c0370;hb=8ed7051d1a80c7e8b198d96575338eee6a5e2485;hp=477eaca382fa55dbe6ab1925fb62677db1ed72c1;hpb=e37851b98dde5082ee92570354746f2f92e21940;p=libs%2Fgl.git 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: