rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / gl_PointCoord.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="gl_PointCoord">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2011</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>gl_PointCoord</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>gl_PointCoord</refname>\r
17 <refpurpose>contains the coordinate of a fragment within a point</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>Declaration</title>\r
20 <funcsynopsis>\r
21 <function>in vec2 gl_PointCoord;</function>\r
22 </funcsynopsis>\r
23 </refsynopsisdiv>\r
24 <refsect1 id="description"><title>Description</title>\r
25 <para>\r
26 <function>gl_PointCoord</function> is a fragment language input variable that contains\r
27 the two-dimensional coordinates indicating where within a point primitive the current\r
28 fragment is located. If the current primitive is not a point, then values read\r
29 from <function>gl_PointCoord</function> are undefined.\r
30 </para>\r
31 <para>\r
32 <function>gl_PointCoord.s</function> ranges from 0.0 to 1.0 across the point horizontally\r
33 from left to right. If <constant>GL_POINT_SPRITE_COORD_ORIGIN</constant> is\r
34 <constant>GL_LOWER_LEFT</constant>, <function>gl_PointCoord.t</function> varies\r
35 from 0.0 to 1.0 vertically from bottom to top. Otherwise, if <constant>GL_POINT_SPRITE_COORD_ORIGIN</constant>\r
36 is <constant>GL_UPPER_LEFT</constant> then <function>gl_PointCoord.t</function> varies\r
37 from 0.0 to 1.0 vertically from top to bottom. The default value of <constant>GL_POINT_SPRITE_COORD_ORIGIN</constant>\r
38 is <constant>GL_UPPER_LEFT</constant>.\r
39 </para>\r
40 </refsect1>\r
41 <refsect1 id="versions"><title>Version Support</title>\r
42 <informaltable frame="topbot">\r
43 <tgroup cols="3" align="left">\r
44 <colspec colwidth="1.1*" />\r
45 <colspec colwidth="1*" align="center" />\r
46 <colspec colwidth="1*" align="center" />\r
47 <colspec colwidth="1*" align="center" />\r
48 <colspec colwidth="1*" align="center" />\r
49 <colspec colwidth="1*" align="center" />\r
50 <colspec colwidth="1*" align="center" />\r
51 <colspec colwidth="1*" align="center" />\r
52 <colspec colwidth="1*" align="center" />\r
53 <thead>\r
54 <row>\r
55 <entry rowsep="1" align="left"><emphasis role="bold">\r
56 Variable\r
57 </emphasis></entry>\r
58 <entry rowsep="1" align="left"><emphasis role="bold">\r
59 Version 1.10\r
60 </emphasis></entry>\r
61 <entry rowsep="1" align="left"><emphasis role="bold">\r
62 Version 1.20\r
63 </emphasis></entry>\r
64 <entry rowsep="1" align="left"><emphasis role="bold">\r
65 Version 1.30\r
66 </emphasis></entry>\r
67 <entry rowsep="1" align="left"><emphasis role="bold">\r
68 Version 1.40\r
69 </emphasis></entry>\r
70 <entry rowsep="1" align="left"><emphasis role="bold">\r
71 Version 1.50\r
72 </emphasis></entry>\r
73 <entry rowsep="1" align="left"><emphasis role="bold">\r
74 Version 3.30\r
75 </emphasis></entry>\r
76 <entry rowsep="1" align="left"><emphasis role="bold">\r
77 Version 4.00\r
78 </emphasis></entry>\r
79 <entry rowsep="1" align="left"><emphasis role="bold">\r
80 Version 4.10\r
81 </emphasis></entry>\r
82 </row>\r
83 <row>\r
84 <entry>\r
85 gl_PointCoord\r
86 </entry>\r
87 <entry>\r
88 <emphasis>Y</emphasis>\r
89 </entry>\r
90 <entry>\r
91 <emphasis>Y</emphasis>\r
92 </entry>\r
93 <entry>\r
94 <emphasis>Y</emphasis>\r
95 </entry>\r
96 <entry>\r
97 <emphasis>Y</emphasis>\r
98 </entry>\r
99 <entry>\r
100 <emphasis>Y</emphasis>\r
101 </entry>\r
102 <entry>\r
103 <emphasis>Y</emphasis>\r
104 </entry>\r
105 <entry>\r
106 <emphasis>Y</emphasis>\r
107 </entry>\r
108 <entry>\r
109 <emphasis>Y</emphasis>\r
110 </entry>\r
111 </row>\r
112 </thead>\r
113 </tgroup>\r
114 </informaltable>\r
115 </refsect1>\r
116 <refsect1 id="seealso"><title>See Also</title>\r
117 <para>\r
118 <citerefentry><refentrytitle>gl_FragCoord</refentrytitle></citerefentry>,\r
119 <citerefentry><refentrytitle>gl_FragDepth</refentrytitle></citerefentry>\r
120 </para>\r
121 </refsect1>\r
122 <refsect1 id="Copyright"><title>Copyright</title>\r
123 <para>\r
124 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r
125 This material may be distributed subject to the terms and conditions set forth in \r
126 the Open Publication License, v 1.0, 8 June 1999.\r
127 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
128 </para>\r
129 </refsect1>\r
130</refentry>\r