X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture.h;h=24d74964e04dd35c6e8f6092d41b0b854b713c98;hb=d0df3ba82b187705331e2cc55d515c2d44e7f466;hp=639b15f5b711c820e8ff448f6d634078e2040ded;hpb=b274dc87db4422498e72823649358114dfca0096;p=libs%2Fgl.git diff --git a/source/core/texture.h b/source/core/texture.h index 639b15f5..24d74964 100644 --- a/source/core/texture.h +++ b/source/core/texture.h @@ -70,19 +70,11 @@ public: }; protected: - enum FormatSwizzle - { - NO_SWIZZLE, - R_TO_LUMINANCE, - RG_TO_LUMINANCE_ALPHA, - RGB_TO_BGR - }; - - PixelFormat format; - PixelFormat storage_fmt; - FormatSwizzle swizzle; - bool use_srgb_format; - bool auto_gen_mipmap; + PixelFormat format = NO_PIXELFORMAT; + PixelFormat storage_fmt = NO_PIXELFORMAT; + ComponentSwizzle swizzle = NO_SWIZZLE; + bool use_srgb_format = false; + bool auto_gen_mipmap = false; Texture(unsigned);