Added crude input API between platform layer and plugin. Added manual refresh to prevent CPU from blowing up. Added last rendered value to window title.

This commit is contained in:
Michael Smith
2019-02-06 10:32:31 +01:00
parent 0e5ce7ec07
commit 2f6c88f435
6 changed files with 59 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#ifndef SDL_PLATFORM_H
#define SDL_PLATFORM_H
typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer);
typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer, plugin_input *Input);
struct sdl_plugin_code
{