summaryrefslogtreecommitdiff
path: root/src/mesa/main/clear.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-12-30 09:25:24 -0700
committerBrian Paul <brianp@vmware.com>2009-12-30 09:30:24 -0700
commit2b5ece5746585fd1b6ffd4768763dfc5709699ab (patch)
tree98cc1cc6327b238f68448b8d3d128e87a5a4115b /src/mesa/main/clear.h
parent12039aa7a9e9e7c320e695b2f611b6559925178c (diff)
mesa: implement GL3 glClearBuffer() functions
These functions clear color/depth/stencil buffers with a value that's passed to the function, rather than the context clear values. For now these functions are implemented in terms of the existing ctx->Driver.Clear() hook. In the future when we have non-normalized integer and unsigned integer color buffer formats we'll need new driver hook(s) to pass int and uint clear values to the driver. Note: these functions are not hooked into the dispatch table at this time.
Diffstat (limited to 'src/mesa/main/clear.h')
-rw-r--r--src/mesa/main/clear.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h
index 9a54ba14bc..4c78eeda48 100644
--- a/src/mesa/main/clear.h
+++ b/src/mesa/main/clear.h
@@ -41,4 +41,17 @@ extern void GLAPIENTRY
_mesa_Clear( GLbitfield mask );
+extern void GLAPIENTRY
+_mesa_ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value);
+
+extern void GLAPIENTRY
+_mesa_ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value);
+
+extern void GLAPIENTRY
+_mesa_ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value);
+
+extern void GLAPIENTRY
+_mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
+ GLfloat depth, GLint stencil);
+
#endif