diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-11 12:12:49 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-11 12:12:49 -0400 |
| commit | c5dab928775cb86cc11b7e3a8493c3432e2df201 (patch) | |
| tree | 9f2322e85dc8d410b7f1a9951c2213315e0d8901 /main.c | |
| parent | 502ffec5198dd0dbd87f8d88ff07f95f241a24f8 (diff) | |
changes
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -14,15 +14,23 @@ int main() { return 0; } - setup_registry(&state); - setup_seat(&state); - setup_surface(&state); + // set up globals + setup_registry_and_globals(&state); + wl_display_roundtrip(state.display); + // create non global objects + create_surface(&state); + + // roundtrip to recieve the rest of the events + wl_display_roundtrip(state.display); + + // set up graphics if (!init_gl(&state)) { fprintf(stderr, "Failed to Initalize EGL/OpenGL\n"); return 1; } + // event loop while (state.running) { wl_display_dispatch_pending(state.display); render_frame(&state); |
