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
|
|
|
|
2020-09-17 12:04:12 +00:00
|
|
|
struct buffer {
|
|
|
|
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;
|
2020-09-17 12:04:12 +00:00
|
|
|
};
|
2019-12-13 03:27:13 +00:00
|
|
|
|
2020-09-17 12:04:12 +00:00
|
|
|
void init(struct buffer *buf);
|
|
|
|
void dofire(struct buffer *buf);
|
|
|
|
void cleanup(struct buffer *buf);
|
2019-12-13 03:27:13 +00:00
|
|
|
|
|
|
|
#endif
|