Struct Texture::Options
Defined in File Texture.h
Nested Relationships
This struct is a nested type of Class Texture.
Struct Documentation
-
struct Options
Options while creating a texture from an image.
Public Functions
-
Options() = default
Public Members
-
bool generateMipMaps = true
-
bool magnifyLinearFilter = true
If set (true), interpolation will happen when getting closer to the texture (magnify). Otherwise (false), it will be not interpolated, so each pixel will be rendered as a square box with constant color (e.g. suitable for gridmaps)
-
bool enableTransparency = false
-
bool isColorData = true
If true (default), the texture is treated as sRGB color and auto-decoded to linear space by the GPU. Set to false for data textures like normal maps.
-
Options() = default