|
coastline 0.0.4
|
The texture of the 256 glyphs of the font and of the mouse pointer. More...
#include <textfont.h>
Public Member Functions | |
| void | Draw (SceneRenderer &renderer, const TextGrid &grid, std::optional< std::array< int, 2 > > pointer) const |
| Draw every cell of the grid and its text cursor, and the pointer last over them. | |
Static Public Member Functions | |
| static std::unique_ptr< TextFont > | Create (SceneRenderer &renderer) |
| Upload the glyphs of unscii-16 and the pointer. | |
The texture of the 256 glyphs of the font and of the mouse pointer.
|
static |
Upload the glyphs of unscii-16 and the pointer.
| renderer | The renderer that draws the grid. |
| void coastline::TextFont::Draw | ( | SceneRenderer & | renderer, |
| const TextGrid & | grid, | ||
| std::optional< std::array< int, 2 > > | pointer ) const |
Draw every cell of the grid and its text cursor, and the pointer last over them.
| renderer | The renderer of the frame, between Begin() and End(). |
| grid | The grid. |
| pointer | The tip of the pointer in pixels of the grid, or none to draw no pointer. |