Path: blob/21.2-virgl/src/glx/indirect_window_pos.c
4558 views
/*1* Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.2* (C) Copyright IBM Corporation 20043* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the "Software"),7* to deal in the Software without restriction, including without limitation8* the rights to use, copy, modify, merge, publish, distribute, sub license,9* and/or sell copies of the Software, and to permit persons to whom the10* Software is furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice (including the next13* paragraph) shall be included in all copies or substantial portions of the14* Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR17* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,18* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL19* PRECISION INSIGHT, IBM,20* AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,21* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF22* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE23* SOFTWARE.24*/2526#include <GL/gl.h>27#include "indirect.h"2829void30__indirect_glWindowPos2d(GLdouble x, GLdouble y)31{32__indirect_glWindowPos3f(x, y, 0.0);33}3435void36__indirect_glWindowPos2i(GLint x, GLint y)37{38__indirect_glWindowPos3f(x, y, 0.0);39}4041void42__indirect_glWindowPos2f(GLfloat x, GLfloat y)43{44__indirect_glWindowPos3f(x, y, 0.0);45}4647void48__indirect_glWindowPos2s(GLshort x, GLshort y)49{50__indirect_glWindowPos3f(x, y, 0.0);51}5253void54__indirect_glWindowPos2dv(const GLdouble * p)55{56__indirect_glWindowPos3f(p[0], p[1], 0.0);57}5859void60__indirect_glWindowPos2fv(const GLfloat * p)61{62__indirect_glWindowPos3f(p[0], p[1], 0.0);63}6465void66__indirect_glWindowPos2iv(const GLint * p)67{68__indirect_glWindowPos3f(p[0], p[1], 0.0);69}7071void72__indirect_glWindowPos2sv(const GLshort * p)73{74__indirect_glWindowPos3f(p[0], p[1], 0.0);75}7677void78__indirect_glWindowPos3d(GLdouble x, GLdouble y, GLdouble z)79{80__indirect_glWindowPos3f(x, y, z);81}8283void84__indirect_glWindowPos3i(GLint x, GLint y, GLint z)85{86__indirect_glWindowPos3f(x, y, z);87}8889void90__indirect_glWindowPos3s(GLshort x, GLshort y, GLshort z)91{92__indirect_glWindowPos3f(x, y, z);93}9495void96__indirect_glWindowPos3dv(const GLdouble * p)97{98__indirect_glWindowPos3f(p[0], p[1], p[2]);99}100101void102__indirect_glWindowPos3iv(const GLint * p)103{104__indirect_glWindowPos3f(p[0], p[1], p[2]);105}106107void108__indirect_glWindowPos3sv(const GLshort * p)109{110__indirect_glWindowPos3f(p[0], p[1], p[2]);111}112113114