Moved platform specific code to its own directory.

This commit is contained in:
Michael Smith
2019-07-15 00:43:17 +02:00
parent 60c77b2777
commit 21d6524c0c
6 changed files with 10 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
#ifndef SDL_PLATFORM_H
#define SDL_PLATFORM_H
typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer, plugin_input *Input);
struct sdl_plugin_code
{
time_t LastModificationTime;
void *CodeLibrary;
plugin_update_and_render *UpdateAndRender;
};
struct sdl_offscreen_buffer
{
SDL_Texture *Texture;
void *Memory;
int Width;
int Height;
int Pitch;
};
struct sdl_window_dimension
{
int Width;
int Height;
};
#endif