Initial commit

This commit is contained in:
Michael Smith
2019-01-14 09:42:23 +01:00
committed by Michael Smith
commit e867778b4c
11 changed files with 1263 additions and 0 deletions

28
code/platform.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef PLATFORM_H
#define PLATFORM_H
typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer);
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