mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 19:42:10 +00:00
CGUITTFont optimizations (#11136)
This commit is contained in:
parent
34888a914e
commit
024d47e0d3
4 changed files with 27 additions and 23 deletions
|
@ -199,6 +199,7 @@ namespace gui
|
|||
|
||||
core::array<core::vector2di> render_positions;
|
||||
core::array<core::recti> render_source_rects;
|
||||
core::array<video::SColor> render_colors;
|
||||
|
||||
private:
|
||||
core::array<const SGUITTGlyph*> glyph_to_be_paged;
|
||||
|
@ -270,7 +271,7 @@ namespace gui
|
|||
const core::rect<s32>* clip=0);
|
||||
|
||||
void draw(const EnrichedString& text, const core::rect<s32>& position,
|
||||
video::SColor color, bool hcenter=false, bool vcenter=false,
|
||||
bool hcenter=false, bool vcenter=false,
|
||||
const core::rect<s32>* clip=0);
|
||||
|
||||
//! Returns the dimension of a character produced by this font.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue