File: glVertex.3G.xml

package info (click to toggle)
pyopengl 2.0.1.08-5.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,484 kB
  • ctags: 9,036
  • sloc: pascal: 64,950; xml: 28,088; ansic: 20,696; python: 19,761; tcl: 668; makefile: 240; sh: 25
file content (28 lines) | stat: -rw-r--r-- 14,909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glVertex</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GL.xml" title="GL"/><link rel="previous" href="glTranslate.3G.xml" title="glTranslate"/><link rel="next" href="glVertexPointer.3G.xml" title="glVertexPointer"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glVertex</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glTranslate.3G.xml">Prev</a></td><th width="60%" align="center">GL</th><td width="20%" align="right"><a accesskey="n" href="glVertexPointer.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glVertex.3G"/><div class="titlepage"/><div class="refnamediv"><a name="glVertex.3G-name"/><h2>Name</h2><p>glVertex2d, glVertex2f, glVertex2i, glVertex2s, glVertex3d, glVertex3f, glVertex3i, glVertex3s, glVertex4d, glVertex4f, glVertex4i, glVertex4s, glVertex2dv, glVertex2fv, glVertex2iv, glVertex2sv, glVertex3dv, glVertex3fv, glVertex3iv, glVertex3sv, glVertex4dv, glVertex4fv, glVertex4iv, glVertex4sv &#8212; specify a vertex</p></div><div class="refsynopsisdiv"><a name="glVertex.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void<tt>glVertex2d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble<i><tt>x</tt></i>, GLdouble<i><tt>y</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex2f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLfloat<i><tt>x</tt></i>, GLfloat<i><tt>y</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex2i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint<i><tt>x</tt></i>, GLint<i><tt>y</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex2s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLshort<i><tt>x</tt></i>, GLshort<i><tt>y</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble<i><tt>x</tt></i>, GLdouble<i><tt>y</tt></i>, GLdouble<i><tt>z</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLfloat<i><tt>x</tt></i>, GLfloat<i><tt>y</tt></i>, GLfloat<i><tt>z</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint<i><tt>x</tt></i>, GLint<i><tt>y</tt></i>, GLint<i><tt>z</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLshort<i><tt>x</tt></i>, GLshort<i><tt>y</tt></i>, GLshort<i><tt>z</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble<i><tt>x</tt></i>, GLdouble<i><tt>y</tt></i>, GLdouble<i><tt>z</tt></i>, GLdouble<i><tt>w</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLfloat<i><tt>x</tt></i>, GLfloat<i><tt>y</tt></i>, GLfloat<i><tt>z</tt></i>, GLfloat<i><tt>w</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint<i><tt>x</tt></i>, GLint<i><tt>y</tt></i>, GLint<i><tt>z</tt></i>, GLint<i><tt>w</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLshort<i><tt>x</tt></i>, GLshort<i><tt>y</tt></i>, GLshort<i><tt>z</tt></i>, GLshort<i><tt>w</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glVertex.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glVertex2d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex2f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex2i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex2s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>, <i><tt>w</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>, <i><tt>w</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>, <i><tt>w</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>, <i><tt>w</tt></i>) &#8594;<tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glVertex.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>x</tt></i>, </span><span class="term"><i><tt>y</tt></i>, </span><span class="term"><i><tt>z</tt></i>, </span><span class="term"><i><tt>w</tt></i></span></dt><dd>
						Specify <i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>, and
						<i><tt>w</tt></i> coordinates of a vertex. Not all parameters are present in all forms of the
						command.
					</dd></dl></div></div><div class="refsynopsisdiv"><a name="glVertex.3G-c_spec-v"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void<tt>glVertex2dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLdouble*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex2fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLfloat*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex2iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLint*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex2sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLshort*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLdouble*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLfloat*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLint*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex3sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLshort*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLdouble*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLfloat*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLint*<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void<tt>glVertex4sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>constGLshort*<i><tt>v</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glVertex.3G-python_spec-v"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glVertex2dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex2fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex2iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex2sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex3sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glVertex4sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594;<tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glVertex.3G-parameters-v"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>v</tt></i></span></dt><dd>
						Specifies a pointer to an array of two, three, or four elements. The elements of a two-element array are
						<i><tt>x</tt></i> and <i><tt>y</tt></i>; of a three-element array, <i><tt>x</tt></i>,
						<i><tt>y</tt></i>, and <i><tt>z</tt></i>; and of a four-element array,
						<i><tt>x</tt></i>, <i><tt>y</tt></i>, <i><tt>z</tt></i>, and <i><tt>w</tt></i>.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glVertex.3G-description"/><h2>Description</h2><p>
			<tt>glVertex</tt> commands are used within <a href="glBegin.3G.xml"><tt>glBegin</tt></a>/<a href="glBegin.3G.xml"><tt>glEnd</tt></a> pairs to specify point, line, and
			polygon vertices. The current color, normal, and texture coordinates are associated with the vertex when <tt>glVertex</tt> is called.
		</p><p>
			When only <i><tt>x</tt></i> and <i><tt>y</tt></i> are specified, <i><tt>z</tt></i> defaults to 0
			and <i><tt>w</tt></i> defaults to 1. When <i><tt>x</tt></i>, <i><tt>y</tt></i>, and
			<i><tt>z</tt></i> are specified, <i><tt>w</tt></i> defaults to 1.
		</p></div><div class="refsect1" lang="en"><a name="glVertex.3G-notes"/><h2>Notes</h2><p>
			Invoking <tt>glVertex</tt> outside of a <a href="glBegin.3G.xml"><tt>glBegin</tt></a>/<a href="glBegin.3G.xml"><tt>glEnd</tt></a> pair results in undefined
			behavior.
		</p></div><div class="refsect1" lang="en"><a name="glVertex.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glBegin.3G.xml">glBegin</a>, <a href="glCallList.3G.xml">glCallList</a>, <a href="glColor.3G.xml">glColor</a>, <a href="glEdgeFlag.3G.xml">glEdgeFlag</a>, <a href="glEvalCoord.3G.xml">glEvalCoord</a>, <a href="glIndex.3G.xml">glIndex</a>, <a href="glMaterial.3G.xml">glMaterial</a>, <a href="glNormal.3G.xml">glNormal</a>, <a href="glRect.3G.xml">glRect</a>, <a href="glTexCoord.3G.xml">glTexCoord</a>, <a href="glVertexPointer.3G.xml">glVertexPointer</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glTranslate.3G.xml">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="reference-GL.xml">Up</a></td><td width="40%" align="right"><a accesskey="n" href="glVertexPointer.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glTranslate</td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top">glVertexPointer</td></tr></table></div></body></html>