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