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

@@ -3,6 +3,7 @@
#include "sphere.h"
#include "target_list.h"
#include "camera.h"
#include <stdio.h>
vec3 color(const ray &r, target *world)
{
@@ -21,7 +22,7 @@ vec3 color(const ray &r, target *world)
extern "C"
void
PluginUpdateAndRender(plugin_offscreen_buffer *Buffer)
PluginUpdateAndRender(plugin_offscreen_buffer *Buffer, plugin_input *Input)
{
int ns = 1;
int Pitch = Buffer->Pitch;