![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <FontTexture.hpp>


Public Member Functions | |
| CU_DeclareMap (char32_t, castor::Position, GlyphPosition) | |
| C3D_API | FontTexture (Engine &engine, castor::FontResPtr font) |
| Constructor. | |
| C3D_API void | initialise (RenderDevice const &device, QueueData const &queueData) |
| Initialises the texture. | |
| C3D_API void | cleanup (RenderDevice const &device) |
| Flushes the teture. | |
| C3D_API void | upload (UploadData &uploader) |
| Uploads the glyphs info buffer. | |
| C3D_API castor::UInt32Array | convert (castor::U32String const &text) const |
| Converts text to glyph index array. | |
| C3D_API castor::String const & | getFontName () const |
| Retrieves the font name. | |
| C3D_API castor::Position const & | getGlyphPosition (char32_t glyphChar) const |
| Retrieves the wanted glyph position. | |
| castor::FontRPtr | getFont () const |
| FontUbo const & | getFontUbo () const |
| TextureLayoutRPtr | getTexture () const |
| SamplerObs | getSampler () const |
| void | setId (uint32_t v) |
Public Member Functions inherited from castor3d::DoubleBufferedResourceT< ResourceT, PointerT > | |
| void | update (bool clean) |
| Updates the resource. | |
| Resource const & | getResource () const |
| Resource const & | getFront () const |
| Resource const & | getBack () const |
Public Member Functions inherited from castor::OwnedBy< Engine > | |
| Engine * | getOwner () const noexcept |
| void | setOwner (Engine &owner) noexcept |
| C3D_API castor3d::FontTexture::FontTexture | ( | Engine & | engine, |
| castor::FontResPtr | font ) |
Constructor.
| [in] | engine | The engine. |
| [in] | font | The font. |
| C3D_API void castor3d::FontTexture::cleanup | ( | RenderDevice const & | device | ) |
Flushes the teture.
| C3D_API castor::UInt32Array castor3d::FontTexture::convert | ( | castor::U32String const & | text | ) | const |
Converts text to glyph index array.
| castor3d::FontTexture::CU_DeclareMap | ( | char32_t | , |
| castor::Position | , | ||
| GlyphPosition | ) |
|
inline |
name Getters.
| C3D_API castor::String const & castor3d::FontTexture::getFontName | ( | ) | const |
Retrieves the font name.
|
inline |
| C3D_API castor::Position const & castor3d::FontTexture::getGlyphPosition | ( | char32_t | glyphChar | ) | const |
Retrieves the wanted glyph position.
| [in] | glyphChar | The glyph index. |
|
inline |
|
inline |
References castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::getResource(), and castor3d::DoubleBufferedResourceT< ResourceT, PointerT >::Resource::resource.

| C3D_API void castor3d::FontTexture::initialise | ( | RenderDevice const & | device, |
| QueueData const & | queueData ) |
Initialises the texture.
| [in] | device | The GPU device. |
| [in] | queueData | The queue receiving the GPU commands. |
|
inline |
name Mutators.
| C3D_API void castor3d::FontTexture::upload | ( | UploadData & | uploader | ) |
Uploads the glyphs info buffer.