1Name 2 3 MESA_resize_buffers 4 5Name Strings 6 7 GL_MESA_resize_buffers 8 9Contact 10 11 Brian Paul, brianp 'at' mesa3d.org 12 13Status 14 15 Shipping (since Mesa version 2.2) 16 17Version 18 19 $Date$ $Revision$ 20 Mesa Id: MESA_resize_buffers.spec,v 1.1 1999/07/20 00:30:41 brianp Exp 21 22Number 23 24 196 25 26Dependencies 27 28 Mesa 2.2 or later is required. 29 30Overview 31 32 Mesa is often used as a client library with no integration with 33 the computer's window system (an X server, for example). And since 34 Mesa does not have an event loop nor window system callbacks, it 35 cannot properly respond to window system events. In particular, 36 Mesa cannot automatically detect when a window has been resized. 37 38 Mesa's glViewport command queries the current window size and updates 39 its internal data structors accordingly. This normally works fine 40 since most applications call glViewport in responce to window size 41 changes. 42 43 In some situations, however, the application may not call glViewport 44 when a window size changes but would still like Mesa to adjust to 45 the new window size. This extension exports a new function to solve 46 this problem. 47 48New Procedures and Functions 49 50 void glResizeBuffersMESA( void ) 51 52New Tokens 53 54 none 55 56Additions to the OpenGL Specification (no particular section) 57 58 The glResizeBuffersMESA command may be called when the client 59 determines that a window has been resized. Calling 60 glResizeBuffersMESA causes Mesa to query the current window size 61 and adjust its internal data structures. This may include 62 reallocating depth, stencil, alpha and accumulation buffers. 63 64Additions to the AGL/GLX/WGL Specifications 65 66 None 67 68Errors 69 70 INVALID_OPERATION is generated if ResizeBuffersMESA is called betweeen 71 Begin and End. 72 73New State 74 75 None. 76 77New Implementation Dependent State 78 79 None. 80 81Revision History 82 83 * Revision 1.0 - Initial specification 84