fire/draw.h

22 lines
328 B
C
Raw Normal View History

2019-12-12 19:27:13 -08:00
#ifndef DRAW_INCLUDED
#define DRAW_INCLUDED
2019-12-13 13:15:29 -08:00
#ifdef __OpenBSD__
#include "sys/types.h"
#else
2020-09-17 04:42:48 -07:00
#include "stdint.h"
#endif
2019-12-12 19:27:13 -08:00
2020-09-17 05:04:12 -07:00
struct buffer {
size_t width;
size_t height;
2019-12-12 19:27:13 -08:00
uint8_t* buf;
2020-09-17 05:04:12 -07:00
};
2019-12-12 19:27:13 -08:00
2020-09-19 05:59:55 -07:00
void init(struct buffer *buf, uint16_t width, uint16_t height);
2020-09-17 05:04:12 -07:00
void dofire(struct buffer *buf);
void cleanup(struct buffer *buf);
2019-12-12 19:27:13 -08:00
#endif