X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture.h;h=30c6496a5658525e00a6ac59374996c25f08d7e3;hb=2ba5af95fb7341b0e6b212e28d03208c6747aae5;hp=6c0fbf2574b6cb6f8a897e62f0977b8db9486e4f;hpb=2edfcf08707c3627b6b27289ba607a7183d63b01;p=libs%2Fgl.git diff --git a/source/texture.h b/source/texture.h index 6c0fbf25..30c6496a 100644 --- a/source/texture.h +++ b/source/texture.h @@ -70,7 +70,8 @@ protected: unsigned id; GLenum target; - PixelFormat ifmt; + PixelFormat format; + PixelFormat storage_fmt; FormatSwizzle swizzle; bool auto_gen_mipmap; Sampler default_sampler; @@ -84,8 +85,7 @@ public: ~Texture(); protected: - void set_internal_format(PixelFormat); - PixelComponents get_upload_components(PixelComponents) const; + void set_format(PixelFormat); void apply_swizzle(); void set_parameter_i(GLenum, int) const;