![]() |
Rise
The Vieneo Province
|
#include <Font11.h>
Classes | |
| struct | Run |
| struct | Line |
| struct | Glyph |
Public Member Functions | |
| Font11 ()=default | |
| Font11 (const Font11 &)=delete | |
| Font11 & | operator= (const Font11 &)=delete |
| ~Font11 () | |
| HRESULT | Initialize (ID3D11Device *device, const LOGFONTW &description) |
| int | Draw (Sprite11 *sprite, const wchar_t *text, int count, RECT *rectangle, UINT format, uint32_t color) |
| int | DrawFixed (Sprite11 *sprite, const wchar_t *text, int count, RECT *rectangle, UINT format, uint32_t color) |
| int | DrawAnsi (Sprite11 *sprite, const char *text, int count, RECT *rectangle, UINT format, uint32_t color) |
| HDC | DC () const |
| bool | Metrics (TEXTMETRICW &result) const |
| void | Reset () |
| size_t | CachedBytes () const |
| size_t | CachedRuns () const |
| size_t | FixedAtlasBytes () const |
Private Member Functions | |
| bool | Words (const std::wstring &text, std::vector< Line > &words) |
| int | Layout (const std::wstring &text, LONG width, LONG height, UINT format, std::vector< Line > &lines, RECT &bounds) |
| HRESULT | Rasterize (Run &run) |
| bool | PrepareFixedAtlas () |
Private Attributes | |
| std::array< Glyph, 95 > | fixedGlyphs {} |
| std::bitset< 95 *95 > | fixedPairOverlap |
| Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > | fixedAtlas |
| LONG | fixedAdvance =0 |
| LONG | fixedHeight =0 |
| size_t | fixedBytes =0 |
| bool | fixedAttempted =false |
| Microsoft::WRL::ComPtr< ID3D11Device > | device |
| HDC | dc =nullptr |
| HFONT | font =nullptr |
| HGDIOBJ | previousFont =nullptr |
| std::list< Run > | runs |
| size_t | cachedBytes =0 |
Static Private Attributes | |
| static constexpr size_t | CacheLimit =16*1024*1024 |
|
default |
|
delete |
|
inline |
|
inline |
| int Rendering::Font11::Draw | ( | Sprite11 * | sprite, |
| const wchar_t * | text, | ||
| int | count, | ||
| RECT * | rectangle, | ||
| UINT | format, | ||
| uint32_t | color ) |
Definition at line 215 of file Font11.cpp.
| int Rendering::Font11::DrawFixed | ( | Sprite11 * | sprite, |
| const wchar_t * | text, | ||
| int | count, | ||
| RECT * | rectangle, | ||
| UINT | format, | ||
| uint32_t | color ) |
Definition at line 346 of file Font11.cpp.
| HRESULT Rendering::Font11::Initialize | ( | ID3D11Device * | device, |
| const LOGFONTW & | description ) |
Definition at line 22 of file Font11.cpp.
|
private |
Definition at line 55 of file Font11.cpp.
|
inline |
|
private |
Definition at line 254 of file Font11.cpp.
Definition at line 129 of file Font11.cpp.
| void Rendering::Font11::Reset | ( | ) |
|
private |
|
staticconstexprprivate |
|
private |
|
private |
|
private |
|
private |