summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/scissor.h
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <[email protected]>2013-11-12 12:58:40 -0700
committerIan Romanick <[email protected]>2014-01-20 11:32:00 -0800
commit0a7baa68a8559d7889c0b68adfcda53f4575ee98 (patch)
tree1de7c48b5a424a4dbcd695abe7d04339fcd64c89 /src/mesa/main/scissor.h
parent917db0bc3dfdec1536018d96aab261e485b8d872 (diff)
mesa: Add new scissor entry points for GL_ARB_viewport_array
v2 (idr): Use set_scissor_no_notify (and manually notify the driver) instead of calling _mesa_set_scissori. Refactory bodies of _mesa_ScissorIndexed and _mesa_ScissorIndexedv into a shared function. Perform parameter validation in the same order in all three functions. Pull MaxViewports comparison fix (in _mesa_ScissorArrayv) from the next patch to this patch. Signed-off-by: Courtney Goeltzenleuchter <[email protected]> Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/scissor.h')
-rw-r--r--src/mesa/main/scissor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/scissor.h b/src/mesa/main/scissor.h
index 5726a006134..5f9a9945a99 100644
--- a/src/mesa/main/scissor.h
+++ b/src/mesa/main/scissor.h
@@ -34,6 +34,14 @@ struct gl_context;
extern void GLAPIENTRY
_mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height );
+extern void GLAPIENTRY
+_mesa_ScissorArrayv(GLuint first, GLsizei count, const GLint * v);
+
+extern void GLAPIENTRY
+_mesa_ScissorIndexed(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
+
+extern void GLAPIENTRY
+_mesa_ScissorIndexedv(GLuint index, const GLint * v);
extern void
_mesa_set_scissor(struct gl_context *ctx, unsigned idx,