This repository has been archived on 2023-01-29. You can view files and clone it, but cannot push or open issues or pull requests.
1weekendraytracer/code/rt_weekend.h

30 lines
469 B
C

#ifndef RT_WEEKEND_H
#define RT_WEEKEND_H
#include <stdint.h>
#define internal static
#define local_persist static
#define global_variable static
#define Assert(Expression) if(!(Expression)) { *(int *)0 = 0; }
// Services that are being provided to the platform layer
struct plugin_offscreen_buffer
{
void *Memory;
int Width;
int Height;
int Pitch;
};
struct plugin_input
{
uint32_t MouseX;
uint32_t MouseY;
bool MouseDown;
};
#endif