buddhabrot/src/image.h

20 lines
320 B
C
Raw Normal View History

2020-11-10 16:31:32 +01:00
#ifndef IMAGE_H
#define IMAGE_H
#include <stddef.h>
struct image {
size_t w;
size_t h;
struct pixel {
unsigned char r;
unsigned char g;
unsigned char b;
} buf[];
};
struct image *create_image(size_t w, size_t h);
void destroy_image(struct image *image);
#endif /* !IMAGE_H */