anv: fix alignments for uniform buffers
[mesa.git] / docs / xlibdriver.html
index da72662c1feb8737c2d0bc26a620284643a88c2f..e1740cd730e38135a8a3b9b2edab71b8e3d9f969 100644 (file)
@@ -8,7 +8,7 @@
 <body>
 
 <div class="header">
-  <h1>The Mesa 3D Graphics Library</h1>
+  The Mesa 3D Graphics Library
 </div>
 
 <iframe src="contents.html"></iframe>
@@ -64,12 +64,12 @@ The format of accepted values is:  <code>visual-class depth</code>
 Here are some examples:
 </p>
 <pre>
-   using csh:
+using csh:
        % setenv MESA_RGB_VISUAL "TrueColor 8"          // 8-bit TrueColor
        % setenv MESA_CI_VISUAL "PseudoColor 12"        // 12-bit PseudoColor
        % setenv MESA_RGB_VISUAL "PseudoColor 8"        // 8-bit PseudoColor
 
-   using bash:
+using bash:
        $ export MESA_RGB_VISUAL="TrueColor 8"
        $ export MESA_CI_VISUAL="PseudoColor 12"
        $ export MESA_RGB_VISUAL="PseudoColor 8"
@@ -107,7 +107,7 @@ for your application.
 <p>
 When using Mesa directly or with GLX, it's up to the application
 writer to create a window with an appropriate colormap.  The GLUT
-toolkit tris to minimize colormap <em>flashing</em> by sharing
+toolkit tries to minimize colormap <em>flashing</em> by sharing
 colormaps when possible.  Specifically, if the visual and depth of the
 window matches that of the root window, the root window's colormap
 will be shared by the Mesa window.  Otherwise, a new, private colormap
@@ -146,14 +146,14 @@ The defaults are all 1.0, effectively disabling gamma correction.
 Examples:
 </p>
 <pre>
-       % export MESA_GAMMA="2.3 2.2 2.4"       // separate R,G,B values
-       % export MESA_GAMMA="2.0"               // same gamma for R,G,B
+% export MESA_GAMMA="2.3 2.2 2.4"      // separate R,G,B values
+% export MESA_GAMMA="2.0"              // same gamma for R,G,B
 </pre>
 <p>
-The progs/demos/gamma.c program may help you to determine reasonable gamma
-value for your display.  With correct gamma values, the color intensities
-displayed in the top row (drawn by dithering) should nearly match those
-in the bottom row (drawn as grays).
+The <code>demos/gamma.c</code> program in mesa/demos repository may help
+you to determine reasonable gamma value for your display.  With correct
+gamma values, the color intensities displayed in the top row (drawn by
+dithering) should nearly match those in the bottom row (drawn as grays).
 </p>
 
 <p>
@@ -171,9 +171,8 @@ drawn with glDrawPixels.
 </p>
 
 <p>
-For more information about gamma correction see:
-<a href="http://www.inforamp.net/~poynton/notes/colour_and_gamma/GammaFAQ.html">
-the Gamma FAQ</a>
+For more information about gamma correction, see the
+<a href="https://en.wikipedia.org/wiki/Gamma_correction">Wikipedia article</a>
 </p>
 
 
@@ -184,7 +183,7 @@ determine if your X server has overlay support you can test for the
 SERVER_OVERLAY_VISUALS property:
 </p>
 <pre>
-       xprop -root | grep SERVER_OVERLAY_VISUALS
+xprop -root | grep SERVER_OVERLAY_VISUALS
 </pre>
 
 
@@ -199,7 +198,7 @@ This incurs a small performance penalty.
 
 <h2>Extensions</h2>
 <p>
-The following MESA-specific extensions are implemented in the Xlib driver.
+The following Mesa-specific extensions are implemented in the Xlib driver.
 </p>
 
 <h3>GLX_MESA_pixmap_colormap</h3>
@@ -208,8 +207,8 @@ The following MESA-specific extensions are implemented in the Xlib driver.
 This extension adds the GLX function:
 </p>
 <pre>
-    GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
-                                      Pixmap pixmap, Colormap cmap )
+GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
+                                  Pixmap pixmap, Colormap cmap )
 </pre>
 <p>
 It is an alternative to the standard glXCreateGLXPixmap() function.
@@ -221,7 +220,7 @@ See the xdemos/glxpixmap.c file for an example of how to use this
 extension.
 </p>
 <p>
-<a href="MESA_pixmap_colormap.spec">GLX_MESA_pixmap_colormap specification</a>
+<a href="specs/MESA_pixmap_colormap.spec">GLX_MESA_pixmap_colormap specification</a>
 </p>
 
 
@@ -244,13 +243,13 @@ deallocate the ancillary buffers by calling glxReleaseBuffersMESA()
 just before an X window is destroyed.  For example:
 </p>
 <pre>
-         #ifdef GLX_MESA_release_buffers
-            glXReleaseBuffersMESA( dpy, window );
-         #endif
-         XDestroyWindow( dpy, window );
+#ifdef GLX_MESA_release_buffers
+   glXReleaseBuffersMESA( dpy, window );
+#endif
+XDestroyWindow( dpy, window );
 </pre>
 <p>
-<a href="MESA_release_buffers.spec">GLX_MESA_release_buffers specification</a>
+<a href="specs/MESA_release_buffers.spec">GLX_MESA_release_buffers specification</a>
 </p>
 <p>
 This extension was added in Mesa 2.0.
@@ -263,7 +262,7 @@ like glXSwapBuffers() but only copies a sub-region of the window
 instead of the whole window.
 </p>
 <p>
-<a href="MESA_copy_sub_buffer.spec">GLX_MESA_copy_sub_buffer specification</a>
+<a href="specs/MESA_copy_sub_buffer.spec">GLX_MESA_copy_sub_buffer specification</a>
 </p>
 <p>
 This extension was added in Mesa 2.6
@@ -271,11 +270,11 @@ This extension was added in Mesa 2.6
 
 <h2>Summary of X-related environment variables</h2>
 <pre>
-   MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode (X only)
-   MESA_CI_VISUAL - specifies the X visual and depth for CI mode (X only)
-   MESA_BACK_BUFFER - specifies how to implement the back color buffer (X only)
-   MESA_PRIVATE_CMAP - force aux/tk libraries to use private colormaps (X only)
-   MESA_GAMMA - gamma correction coefficients (X only)
+MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode (X only)
+MESA_CI_VISUAL - specifies the X visual and depth for CI mode (X only)
+MESA_BACK_BUFFER - specifies how to implement the back color buffer (X only)
+MESA_PRIVATE_CMAP - force aux/tk libraries to use private colormaps (X only)
+MESA_GAMMA - gamma correction coefficients (X only)
 </pre>
 
 </div>