summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-03-16 00:57:14 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-03-16 00:57:14 +0000
commitbc6b60c4ff81c4d677251e4c7262c0df26cda6a6 (patch)
treeec735f716a791fc0cf89ad3a769ee37caa0e28fb /src
parent93c132a058eb44e824615f10cf53f30f2326d807 (diff)
buffer resize changes
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/dd.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index b96a132b42..572bd054f3 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -1,4 +1,4 @@
-/* $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
@@ -97,9 +97,18 @@ struct dd_function_table {
* 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 );
@@ -164,9 +173,6 @@ struct dd_function_table {
/* This is called by glBitmap. Works the same as DrawPixels, above.
*/
- void (*ResizeBuffersMESA)( GLcontext *ctx );
-
-
/***
*** Texture image functions:
***/