Started a simple font text class to do font rendering.

This commit is contained in:
Zed A. Shaw 2026-09-12 16:42:11 -04:00
parent 1830faf4c9
commit b244c903a6
137 changed files with 16135 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#pragma once
#include "shader.hpp"
struct Screen {
Shader shader;
unsigned int target_VAO = 0;
unsigned int target_VBO = 0;
float vertices[24] = {
// vertex attributes for a quad that fills the entire screen in Normalized Device Coordinates.
// positions // texCoords
-1.0f, 1.0f, 0.0f, 1.0f,
-1.0f, -1.0f, 0.0f, 0.0f,
1.0f, -1.0f, 1.0f, 0.0f,
-1.0f, 1.0f, 0.0f, 1.0f,
1.0f, -1.0f, 1.0f, 0.0f,
1.0f, 1.0f, 1.0f, 1.0f
};
void init();
};