struct mrpt::opengl::Texture::Options
Overview
Options while creating a texture from an image.
#include <mrpt/opengl/Texture.h> struct Options { // fields bool generateMipMaps = true; bool magnifyLinearFilter = true; bool enableTransparency = false; Wrapping wrappingModeS = Wrapping::Repeat; Wrapping wrappingModeT = Wrapping::Repeat; bool autoScale16to8bitConversion = true; // construction Options(); };
Fields
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)
Wrapping wrappingModeS = Wrapping::Repeat
How to repeat texture coordinate “S”.
Wrapping wrappingModeT = Wrapping::Repeat
How to repeat texture coordinate “T”.
bool autoScale16to8bitConversion = true
If enabled, 16-bit images will be automatically bright-adjusted so they are visible as 8-bit image textures.
Set to false to disable adjustment.