This commit is contained in:
2022-08-12 19:03:56 +00:00
parent 406b2b491f
commit b0d2757f70
29 changed files with 519 additions and 442 deletions

View File

@@ -20,11 +20,6 @@ unsigned char temp_bitmap[512 * 512];
struct sFont *font;
static struct mShader *shader;
/*
mfont = MakeFont("notosans.ttf", 300);
text_settype(mfont);
*/
void font_init(struct mShader *textshader) {
shader = textshader;
@@ -42,6 +37,10 @@ void font_init(struct mShader *textshader) {
glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 4 * sizeof(float), 0);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindVertexArray(0);
// Default font
font = MakeFont("notosans.ttf", 300);
}
void font_frame(struct mSDLWindow *w) {