1 #ifndef TINYGL_GLA_H 2 #define TINYGL_GLA_H 3 4 #include <cybergraphx/cybergraphics.h> 5 #include <utility/tagitem.h> 6 7 typedef struct GLAContext_s GLAContext; 8 9 void GLASwapBuffers( GLContext *c); 10 void GLASetSync( GLContext *c , int enable ); 11 int GLAInitializeContext(GLContext *context, struct TagItem *tags ); 12 void GLADestroyContext( GLContext *context ); 13 14 /* Context creation tags (for glACreateContext) */ 15 16 enum 17 { 18 /* with these you can specify type of context (using window, screen or bitmap. 19 You have to only specify one of them. It more is used then here is the order 20 they are checked: SCREEN, WINDOW, BITMAP 21 */ 22 23 TGL_CONTEXT_SCREEN = TAG_USER + 1, /* pass here screen pointer the context will use */ 24 TGL_CONTEXT_WINDOW, /* same for window */ 25 TGL_CONTEXT_BITMAP, /* same for bitmap */ 26 TGL_CONTEXT_STENCIL /* requests stencil. It may fail to create one though. check if it's present later */ 27 }; 28 29 #endif /* TINYGL_GLA_H */