namespace GL {
Texture::Texture(unsigned t):
- TextureBackend(t),
- format(NO_PIXELFORMAT),
- storage_fmt(format),
- swizzle(NO_SWIZZLE),
- use_srgb_format(false),
- auto_gen_mipmap(false)
+ TextureBackend(t)
{ }
void Texture::set_format(PixelFormat fmt)
};
protected:
- PixelFormat format;
- PixelFormat storage_fmt;
- ComponentSwizzle 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);