mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix label font cache
This commit is contained in:
parent
c8ba5b5dbb
commit
edc6810283
7 changed files with 75 additions and 36 deletions
|
|
@ -4,7 +4,9 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "typedefs.hpp"
|
||||
#include "FontMetics.hpp"
|
||||
|
||||
class Texture;
|
||||
class Batch2D;
|
||||
|
|
@ -90,4 +92,8 @@ public:
|
|||
) const;
|
||||
|
||||
const Texture* getPage(int page) const;
|
||||
|
||||
FontMetrics getMetrics() const {
|
||||
return {lineHeight, yoffset, glyphInterval};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue