From 32a2a095f4d8e3be7fa2807cb436bd09e8eb5a75 Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Fri, 18 Apr 2008 17:34:24 +0300 Subject: glcore: build from mesa --- include/GL/internal/glcore.h | 73 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) (limited to 'include/GL/internal') 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_ */ -- cgit v1.2.3