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>glGetAttachedShaders</title>
8  </head>
9  <body>
10<h1>glGetAttachedShaders Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14GL_APICALL void GL_APIENTRY glGetAttachedShaders(
15     GLuint program,
16     GLsizei maxcount,
17     GLsizei * count,
18     GLuint * shaders
19);
20</pre>
21    </div>
22<h2>Parameters</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>program</th>
35<td>Program object</td>
36        </tr>
37        <tr>
38<td>in</td>
39<th>maxcount</th>
40<td>Maximum number of shader object names to get</td>
41        </tr>
42        <tr>
43<td>out</td>
44<th>count</th>
45<td>Region storing the number of shader objects obtained in <span class="argument">shaders</span></td>
46        </tr>
47        <tr>
48<td>out</td>
49<th>shaders</th>
50<td>Array storing the shader object names</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>Gets the names of shader objects that have been attached to a program.</p><P>
58Set <span class="argument">program</span> to the program object.
59            </P><P>
60Use <span class="argument">maxcount</span> to specify the size of the array set in <span class="argument">shaders</span>.
61            </P><P>
62The <span class="argument">count</span> argument stores the number of shader objects obtained in <span class="argument">shaders</span>.
63            </P><P>
64The <span class="argument">shaders</span> argument stores the shader objects attached to <span class="argument">program</span>.
65            </P><P>
66It is all right to set <span class="argument">count</span> to <code>NULL</code>, because you can get the same value (that would otherwise be set in <span class="argument">count</span>) by specifying <code>GL_ATTACHED_SHADERS</code> to <code>glGetProgramiv</code>.
67            </P><P>
68This function generates the following errors.
69<TABLE><TR><TH>GL_INVALID_VALUE</TH><TD>The <span class="argument">program</span> argument was set to an invalid value, or <span class="argument">maxcount</span> is negative.</TD></TR></TABLE><!-- source                      programに不正な値を指定した場合、およびmaxcountが負の値の場合エラーGL_INVALID_VALUEを生成します。                 --></P></div>
70<h2>Revision History</h2>
71    <div class="section">
72      <dl class="history">
73        <dt>2010/01/07</dt>
74<dd>Initial version.<br />
75        </dd>
76      </dl>
77    </div>
78  <hr><p>CONFIDENTIAL</p></body>
79</html>