1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../css/manpage.css" type="text/css" /> 7<title>glVertexAttrib3f</title> 8 </head> 9 <body> 10<h1><CODE>glVertexAttrib3f</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14GL_APICALL void GL_APIENTRY glVertexAttrib3f( 15 GLuint indx, 16 GLfloat x, 17 GLfloat y, 18 GLfloat z 19); 20</pre> 21 </div> 22<h2>Arguments</h2> 23 <div class="section"> 24 <table class="arguments"> 25 <thead> 26 <tr> 27 <td width="15" /> 28<th>Name</th> 29<td>Description</td> 30 </tr> 31 </thead> 32 <tr> 33<td>in</td> 34<th>indx</th> 35<td>Vertex attribute index number</td> 36 </tr> 37 <tr> 38<td>in</td> 39<th>x</th> 40<td>Vertex attribute value</td> 41 </tr> 42 <tr> 43<td>in</td> 44<th>y</th> 45<td>Vertex attribute value</td> 46 </tr> 47 <tr> 48<td>in</td> 49<th>z</th> 50<td>Vertex attribute value</td> 51 </tr> </table> 52 </div> 53<h2>Return Values</h2> 54<div class="section">No values are returned. </div> 55<h2>Description</h2> 56 <div class="section"> 57<p>Sets vertex attributes using <code>GLfloat</code>-type values.</p><P> 58Set <span class="argument">index</span> to a value that is greater than 0 and at least one less than the value that can be obtained by <code>glGetIntegerv</code> with <code>GL_MAX_VERTEX_ATTRIBS</code> specified. Call this function when using the same vertex attribute values for all vertices. The values set by this function are used when a vertex attribute array has been disabled by <code>glDisableVertexAttribArray</code>. 59 </P><P> 60The values specified by <span class="argument">x</span>, <span class="argument">y</span>, and <span class="argument">z</span> are given as the x, y, and z components, respectively, to the vertex shader's input registers. A value of 1 is given for w. 61 </P><P> 62This function generates the following errors. 63<TABLE><TR><TH>GL_INVALID_VALUE</TH><TD>The <span class="argument">index</span> argument was set to an invalid value.</TD></TR></TABLE><!-- source indexに不正な値を指定した場合エラーGL_INVALID_VALUEを生成します。 --></P></div> 64<h2>Revision History</h2> 65 <div class="section"> 66 <dl class="history"> 67 <dt>2010/01/07</dt> 68<dd>Initial version.<br /> 69 </dd> 70 </dl> 71 </div> 72 <hr><p>CONFIDENTIAL</p></body> 73</html>