fire/draw.h

23 lines
325 B
C
Raw Normal View History

2019-12-13 03:27:13 +00:00
#ifndef DRAW_INCLUDED
#define DRAW_INCLUDED
2019-12-13 21:15:29 +00:00
#ifdef __OpenBSD__
#include "sys/types.h"
#else
2020-09-17 11:42:48 +00:00
#include "stdint.h"
#endif
2019-12-13 03:27:13 +00:00
typedef struct buffer
{
size_t width;
size_t height;
2019-12-13 03:27:13 +00:00
uint8_t* buf;
2019-12-13 03:27:13 +00:00
} buffer;
void init ( struct buffer *buf );
void dofire ( struct buffer *buf );
2019-12-13 04:03:58 +00:00
void cleanup ( struct buffer *buf );
2019-12-13 03:27:13 +00:00
#endif