Removed old TrueType
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
#include "scene/components/ui/UIComponentRenderable.hpp"
|
||||
#include "display/mesh/QuadMesh.hpp"
|
||||
#include "asset/assets/NewTrueTypeAsset.hpp"
|
||||
#include "asset/assets/TrueTypeAsset.hpp"
|
||||
#include "util/Xml.hpp"
|
||||
|
||||
#define UI_LABEL_MAX_WIDTH_NONE -1
|
||||
@ -16,7 +16,7 @@ namespace Dawn {
|
||||
struct Color color = COLOR_WHITE;
|
||||
flag_t style = 0;
|
||||
uint32_t size = 16;
|
||||
NewTrueTypeAsset *font = nullptr;
|
||||
TrueTypeAsset *font = nullptr;
|
||||
};
|
||||
|
||||
struct UILabelText {
|
||||
@ -25,7 +25,7 @@ namespace Dawn {
|
||||
int32_t lineStart = 0;
|
||||
int32_t lineCount = 0;
|
||||
usagelockid_t lockId = -1;
|
||||
struct NewTrueTypeFaceTexture *texture = nullptr;
|
||||
struct TrueTypeFaceTexture *texture = nullptr;
|
||||
};
|
||||
|
||||
struct UILabelLine {
|
||||
@ -38,13 +38,13 @@ namespace Dawn {
|
||||
private:
|
||||
Mesh mesh;
|
||||
FontShaderBuffer shaderBuffer;
|
||||
std::map<NewTrueTypeFaceTexture*, int32_t> textureMap;
|
||||
std::map<TrueTypeFaceTexture*, int32_t> textureMap;
|
||||
|
||||
public:
|
||||
int32_t quadStart = 0;
|
||||
int32_t quadCount = -1;
|
||||
int32_t quadCountTotal = -1;
|
||||
|
||||
|
||||
std::vector<struct UILabelText> texts;
|
||||
std::vector<struct UILabelText> textsBuffered;
|
||||
std::vector<struct UILabelLine> lines;
|
||||
|
Reference in New Issue
Block a user