get rid of glyphs

This commit is contained in:
Sven Balzer 2025-02-25 13:28:33 +01:00
parent f2b992a39d
commit 2e2572a769

View File

@ -11,7 +11,6 @@
#include "math_graphics.h"
#include "load_entire_file.h"
#include "stb_image.h"
#include "glyphs.h"
#include "../assets/shader/basic_vertex_shader.h"
#include "../assets/shader/basic_pixel_shader.h"
@ -767,23 +766,6 @@ int main(int argc, char **argv) {
load_map();
String file = load_entire_file("../assets/fonts/glyph_coords_lexend.co");
if (!file.length) {
log_error("Loading glyph_coords_lexend has failed.");
return 1;
}
int glyphs_num = file.length / sizeof(Glyph_Coord);
if (glyphs_num != '~' - ' ' + 1) {
log_error("Wrong number of glyphs.");
return 1;
}
Glyph_Coord* glyph_coords = (Glyph_Coord*) file.data;
V2 quad_pos = { 0.101f, 0.101f };
V2 quad_size = { 0.1f, 0.1f };
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO &io = ImGui::GetIO();