version 2.8
nglx.h
1 #ifndef NGLX_H
2 #define NGLX_H
3 
4 #include <microwin/nano-X.h>
5 #include <GL/gl.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 typedef void *NGLXContext;
12 typedef GR_DRAW_ID NGLXDrawable;
13 
14 extern NGLXContext nglXCreateContext( NGLXContext shareList, int flags );
15 
16 extern void nglXDestroyContext( NGLXContext ctx );
17 
18 extern int nglXMakeCurrent( NGLXDrawable drawable,
19  NGLXContext ctx);
20 
21 extern void nglXSwapBuffers( NGLXDrawable drawable );
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif