blob: 259910155588e78efeb9167cae7b34e41f9e37f9 [file] [log] [blame]
Brian Paul352e0d02003-09-02 16:58:14 +00001<HTML>
2
3<TITLE>PBuffer Rendering</TITLE>
4
Brian Paul36da0452005-01-20 03:55:10 +00005<link rel="stylesheet" type="text/css" href="mesa.css"></head>
6
7<BODY>
Brian Paul352e0d02003-09-02 16:58:14 +00008
9<H1>PBuffer Rendering</H1>
10
11<p>
12Basically, FBconfigs and PBuffers allow you to do off-screen rendering
13with OpenGL. The OSMesa interface does basically the same thing, but
14fbconfigs and pbuffers are supported by more vendors.
Brian Paul6bca16b2004-11-27 19:42:16 +000015PBuffer rendering may also be hardware accelerated.
Brian Paul352e0d02003-09-02 16:58:14 +000016</p>
17
18<p>
19PBuffers are getting more use nowadays, though they've actually been
20around for a long time on IRIX systems and other workstations.
21</p>
22
23<p>
24The
25<a href="http://oss.sgi.com/projects/ogl-sample/registry/SGIX/fbconfig.txt"
26target="_parent">GL_SGIX_fbconfig</a>
27and
28<a href="http://oss.sgi.com/projects/ogl-sample/registry/SGIX/pbuffer.txt"
29target="_parent">
30GL_SGIX_pbuffer</a> extensions describe the functionality.
31More recently, these extensions have been promoted to ARB extensions (on
32Windows at least).
33</p>
34
35<p>
36The Mesa/progs/xdemos/ directory has some useful code for working
37with pbuffers:
38</p>
39
40<ul>
41<li><b>pbinfo.c</b> - like glxinfo, it prints a list of available
42 fbconfigs and whether each supports pbuffers.
43<li><b>pbutil.c</b> - a few utility functions for dealing with
44 fbconfigs and pbuffers.
45<li><b>pbdemo.c</b> - a demonstration of off-screen rendering with pbuffers.
46</ul>
47
48<p>
49Mesa 4.1 and later support GL_SGIX_fbconfig and GL_SGIX_pbuffer (software
50rendering only).
51</p>
52
53</BODY>
54</HTML>