-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDGLPAL.H
executable file
·49 lines (37 loc) · 1.05 KB
/
DGLPAL.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef LIBDGL_DGLPAL_H
#define LIBDGL_DGLPAL_H
#include "dglcmn.h"
#ifdef __cplusplus
extern "C" {
#endif
void pal_set_color(uint8 color, uint8 r, uint8 g, uint8 b);
void pal_get_color(uint8 color, uint8 *r, uint8 *g, uint8 *b);
void pal_set(const uint8 *palette);
void pal_get(uint8 *palette);
void pal_fade_range_to_color(
uint8 start,
uint8 end,
uint8 r,
uint8 g,
uint8 b,
int step
);
void pal_fade_range_to_palette(
uint8 start,
uint8 end,
const uint8 *palette,
int step
);
static void pal_fade_to_color(uint8 r, uint8 g, uint8 b, int step);
static void pal_fade_to_palette(const uint8 *palette, int step);
// --------------------------------------------------------------------------
static void pal_fade_to_color(uint8 r, uint8 g, uint8 b, int step) {
pal_fade_range_to_color(0, 255, r, g, b, step);
}
static void pal_fade_to_palette(const uint8 *palette, int step) {
pal_fade_range_to_palette(0, 255, palette, step);
}
#ifdef __cplusplus
}
#endif
#endif