]> git.bts.cx Git - benzene.git/blob - src/bz/renderer/palette_internal.h
Fixed Aseprite rendering system
[benzene.git] / src / bz / renderer / palette_internal.h
1 #ifndef BZ_RENDERER_PALETTE_INTERNAL_H
2 #define BZ_RENDERER_PALETTE_INTERNAL_H
3
4 #include <bz/renderer/palette.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 struct BZRendererPalette {
11 size_t numColors;
12 uint32_t colors[];
13 };
14
15 #define bzPaletteMakeColor(r, g, b) ((r)&0xFF) << 0 | ((g)&0xFF) << 8 | ((b)&0xFF) << 16 | (0xFF) << 24
16
17 #ifdef __cplusplus
18 }
19 #endif
20
21 #endif