1c1f859d4Smrg/* 2c1f859d4Smrg * Mesa 3-D graphics library 3c1f859d4Smrg * 4c1f859d4Smrg * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. 5c1f859d4Smrg * 6c1f859d4Smrg * Permission is hereby granted, free of charge, to any person obtaining a 7c1f859d4Smrg * copy of this software and associated documentation files (the "Software"), 8c1f859d4Smrg * to deal in the Software without restriction, including without limitation 9c1f859d4Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10c1f859d4Smrg * and/or sell copies of the Software, and to permit persons to whom the 11c1f859d4Smrg * Software is furnished to do so, subject to the following conditions: 12c1f859d4Smrg * 13c1f859d4Smrg * The above copyright notice and this permission notice shall be included 14c1f859d4Smrg * in all copies or substantial portions of the Software. 15c1f859d4Smrg * 16c1f859d4Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17c1f859d4Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18c1f859d4Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE. 23c1f859d4Smrg */ 24c1f859d4Smrg 25c1f859d4Smrg 26c1f859d4Smrg#ifndef SCISSOR_H 27c1f859d4Smrg#define SCISSOR_H 28c1f859d4Smrg 29c1f859d4Smrg 303464ebd5Sriastradh#include "glheader.h" 31c1f859d4Smrg 323464ebd5Sriastradhstruct gl_context; 33c1f859d4Smrg 3401e04c3fSmrgvoid GLAPIENTRY 3501e04c3fSmrg_mesa_Scissor_no_error(GLint x, GLint y, GLsizei width, GLsizei height); 3601e04c3fSmrg 37c1f859d4Smrgextern void GLAPIENTRY 38c1f859d4Smrg_mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height ); 39c1f859d4Smrg 4001e04c3fSmrgvoid GLAPIENTRY 4101e04c3fSmrg_mesa_ScissorArrayv_no_error(GLuint first, GLsizei count, const GLint * v); 4201e04c3fSmrg 43af69d88dSmrgextern void GLAPIENTRY 44af69d88dSmrg_mesa_ScissorArrayv(GLuint first, GLsizei count, const GLint * v); 45af69d88dSmrg 4601e04c3fSmrgvoid GLAPIENTRY 4701e04c3fSmrg_mesa_ScissorIndexed_no_error(GLuint index, GLint left, GLint bottom, 4801e04c3fSmrg GLsizei width, GLsizei height); 4901e04c3fSmrg 50af69d88dSmrgextern void GLAPIENTRY 51af69d88dSmrg_mesa_ScissorIndexed(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); 52af69d88dSmrg 5301e04c3fSmrgvoid GLAPIENTRY 5401e04c3fSmrg_mesa_ScissorIndexedv_no_error(GLuint index, const GLint * v); 5501e04c3fSmrg 56af69d88dSmrgextern void GLAPIENTRY 57af69d88dSmrg_mesa_ScissorIndexedv(GLuint index, const GLint * v); 58c1f859d4Smrg 5901e04c3fSmrgextern void GLAPIENTRY 6001e04c3fSmrg_mesa_WindowRectanglesEXT(GLenum mode, GLsizei count, const GLint *box); 6101e04c3fSmrg 62c1f859d4Smrgextern void 63af69d88dSmrg_mesa_set_scissor(struct gl_context *ctx, unsigned idx, 64c1f859d4Smrg GLint x, GLint y, GLsizei width, GLsizei height); 65c1f859d4Smrg 66c1f859d4Smrg 67c1f859d4Smrgextern void 683464ebd5Sriastradh_mesa_init_scissor(struct gl_context *ctx); 69c1f859d4Smrg 70c1f859d4Smrg 71c1f859d4Smrg#endif 72