diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-08-20 17:44:40 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-08-20 17:44:40 +1000 |
commit | 2b47a0708602b45b0b5db120a496bf92232aa4b1 (patch) | |
tree | 6c5965b6bf1d109b853efe64777bbc7ee5548882 /3rdparty/tinygl-0.4-ugfx/src/zfeatures.h | |
parent | c06bff3304ed234c3a7f96fd049755ac59228ef7 (diff) | |
parent | 0f3f8f68f87233bf59c3fa68c3dfe1f492a1a478 (diff) | |
download | uGFX-2b47a0708602b45b0b5db120a496bf92232aa4b1.tar.gz uGFX-2b47a0708602b45b0b5db120a496bf92232aa4b1.tar.bz2 uGFX-2b47a0708602b45b0b5db120a496bf92232aa4b1.zip |
Merge branch 'master' into newmouse
Diffstat (limited to '3rdparty/tinygl-0.4-ugfx/src/zfeatures.h')
-rw-r--r-- | 3rdparty/tinygl-0.4-ugfx/src/zfeatures.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/3rdparty/tinygl-0.4-ugfx/src/zfeatures.h b/3rdparty/tinygl-0.4-ugfx/src/zfeatures.h new file mode 100644 index 00000000..cafe0c20 --- /dev/null +++ b/3rdparty/tinygl-0.4-ugfx/src/zfeatures.h @@ -0,0 +1,43 @@ +#ifndef _tgl_features_h_ +#define _tgl_features_h_ + +/* It is possible to enable/disable (compile time) features in this + header file. */ + +#define TGL_FEATURE_ARRAYS 1 +#define TGL_FEATURE_DISPLAYLISTS 1 +#define TGL_FEATURE_POLYGON_OFFSET 1 + +/* + * Matrix of internal and external pixel formats supported. 'Y' means + * supported. + * + * External 8 16 24 32 + * Internal + * 15 . . . . + * 16 Y Y Y Y + * 24 . Y Y . + * 32 . Y . Y + * + * + * 15 bpp does not work yet (although it is easy to add it - ask me if + * you need it). + * + * Internal pixel format: see TGL_FEATURE_RENDER_BITS + * External pixel format: see TGL_FEATURE_xxx_BITS + */ + +/* enable various convertion code from internal pixel format (usually + 16 bits per pixel) to any external format */ +#define TGL_FEATURE_16_BITS 1 +#define TGL_FEATURE_8_BITS 1 +#define TGL_FEATURE_24_BITS 1 +#define TGL_FEATURE_32_BITS 1 + + +//#define TGL_FEATURE_RENDER_BITS 15 +#define TGL_FEATURE_RENDER_BITS 16 +//#define TGL_FEATURE_RENDER_BITS 24 +//#define TGL_FEATURE_RENDER_BITS 32 + +#endif /* _tgl_features_h_ */ |