diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-14 15:32:16 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-14 15:32:16 -0400 |
| commit | 8296fa3a8fa773adbf7544910fd12f84c278cfc3 (patch) | |
| tree | 16417661e1efd266438171abc932cde357121ebd /main.c | |
| parent | 458f9d0b5f1b83d3f2e11cead790cdf6ac867e11 (diff) | |
text rendering which doesn't work
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,7 @@ #include <poll.h> #include <unistd.h> +#include "array.h" #include "state.h" #include "wayland.h" #include "graphics.h" @@ -13,15 +14,19 @@ void poll_events(client_state* state); int main() { client_state state = {0}; state.running = true; + state.input_buffer = array_new(char, 0); + // find font char* font = get_font("Monospace"); if (!freetype_init(&state, font)) { fprintf(stderr, "Failed to Initalize FreeType\n"); } free(font); + // create font atlas atlas_init(&state); + // start wayland state.display = wl_display_connect(NULL); if (!state.display) { fprintf(stderr, "Failed to Connect to wayland display\n"); @@ -43,6 +48,7 @@ int main() { return 1; } + // create font altas textures atlas_create_texture(&state); // event loop |
