diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2008-04-18 17:34:24 +0300 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2008-04-23 11:12:30 +0300 |
commit | 32a2a095f4d8e3be7fa2807cb436bd09e8eb5a75 (patch) | |
tree | 79a7f3b191cd6370d357a2da243edcf24068b59e /include/GL | |
parent | b3efd35f4bdd62cf36b6f59be602fa8781db9b89 (diff) |
glcore: build from mesa
Diffstat (limited to 'include/GL')
-rw-r--r-- | include/GL/internal/glcore.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/include/GL/internal/glcore.h b/include/GL/internal/glcore.h index 1bb63c1aee..ae1955a77d 100644 --- a/include/GL/internal/glcore.h +++ b/include/GL/internal/glcore.h @@ -181,4 +181,77 @@ typedef struct __GLcontextModesRec { #define GLX_TEXTURE_2D_BIT_EXT 0x00000002 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 + +/************************************************************************/ + +#ifdef _NEED_GL_CORE_IF + +/** + * The GLcore interface (a subset of the XMesa interface) + */ +#define __GL_CORE "GL_Core" + +typedef struct __GLcoreModuleRec { + /* + * XMesaVisual + */ + XMesaVisual (*XMesaCreateVisual)( ScreenPtr display, + VisualPtr visinfo, + GLboolean rgb_flag, + GLboolean alpha_flag, + GLboolean db_flag, + GLboolean stereo_flag, + GLboolean ximage_flag, + GLint depth_size, + GLint stencil_size, + GLint accum_red_size, + GLint accum_green_size, + GLint accum_blue_size, + GLint accum_alpha_size, + GLint num_samples, + GLint level, + GLint visualCaveat ); + + void (*XMesaDestroyVisual)( XMesaVisual v ); + + /* + * XMesaBuffer + */ + XMesaBuffer (*XMesaCreateWindowBuffer)( XMesaVisual v, + WindowPtr w ); + + XMesaBuffer (*XMesaCreatePixmapBuffer)( XMesaVisual v, + PixmapPtr p, + ColormapPtr cmap ); + + void (*XMesaDestroyBuffer)( XMesaBuffer b ); + + void (*XMesaSwapBuffers)( XMesaBuffer b ); + + void (*XMesaResizeBuffers)( XMesaBuffer b ); + + /* + * XMesaContext + */ + XMesaContext (*XMesaCreateContext)( XMesaVisual v, + XMesaContext share_list ); + + void (*XMesaDestroyContext)( XMesaContext c ); + + GLboolean (*XMesaCopyContext)( XMesaContext src, + XMesaContext dst, + GLuint mask ); + + GLboolean (*XMesaMakeCurrent2)( XMesaContext c, + XMesaBuffer drawBuffer, + XMesaBuffer readBuffer ); + + GLboolean (*XMesaForceCurrent)( XMesaContext c ); + + GLboolean (*XMesaLoseCurrent)( XMesaContext c ); + +} __GLcoreModule; + +#endif /* _NEED_GL_CORE_IF */ + #endif /* __gl_core_h_ */ |