Added really unfinished text decoration support

This commit is contained in:
2023-07-15 23:42:24 -07:00
parent 370ebaf992
commit 0a103c9283
4 changed files with 85 additions and 7 deletions

View File

@ -15,6 +15,7 @@ namespace Dawn {
struct UILabelStyle {
struct Color color = COLOR_WHITE;
flag_t style = 0;
flag_t decorations = 0;
uint32_t size = 16;
TrueTypeAsset *font = nullptr;
};
@ -45,9 +46,11 @@ namespace Dawn {
class UILabel : public UIComponentRenderable {
private:
Mesh mesh;
Mesh meshDecorations;
FontShaderBuffer shaderBuffer;
std::map<TrueTypeFaceTexture*, int32_t> textureMap;
bool_t ignoreAlignmentUpdate = false;
bool_t hasDecorations = false;
public:
int32_t quadStart = 0;