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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user