added node alignment and text color
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
enum class kFont : uint16_t
|
||||
{
|
||||
Arial_11 = const_hash("arial-11"),
|
||||
Arial_30 = const_hash("arial-30"),
|
||||
};
|
||||
|
||||
class Font
|
||||
@@ -18,7 +19,7 @@ public:
|
||||
Texture2D font_tex;
|
||||
std::vector<stbtt_bakedchar> chars;
|
||||
|
||||
bool load(const char* ttf);
|
||||
bool load(const char* ttf, int sz);
|
||||
};
|
||||
|
||||
class FontManager
|
||||
@@ -27,7 +28,7 @@ public:
|
||||
static std::map<kFont, Font> m_fonts;
|
||||
static Sampler m_sampler;
|
||||
static void init();
|
||||
static bool load(kFont id, const char* ttf);
|
||||
static bool load(kFont id, const char* ttf, int sz);
|
||||
static const Font& get(kFont id);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user