![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <sprite_font_descriptor.hpp>
Public Member Functions | |
constexpr | SpriteFontDescriptor (bool force_srgb=false) noexcept |
constexpr | SpriteFontDescriptor (const SpriteFontDescriptor &desc) noexcept=default |
constexpr | SpriteFontDescriptor (SpriteFontDescriptor &&desc) noexcept=default |
~SpriteFontDescriptor ()=default | |
SpriteFontDescriptor & | operator= (const SpriteFontDescriptor &desc) noexcept=default |
SpriteFontDescriptor & | operator= (SpriteFontDescriptor &&desc) noexcept=default |
constexpr bool | ForceSRGB () const noexcept |
Private Attributes | |
bool | m_force_srgb |
A class of sprite font descriptors.
|
explicitnoexcept |
Constructs a sprite font descriptor.
[in] | force_srgb | A flag indicating whether working around gamma issues is needed. |
|
defaultnoexcept |
Constructs a sprite font descriptor from the given sprite font descriptor.
[in] | desc | A reference to the sprite font descriptor to copy. |
|
defaultnoexcept |
Constructs a sprite font descriptor by moving the given sprite font descriptor.
[in] | desc | A reference to the sprite font descriptor to move. |
|
default |
Destructs this sprite font descriptor.
|
noexcept |
Checks whether working around gamma issues is needed according to this sprite font descriptor.
true
if working around gamma issues is needed. false
if not.
|
defaultnoexcept |
Copies the given sprite font descriptor to this sprite font descriptor.
[in] | desc | A reference to the sprite font descriptor to copy. |
|
defaultnoexcept |
Moves the given sprite font descriptor to this sprite font descriptor.
[in] | desc | A reference to the sprite font descriptor to move. |
|
private |
A flag indicating whether working around gamma issues is needed for this sprite font descriptor.
This is helpful for color fonts that are in the sRGB or similar color space but are not encoded explicitly as a SRGB format.