1cdc920a0Smrg/* 2cdc920a0Smrg * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. 3cdc920a0Smrg * (C) Copyright IBM Corporation 2004 4cdc920a0Smrg * All Rights Reserved. 5cdc920a0Smrg * 6cdc920a0Smrg * Permission is hereby granted, free of charge, to any person obtaining a 7cdc920a0Smrg * copy of this software and associated documentation files (the "Software"), 8cdc920a0Smrg * to deal in the Software without restriction, including without limitation 9cdc920a0Smrg * the rights to use, copy, modify, merge, publish, distribute, sub license, 10cdc920a0Smrg * and/or sell copies of the Software, and to permit persons to whom the 11cdc920a0Smrg * Software is furnished to do so, subject to the following conditions: 12cdc920a0Smrg * 13cdc920a0Smrg * The above copyright notice and this permission notice (including the next 14cdc920a0Smrg * paragraph) shall be included in all copies or substantial portions of the 15cdc920a0Smrg * Software. 16cdc920a0Smrg * 17cdc920a0Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18cdc920a0Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19cdc920a0Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 20cdc920a0Smrg * PRECISION INSIGHT, IBM, 21cdc920a0Smrg * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22cdc920a0Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 23cdc920a0Smrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24cdc920a0Smrg * SOFTWARE. 25cdc920a0Smrg */ 26cdc920a0Smrg 27cdc920a0Smrg#include <GL/gl.h> 28cdc920a0Smrg#include "indirect.h" 29cdc920a0Smrg 30cdc920a0Smrgvoid 31af69d88dSmrg__indirect_glWindowPos2d(GLdouble x, GLdouble y) 32cdc920a0Smrg{ 33af69d88dSmrg __indirect_glWindowPos3f(x, y, 0.0); 34cdc920a0Smrg} 35cdc920a0Smrg 36cdc920a0Smrgvoid 37af69d88dSmrg__indirect_glWindowPos2i(GLint x, GLint y) 38cdc920a0Smrg{ 39af69d88dSmrg __indirect_glWindowPos3f(x, y, 0.0); 40cdc920a0Smrg} 41cdc920a0Smrg 42cdc920a0Smrgvoid 43af69d88dSmrg__indirect_glWindowPos2f(GLfloat x, GLfloat y) 44cdc920a0Smrg{ 45af69d88dSmrg __indirect_glWindowPos3f(x, y, 0.0); 46cdc920a0Smrg} 47cdc920a0Smrg 48cdc920a0Smrgvoid 49af69d88dSmrg__indirect_glWindowPos2s(GLshort x, GLshort y) 50cdc920a0Smrg{ 51af69d88dSmrg __indirect_glWindowPos3f(x, y, 0.0); 52cdc920a0Smrg} 53cdc920a0Smrg 54cdc920a0Smrgvoid 55af69d88dSmrg__indirect_glWindowPos2dv(const GLdouble * p) 56cdc920a0Smrg{ 57af69d88dSmrg __indirect_glWindowPos3f(p[0], p[1], 0.0); 58cdc920a0Smrg} 59cdc920a0Smrg 60cdc920a0Smrgvoid 61af69d88dSmrg__indirect_glWindowPos2fv(const GLfloat * p) 62cdc920a0Smrg{ 63af69d88dSmrg __indirect_glWindowPos3f(p[0], p[1], 0.0); 64cdc920a0Smrg} 65cdc920a0Smrg 66cdc920a0Smrgvoid 67af69d88dSmrg__indirect_glWindowPos2iv(const GLint * p) 68cdc920a0Smrg{ 69af69d88dSmrg __indirect_glWindowPos3f(p[0], p[1], 0.0); 70cdc920a0Smrg} 71cdc920a0Smrg 72cdc920a0Smrgvoid 73af69d88dSmrg__indirect_glWindowPos2sv(const GLshort * p) 74cdc920a0Smrg{ 75af69d88dSmrg __indirect_glWindowPos3f(p[0], p[1], 0.0); 76cdc920a0Smrg} 77cdc920a0Smrg 78cdc920a0Smrgvoid 79af69d88dSmrg__indirect_glWindowPos3d(GLdouble x, GLdouble y, GLdouble z) 80cdc920a0Smrg{ 81af69d88dSmrg __indirect_glWindowPos3f(x, y, z); 82cdc920a0Smrg} 83cdc920a0Smrg 84cdc920a0Smrgvoid 85af69d88dSmrg__indirect_glWindowPos3i(GLint x, GLint y, GLint z) 86cdc920a0Smrg{ 87af69d88dSmrg __indirect_glWindowPos3f(x, y, z); 88cdc920a0Smrg} 89cdc920a0Smrg 90cdc920a0Smrgvoid 91af69d88dSmrg__indirect_glWindowPos3s(GLshort x, GLshort y, GLshort z) 92cdc920a0Smrg{ 93af69d88dSmrg __indirect_glWindowPos3f(x, y, z); 94cdc920a0Smrg} 95cdc920a0Smrg 96cdc920a0Smrgvoid 97af69d88dSmrg__indirect_glWindowPos3dv(const GLdouble * p) 98cdc920a0Smrg{ 99af69d88dSmrg __indirect_glWindowPos3f(p[0], p[1], p[2]); 100cdc920a0Smrg} 101cdc920a0Smrg 102cdc920a0Smrgvoid 103af69d88dSmrg__indirect_glWindowPos3iv(const GLint * p) 104cdc920a0Smrg{ 105af69d88dSmrg __indirect_glWindowPos3f(p[0], p[1], p[2]); 106cdc920a0Smrg} 107cdc920a0Smrg 108cdc920a0Smrgvoid 109af69d88dSmrg__indirect_glWindowPos3sv(const GLshort * p) 110cdc920a0Smrg{ 111af69d88dSmrg __indirect_glWindowPos3f(p[0], p[1], p[2]); 112cdc920a0Smrg} 113