Added text rendering to show fps

This commit is contained in:
2023-10-15 00:20:31 -04:00
parent f7bf70f4c5
commit 961dfa0ab7
7 changed files with 211 additions and 8 deletions

13
text.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef TEXT_H
#define TEXT_H
#include <stdio.h>
#include <string>
#include <ft2build.h>
#include FT_FREETYPE_H
int init_text(int *shader);
void render_text(int shader, std::string text, float x, float y, float scale, glm::vec3 color);
#endif