Style fix, drop the explicit -ldrm from the link line.
[mesa-demos.git] / docs / MESA_pixmap_colormap.spec
blobfb0b441cc58aee974ff896ee4d1872e6f53b7bfb
1 Name
3 MESA_pixmap_colormap
5 Name Strings
7 GLX_MESA_pixmap_colormap
9 Contact
11 Brian Paul (brian.paul 'at' tungstengraphics.com)
13 Status
15 Shipping since Mesa 1.2.8 in May, 1996.
17 Version
19 Last Modified Date: 8 June 2000
21 Number
23 216
25 Dependencies
27 OpenGL 1.0 or later is required.
28 GLX 1.0 or later is required.
30 Overview
32 Since Mesa allows RGB rendering into drawables with PseudoColor,
33 StaticColor, GrayScale and StaticGray visuals, Mesa needs a colormap
34 in order to compute pixel values during rendering.
36 The colormap associated with a window can be queried with normal
37 Xlib functions but there is no colormap associated with pixmaps.
39 The glXCreateGLXPixmapMESA function is an alternative to glXCreateGLXPixmap
40 which allows specification of a colormap.
42 IP Status
44 Open-source; freely implementable.
46 Issues
48 None.
50 New Procedures and Functions
52 GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
53 Pixmap pixmap, Colormap cmap );
55 New Tokens
57 None.
59 Additions to Chapter 3 of the GLX 1.3 Specification (Functions and Errors)
61 Add to section 3.4.2 Off Screen Rendering
63 The Mesa implementation of GLX allows RGB rendering into X windows and
64 pixmaps of any visual class, not just TrueColor or DirectColor. In order
65 to compute pixel values from RGB values Mesa requires a colormap.
67 The function
69 GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
70 Pixmap pixmap, Colormap cmap );
72 allows one to create a GLXPixmap with a specific colormap. The image
73 rendered into the pixmap may then be copied to a window (which uses the
74 same colormap and visual) with the expected results.
76 GLX Protocol
78 None since this is a client-side extension.
80 Errors
82 None.
84 New State
86 None.
88 Revision History
90 8 June 2000 - initial specification