Moved platform specific code to its own directory.
This commit is contained in:
29
code/platforms/win32_platform.h
Normal file
29
code/platforms/win32_platform.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef WIN32_PLATFORM_H
|
||||
#define WIN32_PLATFORM_H
|
||||
|
||||
typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer, plugin_input *Input);
|
||||
|
||||
struct sdl_plugin_code
|
||||
{
|
||||
HMODULE PluginCodeDLL;
|
||||
FILETIME DLLLastWriteTime;
|
||||
plugin_update_and_render *UpdateAndRender;
|
||||
bool IsValid;
|
||||
};
|
||||
|
||||
struct sdl_offscreen_buffer
|
||||
{
|
||||
SDL_Texture *Texture;
|
||||
void *Memory;
|
||||
int Width;
|
||||
int Height;
|
||||
int Pitch;
|
||||
};
|
||||
|
||||
struct sdl_window_dimension
|
||||
{
|
||||
int Width;
|
||||
int Height;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user