Added really unfinished text decoration support
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user