gallium/draw: initial code to properly support llvm in the draw module
[mesa.git] / include / GL / dmesa.h
index 7510fdb9f4e5ba749edbcdbb29af5ba3c6941204..358082e3ea1e1f509d3f0442749fc268558928c5 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * Mesa 3-D graphics library
- * Version:  5.0
+ * Version:  6.1
  * 
- * Copyright (C) 1999-2002  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2004  Brian Paul   All Rights Reserved.
  * 
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -23,9 +23,9 @@
  */
 
 /*
- * DOS/DJGPP device driver v1.4 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
  */
@@ -34,8 +34,8 @@
 #ifndef DMESA_H_included
 #define DMESA_H_included
 
-#define DMESA_MAJOR_VERSION 5
-#define DMESA_MINOR_VERSION 0
+#define DMESA_MAJOR_VERSION 6
+#define DMESA_MINOR_VERSION 5
 
 /* Sample Usage:
  *
@@ -65,7 +65,7 @@ DMesaVisual DMesaCreateVisual (GLint width,        /* X res */
                                GLint refresh,      /* refresh rate: 0=default */
                                GLboolean dbFlag,   /* double-buffered */
                                GLboolean rgbFlag,  /* RGB mode */
-                               GLboolean alphaFlag,/* alpha buffer requested */
+                               GLint alphaSize,    /* requested bits/alpha */
                                GLint depthSize,    /* requested bits/depth */
                                GLint stencilSize,  /* requested bits/stencil */
                                GLint accumSize);   /* requested bits/accum */
@@ -90,7 +90,7 @@ void DMesaDestroyContext (DMesaContext c);
 /*
  * Return a handle to the current context.
  */
-void *DMesaGetCurrentContext (void);
+DMesaContext DMesaGetCurrentContext (void);
 
 
 
@@ -106,6 +106,11 @@ DMesaBuffer DMesaCreateBuffer (DMesaVisual visual,
  */
 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.
@@ -130,14 +135,22 @@ GLboolean DMesaResizeBuffer (GLint width, GLint height);
  */
 void DMesaSetCI (int ndx, GLfloat red, GLfloat green, GLfloat blue);
 
+/*
+ * DMesa functions
+ */
+typedef void (*DMesaProc) ();
+DMesaProc DMesaGetProcAddress (const char *name);
+
 /*
  * DMesa state retrieval.
  */
 #define DMESA_GET_SCREEN_SIZE 0x0100
 #define DMESA_GET_DRIVER_CAPS 0x0200
+#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