new arguments to XMesaCreateVisual()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 5 Apr 2000 22:09:58 +0000 (22:09 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 5 Apr 2000 22:09:58 +0000 (22:09 +0000)
include/GL/xmesa.h
progs/xdemos/xdemo.c
src/mesa/drivers/x11/fakeglx.c

index 59c4a8636b6d21c243d5b8006cd918271a73862d..663ccb85adf86b343020ecae1ea691d216c47f5a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: xmesa.h,v 1.6 2000/03/31 01:04:07 brianp Exp $ */
+/* $Id: xmesa.h,v 1.7 2000/04/05 22:09:58 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -141,41 +141,35 @@ extern void XMesaResetDriver( __DRIscreenPrivate *driScrnPriv );
  *         db_flag - GL_TRUE = double-buffered,
  *                   GL_FALSE = single buffered
  *         stereo_flag - stereo visual?
- *         depth_size - requested bits/depth values, or zero
- *         stencil_size - requested bits/stencil values, or zero
- *         accum_size - requested bits/component values, or zero
  *         ximage_flag - GL_TRUE = use an XImage for back buffer,
  *                       GL_FALSE = use an off-screen pixmap for back buffer
+ *         depth_size - requested bits/depth values, or zero
+ *         stencil_size - requested bits/stencil values, or zero
+ *         accum_red_size - requested bits/red accum values, or zero
+ *         accum_green_size - requested bits/green accum values, or zero
+ *         accum_blue_size - requested bits/blue accum values, or zero
+ *         accum_alpha_size - requested bits/alpha accum values, or zero
+ *         num_samples - number of samples/pixel if multisampling, or zero
+ *         level - visual level, usually 0
+ *         visualCaveat - ala the GLX extension, usually GLX_NONE_EXT
  * Return;  a new XMesaVisual or 0 if error.
  */
 extern XMesaVisual XMesaCreateVisual( XMesaDisplay *display,
-                                     XMesaVisualInfo visinfo,
-                                     GLboolean rgb_flag,
-                                     GLboolean alpha_flag,
-                                     GLboolean db_flag,
-                                     GLboolean stereo_flag,
-                                     GLboolean ximage_flag,
-                                     GLint depth_size,
-                                     GLint stencil_size,
-                                     GLint accum_size,
-                                     GLint level );
-
-extern XMesaVisual XMesaCreateVisual2( XMesaDisplay *display,
-                                       XMesaVisualInfo 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 );
+                                      XMesaVisualInfo 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 );
 
 /*
  * Destroy an XMesaVisual, but not the associated XVisualInfo.
index 13facba839589c17d127452becb1eb2d1e975da6..28f945b27d8f53228297423b9ed3588cf047ac2a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: xdemo.c,v 1.1 1999/08/19 00:55:43 jtg Exp $ */
+/* $Id: xdemo.c,v 1.2 2000/04/05 22:09:58 brianp Exp $ */
 
 
 /*
 
 /*
  * $Log: xdemo.c,v $
- * Revision 1.1  1999/08/19 00:55:43  jtg
- * Initial revision
+ * Revision 1.2  2000/04/05 22:09:58  brianp
+ * new arguments to XMesaCreateVisual()
+ *
+ * Revision 1.1.1.1  1999/08/19 00:55:43  jtg
+ * Imported sources
  *
  * Revision 3.0  1998/02/21 02:16:54  brianp
  * initial rev
@@ -184,8 +187,10 @@ static void make_window( char *title, int color_flag )
                                GL_FALSE,  /* ximage_flag */
                                0,         /* depth size */
                                0,         /* stencil size */
-                               0,         /* accum_size */
-                               0          /* level */
+                               0,0,0,0,   /* accum_size */
+                               0,         /* num samples */
+                               0,         /* level */
+                               0          /* caveat */
                               );
    if (!visual) {
       printf("Couldn't create Mesa/X visual!\n");
index 8ffdd34458b295af93d9c02396437298eacfc952..08a931a1827d5438379a65e9339a80e86ea12c3f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.30 2000/03/31 18:17:01 brianp Exp $ */
+/* $Id: fakeglx.c,v 1.31 2000/04/05 22:09:58 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -292,12 +292,12 @@ save_glx_visual( Display *dpy, XVisualInfo *vinfo,
       return NULL;
    }
 
-   xmvis = XMesaCreateVisual2( dpy, vinfo, rgbFlag, alphaFlag, dbFlag,
-                               stereoFlag, ximageFlag,
-                               depth_size, stencil_size,
-                               accumRedSize, accumBlueSize,
-                               accumBlueSize, accumAlphaSize, 0, level,
-                               GLX_NONE_EXT );
+   xmvis = XMesaCreateVisual( dpy, vinfo, rgbFlag, alphaFlag, dbFlag,
+                              stereoFlag, ximageFlag,
+                              depth_size, stencil_size,
+                              accumRedSize, accumBlueSize,
+                              accumBlueSize, accumAlphaSize, 0, level,
+                              GLX_NONE_EXT );
    if (xmvis) {
       VisualTable[NumVisuals] = xmvis;
       NumVisuals++;