mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
add FontStyle 'bold' and 'italic' properties to 2D text
This commit is contained in:
parent
28f49ac948
commit
b15725913e
4 changed files with 76 additions and 25 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue