Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5098 | clevermous | 1 | #ifndef _tgl_features_h_ |
2 | #define _tgl_features_h_ |
||
3 | |||
4 | #define NDEBUG |
||
5 | /*for menuetlibc*/ |
||
6 | #ifdef NDEBUG |
||
7 | /* |
||
8 | * If not debugging, assert does nothing. |
||
9 | */ |
||
10 | #define assert(x) ((void)0) |
||
11 | #else /* debugging enabled */ |
||
12 | #include |
||
13 | #endif |
||
14 | |||
15 | /* It is possible to enable/disable (compile time) features in this |
||
16 | header file. */ |
||
17 | |||
18 | /*#define TGL_FEATURE_ARRAYS 1*/ |
||
19 | /*#define TGL_FEATURE_DISPLAYLISTS 1*/ |
||
20 | /*#define TGL_FEATURE_POLYGON_OFFSET 1*/ |
||
21 | |||
22 | /* |
||
23 | * Matrix of internal and external pixel formats supported. 'Y' means |
||
24 | * supported. |
||
25 | * |
||
26 | * External 8 16 24 32 |
||
27 | * Internal |
||
28 | * 15 . . . . |
||
29 | * 16 Y Y Y Y |
||
30 | * 24 . Y Y . |
||
31 | * 32 . Y . Y |
||
32 | * |
||
33 | * |
||
34 | * 15 bpp does not work yet (although it is easy to add it - ask me if |
||
35 | * you need it). |
||
36 | * |
||
37 | * Internal pixel format: see TGL_FEATURE_RENDER_BITS |
||
38 | * External pixel format: see TGL_FEATURE_xxx_BITS |
||
39 | */ |
||
40 | |||
41 | /* enable various convertion code from internal pixel format (usually |
||
42 | 16 bits per pixel) to any external format */ |
||
43 | /*#define TGL_FEATURE_16_BITS 1*/ |
||
44 | /*#define TGL_FEATURE_8_BITS 1*/ |
||
45 | #define TGL_FEATURE_24_BITS 1 |
||
46 | /*#define TGL_FEATURE_32_BITS 1*/ |
||
47 | |||
48 | |||
49 | /*#define TGL_FEATURE_RENDER_BITS 15*/ |
||
50 | /*#define TGL_FEATURE_RENDER_BITS 16*/ |
||
51 | #define TGL_FEATURE_RENDER_BITS 24 |
||
52 | /*#define TGL_FEATURE_RENDER_BITS 32*/ |
||
53 | |||
54 | #endif /* _tgl_features_h_ */ |