diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/compile_flags.txt | 2 | ||||
| -rw-r--r-- | src/main.c | 29 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/compile_flags.txt b/src/compile_flags.txt new file mode 100644 index 0000000..f138ece --- /dev/null +++ b/src/compile_flags.txt @@ -0,0 +1,2 @@ +-I./ +-I../external/RodeoEngine/include diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..586d476 --- /dev/null +++ b/src/main.c @@ -0,0 +1,29 @@ +#include <stdio.h> +#include <stdbool.h> +#include "SDL2/SDL.h" +#include "SDL2/SDL_syswm.h" +#include "bgfx/c99/bgfx.h" + +#include "rodeo.h" + +Rodeo__Data_t _state = {0}; +Rodeo__Data_t* state = &_state; + +int +main() +{ + Rodeo__init_window(state, 480, 640, "Rodeo Window"); + + while(!state->quit) + { + Rodeo__begin(state); + + bgfx_dbg_text_printf(0, 2, 0x6f, "Description: Initialization and debug text."); + + Rodeo__end(state); + } + + Rodeo__deinit_window(state); + Rodeo__quit(); + return 0; +} |
