X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture.h;fp=source%2Fcore%2Ftexture.h;h=eb5275c6e4fd71e60b6d0af04d179a229a94a56a;hp=24d74964e04dd35c6e8f6092d41b0b854b713c98;hb=eddb5cfd959eaa202ee6f95cd2049349ec920829;hpb=d0df3ba82b187705331e2cc55d515c2d44e7f466 diff --git a/source/core/texture.h b/source/core/texture.h index 24d74964..eb5275c6 100644 --- a/source/core/texture.h +++ b/source/core/texture.h @@ -73,12 +73,14 @@ protected: PixelFormat format = NO_PIXELFORMAT; PixelFormat storage_fmt = NO_PIXELFORMAT; ComponentSwizzle swizzle = NO_SWIZZLE; + unsigned n_levels = 0; bool use_srgb_format = false; bool auto_gen_mipmap = false; Texture(unsigned); void set_format(PixelFormat); + static unsigned count_levels(unsigned); public: PixelFormat get_format() const { return format; }