X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture.h;h=47b2f2696efd35bd07b0c8c52811cc46359d2d63;hb=24b24e2203c776aacd9744bb947f5cf47b03d328;hp=6d474b8864ec392375041e47821ca29016d66006;hpb=b09f265880a3a932441091b0f3822b06c112c595;p=libs%2Fgl.git diff --git a/source/core/texture.h b/source/core/texture.h index 6d474b88..47b2f269 100644 --- a/source/core/texture.h +++ b/source/core/texture.h @@ -3,7 +3,6 @@ #include #include -#include "gl.h" #include "pixelformat.h" #include "resource.h" @@ -58,7 +57,7 @@ protected: }; unsigned id; - GLenum target; + unsigned target; PixelFormat format; PixelFormat storage_fmt; FormatSwizzle swizzle; @@ -69,7 +68,7 @@ protected: static const int swizzle_orders[]; static Texture *scratch_binding; - Texture(GLenum, ResourceManager * = 0); + Texture(unsigned, ResourceManager * = 0); Texture(const Texture &); Texture &operator=(const Texture &); public: @@ -79,7 +78,7 @@ protected: void generate_id(); void set_format(PixelFormat); void apply_swizzle(); - void set_parameter_i(GLenum, int) const; + void set_parameter_i(unsigned, int) const; public: PixelFormat get_format() const { return format; }