![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <glyph.hpp>
Public Member Functions | |
Glyph () noexcept=default | |
Glyph (const Glyph &glyph) noexcept=default | |
Glyph (Glyph &&glyph) noexcept=default | |
~Glyph ()=default | |
Glyph & | operator= (const Glyph &glyph) noexcept=default |
Glyph & | operator= (Glyph &&glyph) noexcept=default |
U32 | GetWidth () const noexcept |
U32 | GetHeight () const noexcept |
bool | operator< (const Glyph &rhs) const noexcept |
bool | operator< (wchar_t rhs) const noexcept |
Public Attributes | |
U32 | m_character |
RECT | m_sub_rectangle |
F32x2 | m_offset |
F32 | m_advance_x |
A struct of glyphs.
|
defaultnoexcept |
Constructs a glyph.
|
defaultnoexcept |
Constructs a glyph from the given glyph.
[in] | glyph | A reference to the glyph to copy. |
|
defaultnoexcept |
Constructs a glyph by moving the given glyph.
[in] | glyph | A reference to the glyph to move. |
|
default |
Destructs this glyph.
|
noexcept |
Returns the height of this glyph.
|
noexcept |
Returns the width of this glyph.
|
noexcept |
Checks whether this glyph's character is smaller than the given glyph's character.
[in] | rhs | A reference to the glyph to compare against. |
true
if the this glyph's character is smaller than the given glyph's character. false
otherwise.
|
noexcept |
Checks whether this glyph's character is smaller than the given character.
[in] | rhs | The character to compare against. |
true
if the this glyph's character is smaller than the given character. false
otherwise. Copies the given glyph to this glyph.
[in] | glyph | A reference to the glyph to copy. |
Moves the given glyph to this glyph.
[in] | glyph | A reference to the glyph to move. |
F32 mage::rendering::Glyph::m_advance_x |
The offset of this glyph to the right.
U32 mage::rendering::Glyph::m_character |
The character of this glyph.
F32x2 mage::rendering::Glyph::m_offset |
The offset of this glyph [from the left, from the top].
RECT mage::rendering::Glyph::m_sub_rectangle |
The subrectangle of this glyph.