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    <style type="text/css"><!--
8      span.static_style
9      {
10        font-size			: 8pt;
11        color				: white;
12        font-weight			: bold;
13        background			: #44f;
14        border-left			: solid 1px #aaf;
15        border-top			: solid 1px #aaf;
16        border-right		: solid 1px #00c;
17        border-bottom		: solid 1px #00c;
18        padding-left		: 2px;
19        padding-right		: 2px;
20      }
21
22      span.virtual_style
23      {
24        font-size			 : 8pt;
25        color				 : white;
26        font-weight			: bold;
27        background			: #0a0;
28        border-left			: solid 1px #0f0;
29        border-top			: solid 1px #0f0;
30        border-right		: solid 1px #060;
31        border-bottom		: solid 1px #060;
32        padding-left		: 2px;
33        padding-right		: 2px;
34      }
35
36      span.protected_style
37      {
38        font-size			 : 8pt;
39        color				 : white;
40        font-weight			: bold;
41        background			: #444;
42        border-left			: solid 1px #ccc;
43        border-top			: solid 1px #ccc;
44        border-right		: solid 1px #222;
45        border-bottom		: solid 1px #222;
46        padding-left		: 2px;
47        padding-right		: 2px;
48      }
49        --></style>
50    <title>nw::gfx::ShaderProgram</title>
51  </head>
52  <body>
53    <h1><CODE>nw::gfx::ShaderProgram</CODE> Class</h1>
54    <h2>Syntax</h2>
55    <div class="section">
56      <pre class="definition">class ShaderProgram : public <a href="../../../nw/gfx/GfxObject/Overview.html">nw::gfx::GfxObject</a></pre>
57    </div>
58    <h2>Description</h2>
59    <div class="section">
60      <p>Executable shader program that can link combinations of multiple shader types.</p>
61    </div>
62    <a name="function" id="function">
63      <h2>Member Functions</h2>
64      <div class="section">
65        <table class="members">
66          <tr>
67            <th class="category" colspan="3">Set/Get</th>
68          </tr>
69          <tr>
70            <td width="100">  </td>
71            <th>
72              <a href="../../../nw/gfx/ShaderProgram/ActivateDescription.html"><CODE>ActivateDescription</CODE></a>
73            </th>
74            <td>Activates detailed settings.</td>
75          </tr>
76          <tr>
77            <td width="100">  </td>
78            <th>
79              <a href="../../../nw/gfx/ShaderProgram/ActivateShaderProgramMode.html">ActivateShaderProgramMode</a>
80            </th>
81            <td>Sets the geometry shader mode.</td>
82          </tr>
83          <tr>
84            <td width="100">  </td>
85            <th>
86              <a href="../../../nw/gfx/ShaderProgram/DeactivateDescription.html"><CODE>DeactivateDescription</CODE></a>
87            </th>
88            <td>Deactivates detailed settings.</td>
89          </tr>
90          <tr>
91            <td width="100">  </td>
92            <th>
93              <a href="../../../nw/gfx/ShaderProgram/GetActiveDescription.html"><CODE>GetActiveDescription</CODE></a>
94            </th>
95            <td>Gets the resource.</td>
96          </tr>
97          <tr>
98            <td width="100">  </td>
99            <th>
100              <a href="../../../nw/gfx/ShaderProgram/IsParticleShader.html"><CODE>IsParticleShader</CODE></a>
101            </th>
102            <td>Determines whether the input is a particle shader.</td>
103          </tr>
104          <tr>
105            <th class="category" colspan="3">Vertex attribute</th>
106          </tr>
107          <tr>
108            <td width="100">  </td>
109            <th>
110              <a href="../../../nw/gfx/ShaderProgram/GetVertexAttributeIndex.html"><CODE>GetVertexAttributeIndex</CODE></a>
111            </th>
112            <td>Gets the index of the vertex attribute.</td>
113          </tr>
114          <tr>
115            <th class="category" colspan="3">Shader Constants</th>
116          </tr>
117          <tr>
118            <td width="100">  </td>
119            <th>
120              <a href="../../../nw/gfx/ShaderProgram/SetProjection.html"><CODE>SetProjection</CODE></a>
121            </th>
122            <td>Sets the projection matrix.</td>
123          </tr>
124          <tr>
125            <td width="100">  </td>
126            <th>
127              <a href="../../../nw/gfx/ShaderProgram/SetViewMatrix.html"><CODE>SetViewMatrix</CODE></a>
128            </th>
129            <td>Sets the view matrix.</td>
130          </tr>
131          <tr>
132            <td width="100">  </td>
133            <th>
134              <a href="../../../nw/gfx/ShaderProgram/SetWorldMatrix.html"><CODE>SetWorldMatrix</CODE></a>
135            </th>
136            <td>Sets the world matrix.</td>
137          </tr>
138          <tr>
139            <td width="100">  </td>
140            <th>
141              <a href="../../../nw/gfx/ShaderProgram/SetModelNormalMatrix.html"><CODE>SetModelNormalMatrix</CODE></a>
142            </th>
143            <td>Sets the model normal matrix.</td>
144          </tr>
145          <tr>
146            <td width="100">  </td>
147            <th>
148              <a href="../../../nw/gfx/ShaderProgram/SetUseBoneNormalMatrix.html"><CODE>SetUseBoneNormalMatrix</CODE></a>
149            </th>
150            <td>Sets the flag that specifies that bones should use normal matrices.</td>
151          </tr>
152          <tr>
153            <td width="100">  </td>
154            <th>
155              <a href="../../../nw/gfx/ShaderProgram/SetUniversal.html"><CODE>SetUniversal</CODE></a>
156            </th>
157            <td>Sets the value of the universal register.</td>
158          </tr>
159          <tr>
160            <td width="100">  </td>
161            <th>
162              <a href="../../../nw/gfx/ShaderProgram/SetUserVertexUniform.html">SetUserVertexUniform</a>
163            </th>
164            <td>Sets parameters in the user vertex shader.</td>
165          </tr>
166          <tr>
167            <td width="100">  </td>
168            <th>
169              <a href="../../../nw/gfx/ShaderProgram/SetUserGeometryUniform.html">SetUserGeometryUniform</a>
170            </th>
171            <td>Sets parameters for the user geometry register.</td>
172          </tr>
173          <tr>
174            <td width="100">  </td>
175            <th>
176              <a href="../../../nw/gfx/ShaderProgram/SetVertexUniformBool.html"><CODE>SetVertexUniformBool</CODE></a>
177            </th>
178            <td>Sets a <CODE>bool</CODE> value.</td>
179          </tr>
180          <tr>
181            <td width="100">  </td>
182            <th>
183              <a href="../../../nw/gfx/ShaderProgram/SetGeometryUniformBool.html"><CODE>SetGeometryUniformBool</CODE></a>
184            </th>
185            <td>Sets a <CODE>bool</CODE> value.</td>
186          </tr>
187          <tr>
188            <td width="100">  </td>
189            <th>
190              <a href="../../../nw/gfx/ShaderProgram/SetVertexUniformInt.html"><CODE>SetVertexUniformInt</CODE></a>
191            </th>
192            <td>Sets values for <CODE>int</CODE> types.</td>
193          </tr>
194          <tr>
195            <td width="100">  </td>
196            <th>
197              <a href="../../../nw/gfx/ShaderProgram/SetGeometryUniformInt.html"><CODE>SetGeometryUniformInt</CODE></a>
198            </th>
199            <td>Sets values for <CODE>int</CODE> types.</td>
200          </tr>
201          <tr>
202            <td width="100">  </td>
203            <th>
204              <a href="../../../nw/gfx/ShaderProgram/FlushUniform.html"><CODE>FlushUniform</CODE></a>
205            </th>
206            <td>Flushes the <CODE>VertexUniform</CODE> and <CODE>GeometryUniform</CODE> states to commands.</td>
207          </tr>
208          <tr>
209            <th class="category" colspan="3">Create/Destroy</th>
210          </tr>
211          <tr>
212            <td width="100">  </td>
213            <th>
214              <a href="../../../nw/gfx/GfxObject/Destroy.html"><CODE>Destroy</CODE></a>
215            </th>
216            <td>Destroys an object.(Derived from <a href="../../../nw/gfx/GfxObject/Overview.html"><CODE>GfxObject</CODE></a>.</td>
217          </tr>
218          <tr>
219            <th class="category" colspan="3">Other</th>
220          </tr>
221          <tr>
222            <td width="100">  </td>
223            <th>
224              <a href="../../../nw/gfx/ShaderProgram/ShaderProgram.html"><CODE>ShaderProgram</CODE></a>
225            </th>
226            <td>Constructor.</td>
227          </tr> </table>
228      </div>
229    </a>
230    <h2>Class Hierarchy</h2>
231    <div class="section">
232      <p class="hierarchy"><a href="../../../nw/gfx/GfxObject/Overview.html">nw::gfx::GfxObject</a><br />  <b>nw::gfx::ShaderProgram</b>
233      </p>
234    </div>
235  <hr><p>CONFIDENTIAL</p></body>
236</html>