*/
/*
- * DOS/DJGPP device driver v1.6 for Mesa
+ * DOS/DJGPP device driver for Mesa
*
- * Copyright (C) 2002 - Borca Daniel
+ * Author: Daniel Borca
* Email : dborca@users.sourceforge.net
* Web : http://www.geocities.com/dborca
*/
#define DMESA_H_included
#define DMESA_MAJOR_VERSION 6
-#define DMESA_MINOR_VERSION 1
+#define DMESA_MINOR_VERSION 5
/* Sample Usage:
*
/*
* Return a handle to the current context.
*/
-void *DMesaGetCurrentContext (void);
+DMesaContext DMesaGetCurrentContext (void);
*/
void DMesaDestroyBuffer (DMesaBuffer b);
+/*
+ * Return a handle to the current buffer.
+ */
+DMesaBuffer DMesaGetCurrentBuffer (void);
+
/*
* Swap the front and back buffers for the given Buffer.
* No action is taken if the buffer is not double buffered.
/*
* DMesa functions
*/
-void *DMesaGetProcAddress (const char *name);
+typedef void (*DMesaProc) ();
+DMesaProc DMesaGetProcAddress (const char *name);
/*
* DMesa state retrieval.
#define DMESA_GET_VIDEO_MODES 0x0300
#define DMESA_GET_BUFFER_ADDR 0x0400
-#define DMESA_DRIVER_SWDB_BIT 0x1 /* software double-buffered */
-#define DMESA_DRIVER_LLWO_BIT 0x2 /* lower-left window origin */
+#define DMESA_DRIVER_DBL_BIT 0x1 /* double-buffered */
+#define DMESA_DRIVER_YUP_BIT 0x2 /* lower-left window origin */
int DMesaGetIntegerv (GLenum pname, GLint *params);
#ifdef __cplusplus