-/* $Id: dd.h,v 1.66 2002/02/13 00:53:19 keithw Exp $ */
+/* $Id: dd.h,v 1.67 2002/03/16 00:57:14 brianp Exp $ */
/*
* Mesa 3-D graphics library
* GL_NONE - disable buffer write in device driver.
*/
- void (*GetBufferSize)( GLcontext *ctx, GLuint *width, GLuint *height );
+ void (*GetBufferSize)( GLframebuffer *buffer,
+ GLuint *width, GLuint *height );
/*
- * Returns the width and height of the current color buffer.
+ * Returns the width and height of the named buffer/window.
+ * Mesa uses this to determine when the driver's window size has changed.
+ */
+
+ void (*ResizeBuffers)( GLframebuffer *buffer );
+ /*
+ * Resize the driver's depth/stencil/accum/back buffers to match the
+ * size given in the GLframebuffer struct. This is typically called
+ * when Mesa detects that a window size has changed.
*/
void (*Finish)( GLcontext *ctx );
/* This is called by glBitmap. Works the same as DrawPixels, above.
*/
- void (*ResizeBuffersMESA)( GLcontext *ctx );
-
-
/***
*** Texture image functions:
***/