blob: 90b8f957b9f3c2676557954134fdcc3a9e71bd8a [file] [log] [blame]
Keith Whitwell6dc85572003-07-17 13:43:59 +00001/**
2 * \file rastpos.h
3 * Raster position operations.
4 */
jtgafb833d1999-08-19 00:55:39 +00005
6/*
7 * Mesa 3-D graphics library
Gareth Hughes22144ab2001-03-12 00:48:37 +00008 *
Brian Paul23d8ef32002-05-27 17:03:08 +00009 * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
Gareth Hughes22144ab2001-03-12 00:48:37 +000010 *
jtgafb833d1999-08-19 00:55:39 +000011 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
Gareth Hughes22144ab2001-03-12 00:48:37 +000017 *
jtgafb833d1999-08-19 00:55:39 +000018 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
Gareth Hughes22144ab2001-03-12 00:48:37 +000020 *
jtgafb833d1999-08-19 00:55:39 +000021 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
Kenneth Graunke3d8d5b22013-04-21 13:46:48 -070024 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 * OTHER DEALINGS IN THE SOFTWARE.
jtgafb833d1999-08-19 00:55:39 +000028 */
29
30
jtgafb833d1999-08-19 00:55:39 +000031#ifndef RASTPOS_H
32#define RASTPOS_H
33
34
Brian Paul775049b2015-02-26 13:03:05 -070035#include "glheader.h"
36
jtgafb833d1999-08-19 00:55:39 +000037
Vinson Leebab188d2010-11-20 21:14:06 -080038struct _glapi_table;
39struct gl_context;
jtgafb833d1999-08-19 00:55:39 +000040
Keith Whitwell6dc85572003-07-17 13:43:59 +000041extern void
Kristian Høgsbergf9995b32010-10-12 12:26:10 -040042_mesa_init_rastpos(struct gl_context *ctx);
Keith Whitwell6dc85572003-07-17 13:43:59 +000043
Brian Paul614a7432015-10-21 13:39:15 -060044void
45_mesa_RasterPos(struct gl_context *ctx, const GLfloat vObj[4]);
46
Paul Berryf7fa9462012-10-19 09:47:11 -070047void GLAPIENTRY
48_mesa_RasterPos2d(GLdouble x, GLdouble y);
49void GLAPIENTRY
50_mesa_RasterPos2f(GLfloat x, GLfloat y);
51void GLAPIENTRY
52_mesa_RasterPos2i(GLint x, GLint y);
53void GLAPIENTRY
54_mesa_RasterPos2s(GLshort x, GLshort y);
55void GLAPIENTRY
56_mesa_RasterPos3d(GLdouble x, GLdouble y, GLdouble z);
57void GLAPIENTRY
58_mesa_RasterPos3f(GLfloat x, GLfloat y, GLfloat z);
59void GLAPIENTRY
60_mesa_RasterPos3i(GLint x, GLint y, GLint z);
61void GLAPIENTRY
62_mesa_RasterPos3s(GLshort x, GLshort y, GLshort z);
63void GLAPIENTRY
64_mesa_RasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
65void GLAPIENTRY
66_mesa_RasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
67void GLAPIENTRY
68_mesa_RasterPos4i(GLint x, GLint y, GLint z, GLint w);
69void GLAPIENTRY
70_mesa_RasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w);
71void GLAPIENTRY
72_mesa_RasterPos2dv(const GLdouble *v);
73void GLAPIENTRY
74_mesa_RasterPos2fv(const GLfloat *v);
75void GLAPIENTRY
76_mesa_RasterPos2iv(const GLint *v);
77void GLAPIENTRY
78_mesa_RasterPos2sv(const GLshort *v);
79void GLAPIENTRY
80_mesa_RasterPos3dv(const GLdouble *v);
81void GLAPIENTRY
82_mesa_RasterPos3fv(const GLfloat *v);
83void GLAPIENTRY
84_mesa_RasterPos3iv(const GLint *v);
85void GLAPIENTRY
86_mesa_RasterPos3sv(const GLshort *v);
87void GLAPIENTRY
88_mesa_RasterPos4dv(const GLdouble *v);
89void GLAPIENTRY
90_mesa_RasterPos4fv(const GLfloat *v);
91void GLAPIENTRY
92_mesa_RasterPos4iv(const GLint *v);
93void GLAPIENTRY
94_mesa_RasterPos4sv(const GLshort *v);
95void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -080096_mesa_WindowPos2d(GLdouble x, GLdouble y);
Paul Berryf7fa9462012-10-19 09:47:11 -070097void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -080098_mesa_WindowPos2f(GLfloat x, GLfloat y);
Paul Berryf7fa9462012-10-19 09:47:11 -070099void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800100_mesa_WindowPos2i(GLint x, GLint y);
Paul Berryf7fa9462012-10-19 09:47:11 -0700101void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800102_mesa_WindowPos2s(GLshort x, GLshort y);
Paul Berryf7fa9462012-10-19 09:47:11 -0700103void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800104_mesa_WindowPos3d(GLdouble x, GLdouble y, GLdouble z);
Paul Berryf7fa9462012-10-19 09:47:11 -0700105void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800106_mesa_WindowPos3f(GLfloat x, GLfloat y, GLfloat z);
Paul Berryf7fa9462012-10-19 09:47:11 -0700107void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800108_mesa_WindowPos3i(GLint x, GLint y, GLint z);
Paul Berryf7fa9462012-10-19 09:47:11 -0700109void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800110_mesa_WindowPos3s(GLshort x, GLshort y, GLshort z);
Paul Berryf7fa9462012-10-19 09:47:11 -0700111void GLAPIENTRY
112_mesa_WindowPos4dMESA(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
113void GLAPIENTRY
114_mesa_WindowPos4fMESA(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
115void GLAPIENTRY
116_mesa_WindowPos4iMESA(GLint x, GLint y, GLint z, GLint w);
117void GLAPIENTRY
118_mesa_WindowPos4sMESA(GLshort x, GLshort y, GLshort z, GLshort w);
119void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800120_mesa_WindowPos2dv(const GLdouble *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700121void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800122_mesa_WindowPos2fv(const GLfloat *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700123void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800124_mesa_WindowPos2iv(const GLint *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700125void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800126_mesa_WindowPos2sv(const GLshort *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700127void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800128_mesa_WindowPos3dv(const GLdouble *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700129void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800130_mesa_WindowPos3fv(const GLfloat *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700131void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800132_mesa_WindowPos3iv(const GLint *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700133void GLAPIENTRY
Paul Berry1a1db172012-11-06 08:57:59 -0800134_mesa_WindowPos3sv(const GLshort *v);
Paul Berryf7fa9462012-10-19 09:47:11 -0700135void GLAPIENTRY
136_mesa_WindowPos4dvMESA(const GLdouble *v);
137void GLAPIENTRY
138_mesa_WindowPos4fvMESA(const GLfloat *v);
139void GLAPIENTRY
140_mesa_WindowPos4ivMESA(const GLint *v);
141void GLAPIENTRY
142_mesa_WindowPos4svMESA(const GLshort *v);
143
144
Keith Whitwell6dc85572003-07-17 13:43:59 +0000145/*@}*/
Brian Paul1b258982001-06-18 17:26:08 +0000146
Chia-I Wud2508002009-09-08 10:05:36 +0800147#endif /* RASTPOS_H */