diff options
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| m--------- | external/RodeoEngine | 0 | ||||
| -rwxr-xr-x | run | 1 | ||||
| -rw-r--r-- | src/main.c | 24 |
4 files changed, 14 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c8e18d..c885377 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.25.1) +set(CMAKE_BUILD_TYPE Debug) + project(space_squad) file(GLOB SOURCES diff --git a/external/RodeoEngine b/external/RodeoEngine -Subproject b4bc89485ab18ccdc2e381e3e3f2c3bb5e346e1 +Subproject b172c2a6b22796dc16c059979d2ec6108b0402e @@ -1,3 +1,4 @@ #! /bin/sh +#gdb ./build_dir/space_squad ./build_dir/space_squad @@ -3,46 +3,45 @@ #include "rodeo.h" -Rodeo__data_t _state = {0}; -Rodeo__data_t *state = &_state; +Rodeo__data_p state; -const struct Rodeo__color_rgba_t red = +const Rodeo__color_rgba_t red = { 1.0f, 0.0f, 0.0f, 1.0f }; -const struct Rodeo__color_rgba_t green = +const Rodeo__color_rgba_t green = { 0.0f, 1.0f, 0.0f, 1.0f }; -const struct Rodeo__color_rgba_t blue = +const Rodeo__color_rgba_t blue = { 0.0f, 0.0f, 1.0f, 1.0f }; -const struct Rodeo__color_rgba_t pink = +const Rodeo__color_rgba_t pink = { 1.0f, 0.0f, 1.0f, 1.0f }; -const struct Rodeo__color_rgba_t red_clear = +const Rodeo__color_rgba_t red_clear = { 1.0f, 0.0f, 0.0f, 0.5f }; -const struct Rodeo__color_rgba_t green_clear = +const Rodeo__color_rgba_t green_clear = { 0.0f, 1.0f, 0.0f, 0.5f }; -const struct Rodeo__color_rgba_t blue_clear = +const Rodeo__color_rgba_t blue_clear = { 0.0f, 0.0f, 1.0f, 0.5f }; -const struct Rodeo__color_rgba_t pink_clear = +const Rodeo__color_rgba_t pink_clear = { 1.0f, 0.0f, 1.0f, 0.5f @@ -51,10 +50,9 @@ const struct Rodeo__color_rgba_t pink_clear = int main() { - Rodeo__init_window(state, 480, 640, "Rodeo Window"); + Rodeo__init_window(&state, 480, 640, "Rodeo Window"); - - while(!state->quit) + while(!Rodeo__should_quit(state)) { Rodeo__begin(state); |
