1 #ifndef TINYGL_GLA_H 2 #define TINYGL_GLA_H 3 4 5 #include <cybergraphx/cybergraphics.h> 6 #include <utility/tagitem.h> 7 8 9 /* Context creation tags (for glACreateContext) */ 10 11 enum 12 { 13 /* with these you can specify type of context (using window, screen or bitmap. 14 You have to only specify one of them. It more is used then here is the order 15 they are checked: SCREEN, WINDOW, BITMAP 16 */ 17 18 TGL_CONTEXT_SCREEN = TAG_USER + 1, /* pass here screen pointer the context will use */ 19 TGL_CONTEXT_WINDOW, /* same for window */ 20 TGL_CONTEXT_BITMAP, /* same for bitmap */ 21 TGL_CONTEXT_STENCIL, /* requests stencil. It may fail to create one though. check if it's present later */ 22 TGL_CONTEXT_NODEPTH /* don't allocate depth buffer. */ 23 }; 24 25 /* Context types */ 26 27 enum 28 { 29 GLA_CTYPE_UNKNOWN = 0, 30 GLA_CTYPE_WINDOW, 31 GLA_CTYPE_SCREEN, 32 GLA_CTYPE_BITMAP 33 }; 34 35 /* GLA Extensions */ 36 37 #define GLA_EXTERNAL_READBUFFER_BITMAP 1UL 38 39 #endif /* TINYGL_GLA_H */ 40