Brian Paul | 7b2c0f9 | 2000-06-09 00:22:02 +0000 | [diff] [blame] | 1 | Name |
| 2 | |
| 3 | MESA_copy_sub_buffer |
| 4 | |
| 5 | Name Strings |
| 6 | |
| 7 | GLX_MESA_copy_sub_buffer |
| 8 | |
| 9 | Contact |
| 10 | |
Brian Paul | d3b09fe | 2004-03-25 01:42:41 +0000 | [diff] [blame] | 11 | Brian Paul (brian.paul 'at' tungstengraphics.com) |
Brian Paul | 7b2c0f9 | 2000-06-09 00:22:02 +0000 | [diff] [blame] | 12 | |
| 13 | Status |
| 14 | |
| 15 | Shipping since Mesa 2.6 in February, 1998. |
| 16 | |
| 17 | Version |
| 18 | |
| 19 | Last Modified Date: 8 June 2000 |
| 20 | |
| 21 | Number |
| 22 | |
Brian Paul | dd18a4f | 2000-06-23 17:34:47 +0000 | [diff] [blame] | 23 | 215 |
Brian Paul | 7b2c0f9 | 2000-06-09 00:22:02 +0000 | [diff] [blame] | 24 | |
| 25 | Dependencies |
| 26 | |
| 27 | OpenGL 1.0 or later is required. |
| 28 | GLX 1.0 or later is required. |
| 29 | |
| 30 | Overview |
| 31 | |
| 32 | The glxCopySubBufferMESA() function copies a rectangular region |
| 33 | of the back color buffer to the front color buffer. This can be |
| 34 | used to quickly repaint 3D windows in response to expose events |
| 35 | when the back color buffer cannot be damaged by other windows. |
| 36 | |
| 37 | IP Status |
| 38 | |
| 39 | Open-source; freely implementable. |
| 40 | |
| 41 | Issues |
| 42 | |
| 43 | None. |
| 44 | |
| 45 | New Procedures and Functions |
| 46 | |
| 47 | void glXCopySubBufferMESA( Display *dpy, GLXDrawable drawable, |
Brian Paul | dd18a4f | 2000-06-23 17:34:47 +0000 | [diff] [blame] | 48 | int x, int y, int width, int height ); |
Brian Paul | 7b2c0f9 | 2000-06-09 00:22:02 +0000 | [diff] [blame] | 49 | |
| 50 | New Tokens |
| 51 | |
| 52 | None. |
| 53 | |
| 54 | Additions to Chapter 3 of the GLX 1.3 Specification (Functions and Errors) |
| 55 | |
| 56 | Add to section 3.3.10 Double Buffering: |
| 57 | |
| 58 | The function |
| 59 | |
Brian Paul | dd18a4f | 2000-06-23 17:34:47 +0000 | [diff] [blame] | 60 | void glXCopySubBufferMESA( Display *dpy, GLXDrawable drawable, |
| 61 | int x, int y, int width, int height ); |
Brian Paul | 7b2c0f9 | 2000-06-09 00:22:02 +0000 | [diff] [blame] | 62 | |
| 63 | may be used to copy a rectangular region of the back color buffer to |
| 64 | the front color buffer. This can be used to quickly repaint 3D windows |
| 65 | in response to expose events when the back color buffer cannot be |
| 66 | damaged by other windows. |
| 67 | |
| 68 | <x> and <y> indicates the lower-left corner of the region to copy and |
| 69 | <width> and <height> indicate the size in pixels. Coordinate (0,0) |
| 70 | corresponds to the lower-left pixel of the window, like glReadPixels. |
Brian Paul | dd18a4f | 2000-06-23 17:34:47 +0000 | [diff] [blame] | 71 | |
Brian Paul | 7b2c0f9 | 2000-06-09 00:22:02 +0000 | [diff] [blame] | 72 | GLX Protocol |
| 73 | |
| 74 | None at this time. The extension is implemented in terms of ordinary |
| 75 | Xlib protocol inside of Mesa. |
| 76 | |
| 77 | Errors |
| 78 | |
| 79 | None. |
| 80 | |
| 81 | New State |
| 82 | |
| 83 | None. |
| 84 | |
| 85 | Revision History |
| 86 | |
| 87 | 8 June 2000 - initial specification |
| 88 | |