add debug GUI render mode (F8)

This commit is contained in:
MihailRis
2025-03-11 00:39:59 +03:00
parent a74a4fcf53
commit 5af6b91b22
18 changed files with 93 additions and 29 deletions
+5 -1
View File
@@ -48,10 +48,14 @@ public:
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);
void setColor(glm::vec4 color) {
void setColor(const glm::vec4& color) {
this->color = color;
}
void setColor(int r, int g, int b, int a=255) {
this->color = glm::vec4(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f);
}
void resetColor() {
this->color = glm::vec4(1.0f);
}