diff options
| author | realtradam <[email protected]> | 2023-01-04 01:13:13 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-01-04 01:13:13 -0500 |
| commit | be7143637ddf12ba1460a87932c964ab2de0af7b (patch) | |
| tree | 90b5d84863db00551f6a04c729f5265a9029ff8f /src | |
| download | rodeo_sample_game-be7143637ddf12ba1460a87932c964ab2de0af7b.tar.gz rodeo_sample_game-be7143637ddf12ba1460a87932c964ab2de0af7b.zip | |
init
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; +} |
