summaryrefslogtreecommitdiff
path: root/src/image.h
blob: a66e0cb505ae74574e5e7871d08d9609c8a36b29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef IMAGE_H
#define IMAGE_H

#include <stdbool.h>
#include <stdint.h>

struct image {
	uint8_t *buffer;
	uint32_t width;
	uint32_t height;
	bool swizzle;
	bool redraw;
	struct {
		uint32_t x;
		uint32_t y;
		uint32_t width;
		uint32_t height;
	} damage;
};

#endif /* IMAGE_H */