/
vuvk
/
tinygl2
Обзор
Документация
Войти
/
vuvk
/
tinygl2
Код
Запросы
0
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
include/zfeatures.h
64 строки
2 KB
AntonVuvk
Initial commit.
17 сен 2017, 09:06
17 сен 2017, 09:06
4877a09
Код
Авторство
О чём код?
#ifndef _tgl_features_h_ #define _tgl_features_h_ /* Define BYTE_ORDER correctly where missing */ #ifndef BYTE_ORDER #define LITTLE_ENDIAN 1234 #define BIG_ENDIAN 4321 #if (defined(__i386__) || defined(__i386)) || \ defined(__ia64__) || defined(WIN32) || \ (defined(__alpha__) || defined(__alpha)) || \ defined(__arm__) || \ (defined(__mips__) && defined(__MIPSEL__)) || \ defined(__SYMBIAN32__) || \ defined(__x86_64__) || \ defined(__LITTLE_ENDIAN__) #define BYTE_ORDER LITTLE_ENDIAN #else #define BYTE_ORDER BIG_ENDIAN #endif #endif /* 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_ */