summaryrefslogtreecommitdiffhomepage
path: root/src/rodeo_types.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rodeo_types.c')
-rw-r--r--src/rodeo_types.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/rodeo_types.c b/src/rodeo_types.c
deleted file mode 100644
index f7e5285..0000000
--- a/src/rodeo_types.c
+++ /dev/null
@@ -1,37 +0,0 @@
-
-// public internal
-#include "rodeo_types.h"
-#include "rodeo_config.h"
-
-// external
-#if __EMSCRIPTEN__
-#include <emscripten/emscripten.h>
-#endif
-#include "SDL2/SDL.h"
-#include "SDL2/SDL_syswm.h"
-#include "bgfx/c99/bgfx.h"
-
-struct
-{
- SDL_Window* window;
- SDL_Surface* screen_surface;
- SDL_SysWMinfo wmi;
- int screen_width;
- int screen_height;
- SDL_Event sdl_event;
- bool quit;
-
- bgfx_vertex_layout_t vertex_layout;
- bgfx_dynamic_vertex_buffer_handle_t vertex_buffer_handle;
- bgfx_dynamic_index_buffer_handle_t index_buffer_handle;
- uint16_t vertex_size;
- rodeo_position_color_vertex_t batched_vertices[RODEO__MAX_VERTEX_SIZE];
- uint16_t index_count;
- uint16_t index_size;
- uint16_t batched_indices[(RODEO__MAX_VERTEX_SIZE / 4) * 6];
- bgfx_shader_handle_t vertex_shader;
- bgfx_shader_handle_t fragment_shader;
- bgfx_program_handle_t program_shader;
-}
-rodeo_\
-data_t;