Background properly renders

This commit is contained in:
2022-06-30 21:38:51 +00:00
parent edf16b4267
commit e96d7fb701
2 changed files with 13 additions and 72 deletions

View File

@@ -111,10 +111,10 @@ void sdrawCharacter(struct Character c, mfloat_t cursor[2], float scale, struct
float h = c.Size[1] * scale;
float verts[4 * 4] = {
xpos, ypos + h, 0.f, 0.f,
xpos, ypos, 0.f, 1.f,
xpos + w, ypos + h, 1.f, 0.f,
xpos + w, ypos, 1.f, 1.f
xpos, ypos, 0.f, 0.f,
xpos+w, ypos, 1.f, 0.f,
xpos, ypos + h, 0.f, 1.f,
xpos + w, ypos+h, 1.f, 1.f
};
@@ -226,7 +226,9 @@ void renderText(const char *text, mfloat_t pos[2], float scale, mfloat_t color[3
}
/*
glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindVertexArray(0);
glBindTexture(GL_TEXTURE_2D, 0);
*/
}