add FontStyle 'bold' and 'italic' properties to 2D text

This commit is contained in:
MihailRis
2024-12-04 17:08:04 +03:00
parent 28f49ac948
commit b15725913e
4 changed files with 76 additions and 25 deletions
+7
View File
@@ -45,6 +45,7 @@ public:
void setRegion(UVRegion region);
void sprite(float x, float y, float w, float h, const UVRegion& region, glm::vec4 tint);
void sprite(float x, float y, float w, float h, int atlasRes, int index, glm::vec4 tint);
void sprite(float x, float y, float w, float h, float skew, int atlasRes, int index, glm::vec4 tint);
void point(float x, float y, float r, float g, float b, float a);
inline void setColor(glm::vec4 color) {
@@ -79,6 +80,12 @@ public:
float r, float g, float b, float a
);
void parallelogram(
float x, float y, float w, float h, float skew,
float u, float v, float tx, float ty,
float r, float g, float b, float a
);
void rect(
float x, float y, float w, float h,
float r0, float g0, float b0,