From 60f84fcc91c5fb86843c528416399303da113a2f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 20 Feb 2003 15:43:52 +0000 Subject: latest DOS updates (Daniel Borca) --- include/GL/dmesa.h | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'include/GL/dmesa.h') diff --git a/include/GL/dmesa.h b/include/GL/dmesa.h index 16f6bff88c..2c0ef81abe 100644 --- a/include/GL/dmesa.h +++ b/include/GL/dmesa.h @@ -87,6 +87,11 @@ DMesaContext DMesaCreateContext (DMesaVisual visual, DMesaContext share); */ void DMesaDestroyContext (DMesaContext c); +/* + * Return a handle to the current context. + */ +DMesaContext DMesaGetCurrentContext (void); + /* @@ -101,21 +106,17 @@ DMesaBuffer DMesaCreateBuffer (DMesaVisual visual, */ void DMesaDestroyBuffer (DMesaBuffer b); - - -/* - * Bind Buffer to Context and make the Context the current one. - */ -GLboolean DMesaMakeCurrent (DMesaContext c, DMesaBuffer b); - - - /* * Swap the front and back buffers for the given Buffer. * No action is taken if the buffer is not double buffered. */ void DMesaSwapBuffers (DMesaBuffer b); +/* + * Bind Buffer to Context and make the Context the current one. + */ +GLboolean DMesaMakeCurrent (DMesaContext c, DMesaBuffer b); + /* @@ -132,10 +133,12 @@ void DMesaSetCI (int ndx, GLfloat red, GLfloat green, GLfloat blue); /* * DMesa state retrieval. */ -#define DMESA_Y_ORIGIN 0x0100 -#define DMESA_SCREEN_SIZE 0x0101 -#define DMESA_ARGB_ORDER 0x0200 -void DMesaGetIntegerv (GLenum pname, GLint *params); +#define DMESA_GET_SCREEN_SIZE 0x0100 +#define DMESA_GET_DRIVER_CAPS 0x0200 + +#define DMESA_DRIVER_SWDB_BIT 0x1 /* software double-buffered */ +#define DMESA_DRIVER_LLWO_BIT 0x2 /* lower-left window origin */ +int DMesaGetIntegerv (GLenum pname, GLint *params); #ifdef __cplusplus } -- cgit v1.2.3