14a49301eSmrg/* 24a49301eSmrg * Mesa 3-D graphics library 34a49301eSmrg * 44a49301eSmrg * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. 54a49301eSmrg * Copyright (C) 2009 VMware, Inc. All Rights Reserved. 64a49301eSmrg * 74a49301eSmrg * Permission is hereby granted, free of charge, to any person obtaining a 84a49301eSmrg * copy of this software and associated documentation files (the "Software"), 94a49301eSmrg * to deal in the Software without restriction, including without limitation 104a49301eSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 114a49301eSmrg * and/or sell copies of the Software, and to permit persons to whom the 124a49301eSmrg * Software is furnished to do so, subject to the following conditions: 134a49301eSmrg * 144a49301eSmrg * The above copyright notice and this permission notice shall be included 154a49301eSmrg * in all copies or substantial portions of the Software. 164a49301eSmrg * 174a49301eSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 184a49301eSmrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 194a49301eSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 21af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 22af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE. 244a49301eSmrg */ 254a49301eSmrg 264a49301eSmrg 274a49301eSmrg#ifndef VIEWPORT_H 284a49301eSmrg#define VIEWPORT_H 294a49301eSmrg 303464ebd5Sriastradh#include "glheader.h" 313464ebd5Sriastradh 323464ebd5Sriastradhstruct gl_context; 334a49301eSmrg 3401e04c3fSmrgvoid GLAPIENTRY 3501e04c3fSmrg_mesa_Viewport_no_error(GLint x, GLint y, GLsizei width, GLsizei height); 3601e04c3fSmrg 374a49301eSmrgextern void GLAPIENTRY 384a49301eSmrg_mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height); 394a49301eSmrg 4001e04c3fSmrgvoid GLAPIENTRY 4101e04c3fSmrg_mesa_ViewportArrayv_no_error(GLuint first, GLsizei count, const GLfloat * v); 4201e04c3fSmrg 43af69d88dSmrgextern void GLAPIENTRY 44af69d88dSmrg_mesa_ViewportArrayv(GLuint first, GLsizei count, const GLfloat * v); 45af69d88dSmrg 4601e04c3fSmrgvoid GLAPIENTRY 4701e04c3fSmrg_mesa_ViewportIndexedf_no_error(GLuint index, GLfloat x, GLfloat y, GLfloat w, 4801e04c3fSmrg GLfloat h); 4901e04c3fSmrg 50af69d88dSmrgextern void GLAPIENTRY 51af69d88dSmrg_mesa_ViewportIndexedf(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); 52af69d88dSmrg 5301e04c3fSmrgvoid GLAPIENTRY 5401e04c3fSmrg_mesa_ViewportIndexedfv_no_error(GLuint index, const GLfloat * v); 5501e04c3fSmrg 56af69d88dSmrgextern void GLAPIENTRY 57af69d88dSmrg_mesa_ViewportIndexedfv(GLuint index, const GLfloat * v); 584a49301eSmrg 594a49301eSmrgextern void 60af69d88dSmrg_mesa_set_viewport(struct gl_context *ctx, unsigned idx, GLfloat x, GLfloat y, 61af69d88dSmrg GLfloat width, GLfloat height); 624a49301eSmrg 634a49301eSmrg 644a49301eSmrgextern void GLAPIENTRY 654a49301eSmrg_mesa_DepthRange(GLclampd nearval, GLclampd farval); 664a49301eSmrg 673464ebd5Sriastradhextern void GLAPIENTRY 683464ebd5Sriastradh_mesa_DepthRangef(GLclampf nearval, GLclampf farval); 693464ebd5Sriastradh 7001e04c3fSmrgvoid GLAPIENTRY 7101e04c3fSmrg_mesa_DepthRangeArrayv_no_error(GLuint first, GLsizei count, 7201e04c3fSmrg const GLclampd * v); 7301e04c3fSmrg 74af69d88dSmrgextern void GLAPIENTRY 75af69d88dSmrg_mesa_DepthRangeArrayv(GLuint first, GLsizei count, const GLclampd * v); 76af69d88dSmrg 7701e04c3fSmrgextern void GLAPIENTRY 7801e04c3fSmrg_mesa_DepthRangeArrayfvOES(GLuint first, GLsizei count, const GLfloat * v); 7901e04c3fSmrg 8001e04c3fSmrgvoid GLAPIENTRY 8101e04c3fSmrg_mesa_DepthRangeIndexed_no_error(GLuint index, GLclampd n, GLclampd f); 8201e04c3fSmrg 83af69d88dSmrgextern void GLAPIENTRY 84af69d88dSmrg_mesa_DepthRangeIndexed(GLuint index, GLclampd n, GLclampd f); 85af69d88dSmrg 8601e04c3fSmrgextern void GLAPIENTRY 8701e04c3fSmrg_mesa_DepthRangeIndexedfOES(GLuint index, GLfloat n, GLfloat f); 8801e04c3fSmrg 89af69d88dSmrgextern void 90af69d88dSmrg_mesa_set_depth_range(struct gl_context *ctx, unsigned idx, 91af69d88dSmrg GLclampd nearval, GLclampd farval); 924a49301eSmrg 934a49301eSmrgextern void 943464ebd5Sriastradh_mesa_init_viewport(struct gl_context *ctx); 954a49301eSmrg 964a49301eSmrg 9701e04c3fSmrgvoid GLAPIENTRY 9801e04c3fSmrg_mesa_ClipControl_no_error(GLenum origin, GLenum depth); 994a49301eSmrg 10001e04c3fSmrgextern void GLAPIENTRY 10101e04c3fSmrg_mesa_ClipControl(GLenum origin, GLenum depth); 10201e04c3fSmrg 10301e04c3fSmrgextern void 10401e04c3fSmrg_mesa_get_viewport_xform(struct gl_context *ctx, unsigned i, 10501e04c3fSmrg float scale[3], float translate[3]); 10601e04c3fSmrg 10701e04c3fSmrgextern void GLAPIENTRY 10801e04c3fSmrg_mesa_SubpixelPrecisionBiasNV_no_error(GLuint xbits, GLuint ybits); 10901e04c3fSmrg 11001e04c3fSmrgextern void GLAPIENTRY 11101e04c3fSmrg_mesa_SubpixelPrecisionBiasNV(GLuint xbits, GLuint ybits); 1124a49301eSmrg 1137ec681f3Smrgextern void GLAPIENTRY 1147ec681f3Smrg_mesa_ViewportSwizzleNV_no_error(GLuint index, 1157ec681f3Smrg GLenum swizzlex, GLenum swizzley, 1167ec681f3Smrg GLenum swizzlez, GLenum swizzlew); 1177ec681f3Smrg 1187ec681f3Smrgextern void GLAPIENTRY 1197ec681f3Smrg_mesa_ViewportSwizzleNV(GLuint index, 1207ec681f3Smrg GLenum swizzlex, GLenum swizzley, 1217ec681f3Smrg GLenum swizzlez, GLenum swizzlew); 1227ec681f3Smrg 1234a49301eSmrg#endif 124