mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-11 19:24:26 +08:00
45efcc44c7
Cherry-picked from gallium-0.1 Conflicts: src/glu/sgi/libnurbs/interface/bezierEval.h src/glu/sgi/libnurbs/interface/bezierPatch.h src/glu/sgi/libnurbs/interface/bezierPatchMesh.h src/glu/sgi/libnurbs/internals/dataTransform.h src/glu/sgi/libnurbs/internals/displaymode.h src/glu/sgi/libnurbs/internals/sorter.h src/glu/sgi/libnurbs/nurbtess/definitions.h src/glu/sgi/libnurbs/nurbtess/directedLine.h src/glu/sgi/libnurbs/nurbtess/gridWrap.h src/glu/sgi/libnurbs/nurbtess/monoChain.h src/glu/sgi/libnurbs/nurbtess/monoPolyPart.h src/glu/sgi/libnurbs/nurbtess/monoTriangulation.h src/glu/sgi/libnurbs/nurbtess/partitionX.h src/glu/sgi/libnurbs/nurbtess/partitionY.h src/glu/sgi/libnurbs/nurbtess/polyDBG.h src/glu/sgi/libnurbs/nurbtess/polyUtil.h src/glu/sgi/libnurbs/nurbtess/primitiveStream.h src/glu/sgi/libnurbs/nurbtess/quicksort.h src/glu/sgi/libnurbs/nurbtess/rectBlock.h src/glu/sgi/libnurbs/nurbtess/sampleComp.h src/glu/sgi/libnurbs/nurbtess/sampleCompBot.h src/glu/sgi/libnurbs/nurbtess/sampleCompRight.h src/glu/sgi/libnurbs/nurbtess/sampleCompTop.h src/glu/sgi/libnurbs/nurbtess/sampleMonoPoly.h src/glu/sgi/libnurbs/nurbtess/sampledLine.h src/glu/sgi/libnurbs/nurbtess/searchTree.h src/glu/sgi/libnurbs/nurbtess/zlassert.h src/glu/sgi/libutil/error.c src/glu/sgi/libutil/glue.c src/glu/sgi/libutil/gluint.h src/glu/sgi/libutil/project.c src/glu/sgi/libutil/registry.c src/glx/x11/glxclient.h src/glx/x11/glxext.c src/mesa/drivers/dri/ffb/ffb_dd.h src/mesa/drivers/dri/ffb/ffb_points.h src/mesa/drivers/dri/gamma/gamma_context.h src/mesa/drivers/dri/gamma/gamma_macros.h src/mesa/drivers/dri/i810/i810context.h src/mesa/drivers/dri/r128/r128_dd.h src/mesa/drivers/dri/tdfx/tdfx_dd.h
82 lines
1.8 KiB
Ruby
82 lines
1.8 KiB
Ruby
Name
|
|
|
|
MESA_resize_buffers
|
|
|
|
Name Strings
|
|
|
|
GL_MESA_resize_buffers
|
|
|
|
Contact
|
|
|
|
Brian Paul (brian.paul 'at' tungstengraphics.com)
|
|
|
|
Status
|
|
|
|
Shipping (since Mesa version 2.2)
|
|
|
|
Version
|
|
|
|
|
|
Number
|
|
|
|
196
|
|
|
|
Dependencies
|
|
|
|
Mesa 2.2 or later is required.
|
|
|
|
Overview
|
|
|
|
Mesa is often used as a client library with no integration with
|
|
the computer's window system (an X server, for example). And since
|
|
Mesa does not have an event loop nor window system callbacks, it
|
|
cannot properly respond to window system events. In particular,
|
|
Mesa cannot automatically detect when a window has been resized.
|
|
|
|
Mesa's glViewport command queries the current window size and updates
|
|
its internal data structors accordingly. This normally works fine
|
|
since most applications call glViewport in responce to window size
|
|
changes.
|
|
|
|
In some situations, however, the application may not call glViewport
|
|
when a window size changes but would still like Mesa to adjust to
|
|
the new window size. This extension exports a new function to solve
|
|
this problem.
|
|
|
|
New Procedures and Functions
|
|
|
|
void glResizeBuffersMESA( void )
|
|
|
|
New Tokens
|
|
|
|
none
|
|
|
|
Additions to the OpenGL Specification (no particular section)
|
|
|
|
The glResizeBuffersMESA command may be called when the client
|
|
determines that a window has been resized. Calling
|
|
glResizeBuffersMESA causes Mesa to query the current window size
|
|
and adjust its internal data structures. This may include
|
|
reallocating depth, stencil, alpha and accumulation buffers.
|
|
|
|
Additions to the AGL/GLX/WGL Specifications
|
|
|
|
None
|
|
|
|
Errors
|
|
|
|
INVALID_OPERATION is generated if ResizeBuffersMESA is called betweeen
|
|
Begin and End.
|
|
|
|
New State
|
|
|
|
None.
|
|
|
|
New Implementation Dependent State
|
|
|
|
None.
|
|
|
|
Revision History
|
|
|
|
* Revision 1.0 - Initial specification
|