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/platform.h
2019-01-14 09:46:47 +01:00

29 lines
440 B
C

#ifndef PLATFORM_H
#define PLATFORM_H
typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer);
struct sdl_plugin_code
{
time_t LastModificationTime;
void *CodeLibrary;
plugin_update_and_render *UpdateAndRender;
};
struct sdl_offscreen_buffer
{
SDL_Texture *Texture;
void *Memory;
int Width;
int Height;
int Pitch;
};
struct sdl_window_dimension
{
int Width;
int Height;
};
#endif