X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.h;h=1b80e950f08d93e54debd3bdc8b14ae4c7f458ac;hb=8f373af3e375799dd739fe932bc697e8595756b4;hp=23f3bb2539ab5f9e9c544ccb00b73cc601e48f35;hpb=e01371d38e290b4c526146fd5d1388bba8201233;p=libs%2Fgl.git diff --git a/source/texture.h b/source/texture.h index 23f3bb25..1b80e950 100644 --- a/source/texture.h +++ b/source/texture.h @@ -109,6 +109,7 @@ protected: unsigned id; GLenum target; + PixelFormat ifmt; TextureFilter min_filter; TextureFilter mag_filter; float max_anisotropy; @@ -128,8 +129,11 @@ public: protected: static DataType get_alloc_type(PixelFormat); + void set_internal_format(PixelFormat); void update_parameter(int) const; + void set_parameter_i(GLenum, int) const; + void set_parameter_f(GLenum, float) const; public: void set_min_filter(TextureFilter); void set_mag_filter(TextureFilter);