summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-01-03 17:42:06 -0500
committerrealtradam <[email protected]>2023-01-03 17:42:06 -0500
commit6e4540372bb862afb4fc084d5c5e68ba0ae9c67a (patch)
treea0a97f322e08918b7a03bd976732404b4a03ab6b /src
parente38a5adeccdde8def46b6aa03d99d0b16bf15a60 (diff)
downloadRodeoKit-6e4540372bb862afb4fc084d5c5e68ba0ae9c67a.tar.gz
RodeoKit-6e4540372bb862afb4fc084d5c5e68ba0ae9c67a.zip
convert to library
Diffstat (limited to 'src')
-rw-r--r--src/lib/lib.c6
-rw-r--r--src/lib/lib.h3
-rw-r--r--src/main.c29
-rw-r--r--src/rodeo.h42
4 files changed, 0 insertions, 80 deletions
diff --git a/src/lib/lib.c b/src/lib/lib.c
deleted file mode 100644
index 4de4456..0000000
--- a/src/lib/lib.c
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "lib.h"
-
-int add(int a, int b)
-{
- return a + b;
-}
diff --git a/src/lib/lib.h b/src/lib/lib.h
deleted file mode 100644
index 77a0e1e..0000000
--- a/src/lib/lib.h
+++ /dev/null
@@ -1,3 +0,0 @@
-
-int
-add(int a, int b);
diff --git a/src/main.c b/src/main.c
deleted file mode 100644
index 586d476..0000000
--- a/src/main.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#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;
-}
diff --git a/src/rodeo.h b/src/rodeo.h
deleted file mode 100644
index e468c11..0000000
--- a/src/rodeo.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <stdbool.h>
-#include "SDL2/SDL.h"
-#include "SDL2/SDL_syswm.h"
-
-typedef
-struct
-Rodeo__\
-Data_t
-{
- SDL_Window* window;
- SDL_Surface* screen_surface;
- SDL_SysWMinfo wmi;
- int screen_width;
- int screen_height;
- SDL_Event sdl_event;
- bool quit;
-} Rodeo__Data_t;
-
-void
-Rodeo__\
-init_window(
- Rodeo__Data_t* state,
- int screen_height,
- int screen_width,
- char* title
- );
-
-void
-Rodeo__\
-deinit_window(Rodeo__Data_t* state);
-
-void
-Rodeo__\
-quit();
-
-void
-Rodeo__\
-begin(Rodeo__Data_t* state);
-
-void
-Rodeo__\
-end(Rodeo__Data_t* state);