95 pt.put(entryName +
".Sampler.minLOD", sampler.
_lod.
_min);
96 pt.put(entryName +
".Sampler.maxLOD", sampler.
_lod.
_max);
97 pt.put(entryName +
".Sampler.biasLOD", sampler.
_lod.
_bias);
116 sampler.
_lod.
_min = pt.get(entryName +
".Sampler.minLOD", -1000.f);
117 sampler.
_lod.
_max = pt.get(entryName +
".Sampler.maxLOD", 1000.f);
118 sampler.
_lod.
_bias = pt.get(entryName +
".Sampler.biasLOD", 0.f);
122 pt.get(entryName +
".Sampler.customBorderColour.<xmlattr>.r",
U8_ZERO),
123 pt.get(entryName +
".Sampler.customBorderColour.<xmlattr>.g",
U8_ZERO),
124 pt.get(entryName +
".Sampler.customBorderColour.<xmlattr>.b",
U8_ZERO),
125 pt.get(entryName +
".Sampler.customBorderColour.<xmlattr>.a",
U8_ONE)
static constexpr const char * textureWrap[]
static constexpr const char * textureMipSampling[]
static constexpr const char * textureFilter[]
static constexpr const char * textureBorderColour[]
static TextureBorderColour StringToTextureBorderColour(const string &colour)
const char * TextureFilterToString(TextureFilter filter) noexcept
const char * ComparisonFunctionToString(ComparisonFunction func) noexcept
ComparisonFunction StringToComparisonFunction(const char *name) noexcept
const char * WrapModeToString(TextureWrap wrapMode) noexcept
static const char * TextureBorderColourToString(const TextureBorderColour colour) noexcept
TextureMipSampling StringToTextureMipSampling(const string &sampling)
const char * TextureMipSamplingToString(TextureMipSampling sampling) noexcept
TextureWrap StringToWrapMode(const string &wrapMode)
TextureFilter StringToTextureFilter(const string &filter)
SamplerDescriptor loadFromXML(const std::string &entryName, const boost::property_tree::ptree &pt)
void saveToXML(const SamplerDescriptor &sampler, const std::string &entryName, boost::property_tree::ptree &pt)
Handle console commands that start with a forward slash.
constexpr U32 to_U32(const T value)
constexpr U8 to_U8(const T value)
constexpr auto to_base(const Type value) -> Type
TextureFilter _minFilter
Texture filtering mode.
TextureWrap _wrapU
Texture wrap mode (Or S-R-T)
U8 _anisotropyLevel
The value must be in the range [0...255] and is automatically clamped by the max HW supported level.
ComparisonFunction _depthCompareFunc
Used for depth comparison (COUNT = disabled)
TextureBorderColour _borderColour
Used with CLAMP_TO_BORDER as the background colour outside of the texture border.
TextureMipSampling _mipSampling
UColour4 _customBorderColour
Used with custom border colours.
F32 _min
OpenGL eg: used by TEXTURE_MIN_LOD and TEXTURE_MAX_LOD.
F32 _bias
OpenGL eg: used by TEXTURE_LOD_BIAS.