get rid of glyphs
This commit is contained in:
parent
f2b992a39d
commit
2e2572a769
18
src/main.cpp
18
src/main.cpp
@ -11,7 +11,6 @@
|
|||||||
#include "math_graphics.h"
|
#include "math_graphics.h"
|
||||||
#include "load_entire_file.h"
|
#include "load_entire_file.h"
|
||||||
#include "stb_image.h"
|
#include "stb_image.h"
|
||||||
#include "glyphs.h"
|
|
||||||
#include "../assets/shader/basic_vertex_shader.h"
|
#include "../assets/shader/basic_vertex_shader.h"
|
||||||
#include "../assets/shader/basic_pixel_shader.h"
|
#include "../assets/shader/basic_pixel_shader.h"
|
||||||
|
|
||||||
@ -767,23 +766,6 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
load_map();
|
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_CHECKVERSION();
|
||||||
ImGui::CreateContext();
|
ImGui::CreateContext();
|
||||||
ImGuiIO &io = ImGui::GetIO();
|
ImGuiIO &io = ImGui::GetIO();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user