![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <font_reader.hpp>
Public Member Functions | |
SpriteFontReader (ID3D11Device &device, SpriteFontOutput &output, const SpriteFontDescriptor &desc) | |
SpriteFontReader (const SpriteFontReader &reader)=delete | |
SpriteFontReader (SpriteFontReader &&reader) noexcept | |
~SpriteFontReader () | |
SpriteFontReader & | operator= (const SpriteFontReader &reader)=delete |
SpriteFontReader & | operator= (SpriteFontReader &&reader)=delete |
void | ReadFromFile (std::filesystem::path path) |
void | ReadFromMemory (gsl::span< const U8 > input) |
Private Member Functions | |
virtual void | ReadData () override |
bool | IsHeaderValid () |
void | ReadTexture () |
![]() | |
BigEndianBinaryReader & | operator= (const BigEndianBinaryReader &reader)=delete |
BigEndianBinaryReader & | operator= (BigEndianBinaryReader &&reader) noexcept |
void | ReadFromFile (std::filesystem::path path) |
void | ReadFromMemory (gsl::span< const U8 > input) |
BigEndianBinaryReader () | |
BigEndianBinaryReader (const BigEndianBinaryReader &reader)=delete | |
BigEndianBinaryReader (BigEndianBinaryReader &&reader) noexcept | |
~BigEndianBinaryReader () | |
const std::filesystem::path & | GetPath () const noexcept |
bool | ContainsChars () const noexcept |
template<typename T > | |
const T | Read () |
template<typename T > | |
const T * | ReadArray (std::size_t count) |
Private Attributes | |
ID3D11Device & | m_device |
SpriteFontOutput & | m_output |
const SpriteFontDescriptor & | m_desc |
A class of readers for reading FONT files.
|
explicit |
Constructs a FONT reader.
[in,out] | device | A reference to the device. |
[in,out] | output | A reference to the sprite font output. |
[in] | desc | A reference to the sprite font descriptor. |
|
delete |
Constructs a FONT reader from the given FONT reader.
[in] | reader | A reference to the FONT reader to copy. |
|
defaultnoexcept |
Constructs a FONT reader by moving the given FONT reader.
[in] | reader | A reference to the FONT reader to move. |
|
default |
Destructs this FONT reader.
|
private |
Checks whether the header of the file is valid.
true
if the header of the file is valid. false
otherwise. Exception | Failed to read to the given file. |
|
delete |
Copies the given FONT reader to this FONT reader.
[in] | reader | A reference to a FONT reader to copy. |
|
delete |
Moves the given FONT reader to this FONT reader.
[in] | reader | A reference to a FONT reader to move. |
|
overrideprivatevirtual |
Starts reading.
Exception | Failed to read from the given file. |
Implements mage::BigEndianBinaryReader.
void mage::BigEndianBinaryReader::ReadFromFile |
Reads from the file associated with the given path.
[in] | path | The path. |
Exception | Failed to read from the file. |
void mage::BigEndianBinaryReader::ReadFromMemory |
Reads the input string.
[in] | input | The input byte string. |
Exception | Failed to read from the given input string. |
|
private |
|
private |
A reference to the sprite font descriptor of this FONT reader.
|
private |
A reference to the rendering device of this FONT reader.
|
private |
A reference to the sprite font output of this FONT reader.