Mercurial > hg > dmlib
comparison tools/libgfx.h @ 1543:416d7b3ba3b2
Rename libgfx IMGFMT_* constants to DM_IMGFMT_*.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 May 2018 17:48:56 +0300 |
parents | ae2ba8cb510f |
children | 48823642c4fb |
comparison
equal
deleted
inserted
replaced
1542:69fa95707e65 | 1543:416d7b3ba3b2 |
---|---|
16 #endif | 16 #endif |
17 | 17 |
18 | 18 |
19 enum | 19 enum |
20 { | 20 { |
21 IMGFMT_PNG, | 21 DM_IMGFMT_PNG, |
22 IMGFMT_PPM, | 22 DM_IMGFMT_PPM, |
23 IMGFMT_PCX, | 23 DM_IMGFMT_PCX, |
24 IMGFMT_ILBM, | 24 DM_IMGFMT_ILBM, |
25 IMGFMT_RAW, | 25 DM_IMGFMT_RAW, |
26 IMGFMT_ARAW, | 26 DM_IMGFMT_ARAW, |
27 | 27 |
28 IMGFMT_LAST | 28 DM_IMGFMT_LAST |
29 }; | 29 }; |
30 | 30 |
31 | 31 |
32 enum | 32 enum |
33 { | 33 { |
90 #define DM_PROBE_SCORE_AVG 500 | 90 #define DM_PROBE_SCORE_AVG 500 |
91 #define DM_PROBE_SCORE_MAYBE 250 | 91 #define DM_PROBE_SCORE_MAYBE 250 |
92 #define DM_PROBE_SCORE_FALSE 0 | 92 #define DM_PROBE_SCORE_FALSE 0 |
93 | 93 |
94 | 94 |
95 extern DMImageFormat dmImageFormatList[IMGFMT_LAST]; | 95 extern DMImageFormat dmImageFormatList[DM_IMGFMT_LAST]; |
96 extern int dmGFXErrorMode; | 96 extern int dmGFXErrorMode; |
97 | 97 |
98 | 98 |
99 DMImage * dmImageAlloc(const int width, const int height, const int format, const int bpp); | 99 DMImage * dmImageAlloc(const int width, const int height, const int format, const int bpp); |
100 void dmImageFree(DMImage *img); | 100 void dmImageFree(DMImage *img); |