2019-12-13 03:27:13 +00:00
|
|
|
#ifndef DRAW_INCLUDED
|
|
|
|
#define DRAW_INCLUDED
|
2019-12-13 21:15:29 +00:00
|
|
|
|
2020-03-09 16:29:38 +00:00
|
|
|
#ifdef __OpenBSD__
|
|
|
|
#include "sys/types.h"
|
|
|
|
#else
|
2020-09-17 11:42:48 +00:00
|
|
|
#include "stdint.h"
|
2020-03-09 16:29:38 +00:00
|
|
|
#endif
|
2019-12-13 03:27:13 +00:00
|
|
|
|
|
|
|
typedef struct buffer
|
|
|
|
{
|
2020-03-09 16:29:38 +00:00
|
|
|
size_t width;
|
|
|
|
size_t height;
|
2019-12-13 03:27:13 +00:00
|
|
|
|
2020-03-09 16:29:38 +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
|