Draw sprite to GUI

This commit is contained in:
2022-12-24 19:18:06 +00:00
parent 06b8bba27f
commit 147cf1b05d
12 changed files with 99 additions and 61 deletions

View File

@@ -183,11 +183,9 @@ void renderText(const char *text, mfloat_t pos[2], float scale, mfloat_t color[3
shader_use(shader);
shader_setvec3(shader, "textColor", color);
cpVect campos = cam_pos();
mfloat_t cursor[2] = { 0.f };
cursor[0] = pos[0] + campos.x;
cursor[1] = pos[1] + campos.y;
cursor[0] = pos[0];
cursor[1] = pos[1];
glActiveTexture(GL_TEXTURE0);
glBindVertexArray(VAO);