summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-01-05 03:47:22 -0500
committerrealtradam <[email protected]>2023-01-05 03:47:22 -0500
commit730e2b54cd5542a07a55dc44a57ab3f12cd70337 (patch)
treef4fadd011034e80bb55fe9ade0de2a24e3ff75ec
parentbe7143637ddf12ba1460a87932c964ab2de0af7b (diff)
downloadrodeo_sample_game-730e2b54cd5542a07a55dc44a57ab3f12cd70337.tar.gz
rodeo_sample_game-730e2b54cd5542a07a55dc44a57ab3f12cd70337.zip
update engine + cleaning
-rw-r--r--.vimrc2
m---------external/RodeoEngine0
-rw-r--r--src/main.c12
3 files changed, 8 insertions, 6 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..bcaff77
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,2 @@
+" press F5 to compile and execute the project code
+map <f5> :AsyncRun -save=1 -cwd=<root> ./build ; ./run <CR>
diff --git a/external/RodeoEngine b/external/RodeoEngine
-Subproject 6e4540372bb862afb4fc084d5c5e68ba0ae9c67
+Subproject b1f855a82b40f1caeaf4d672638f2cfc933c804
diff --git a/src/main.c b/src/main.c
index 586d476..6a0f475 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,13 +1,13 @@
#include <stdio.h>
#include <stdbool.h>
-#include "SDL2/SDL.h"
-#include "SDL2/SDL_syswm.h"
-#include "bgfx/c99/bgfx.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;
+Rodeo__data_t _state = {0};
+Rodeo__data_t *state = &_state;
int
main()
@@ -18,7 +18,7 @@ main()
{
Rodeo__begin(state);
- bgfx_dbg_text_printf(0, 2, 0x6f, "Description: Initialization and debug text.");
+ Rodeo__draw_debug_text(1, 1, "Debug %s Test", "Text");
Rodeo__end(state);
}