Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 2260

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title>Ogre::GpuProgramParameters class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<link type="text/css" rel="stylesheet" href="style.css">
</head>

<body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::GpuProgramParameters  Class Reference</h1>Collects together the program parameters used for a <a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a>. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>&gt;</code>
<p>
<a href="classOgre_1_1GpuProgramParameters-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td nowrap align=right valign=top>typedef <a class="el" href="classOgre_1_1VectorIterator.html">VectorIterator</a>&lt; <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst0">RealConstantList</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss0">RealConstantIterator</a></td></tr>
<tr><td nowrap align=right valign=top>typedef <a class="el" href="classOgre_1_1VectorIterator.html">VectorIterator</a>&lt; <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst1">IntConstantList</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss1">IntConstantIterator</a></td></tr>
<tr><td nowrap align=right valign=top>typedef <a class="el" href="classOgre_1_1VectorIterator.html">VectorIterator</a>&lt; <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst2">AutoConstantList</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss2">AutoConstantIterator</a></td></tr>
<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17">AutoConstantType</a> { <br>
&nbsp;&nbsp;<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss3">ACT_WORLD_MATRIX</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss4">ACT_VIEW_MATRIX</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss5">ACT_PROJECTION_MATRIX</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss6">ACT_WORLDVIEW_MATRIX</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss7">ACT_WORLDVIEWPROJ_MATRIX</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss8">ACT_INVERSE_WORLD_MATRIX</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss9">ACT_INVERSE_WORLDVIEW_MATRIX</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss10">ACT_LIGHT_DIFFUSE_COLOUR</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss11">ACT_LIGHT_SPECULAR_COLOUR</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss12">ACT_LIGHT_ATTENUATION</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss13">ACT_LIGHT_POSITION_OBJECT_SPACE</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss14">ACT_LIGHT_DIRECTION_OBJECT_SPACE</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss15">ACT_CAMERA_POSITION_OBJECT_SPACE</a>, 
<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss16">ACT_AMBIENT_LIGHT_COLOUR</a>
<br>
 }</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Defines the types of automatically updated values that may be bound to <a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> parameters, or used to modify parameters on a per-object basis.</em> <a href="#Ogre_1_1GpuProgramParameterss17">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa0">GpuProgramParameters</a> ()</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa1">~GpuProgramParameters</a> ()</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa2">setConstant</a> (size_t index, const <a class="el" href="classOgre_1_1Vector4.html">Vector4</a> &amp;vec)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a 4-element floating-point parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa3">setConstant</a> (size_t index, const <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &amp;vec)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a 4-element floating-point parameter to the program via <a class="el" href="classOgre_1_1Vector3.html">Vector3</a>.</em> <a href="#Ogre_1_1GpuProgramParametersa3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa4">setConstant</a> (size_t index, const <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;m)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa5">setConstant</a> (size_t index, const <a class="el" href="namespaceOgre.html#a349">Real</a> *val, size_t count)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a multiple value constant floating-point parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa6">setConstant</a> (size_t index, const <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;colour)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa7">setConstant</a> (size_t index, const int *val, size_t count)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a multiple value constant integer parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa8">resetRealConstants</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Deletes the contents of the Real constants registers.</em> <a href="#Ogre_1_1GpuProgramParametersa8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa9">resetIntConstants</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Deletes the contents of the int constants registers.</em> <a href="#Ogre_1_1GpuProgramParametersa9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss0">RealConstantIterator</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa10">getRealConstantIterator</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets an iterator over the Real constant parameters.</em> <a href="#Ogre_1_1GpuProgramParametersa10"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss1">IntConstantIterator</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa11">getIntConstantIterator</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets an iterator over the integer constant parameters.</em> <a href="#Ogre_1_1GpuProgramParametersa11"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa12">getRealConstantCount</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the number of Real constants that have been set.</em> <a href="#Ogre_1_1GpuProgramParametersa12"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa13">getIntConstantCount</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the number of int constants that have been set.</em> <a href="#Ogre_1_1GpuProgramParametersa13"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa14">hasRealConstantParams</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns true if there are any Real constants contained here.</em> <a href="#Ogre_1_1GpuProgramParametersa14"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa15">hasIntConstantParams</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns true if there are any int constants contained here.</em> <a href="#Ogre_1_1GpuProgramParametersa15"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa16">setAutoConstant</a> (size_t index, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17">AutoConstantType</a> acType, size_t extraInfo=0)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets up a constant which will automatically be updated by the system.</em> <a href="#Ogre_1_1GpuProgramParametersa16"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa17">setConstantFromTime</a> (size_t index, <a class="el" href="namespaceOgre.html#a349">Real</a> factor)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a named parameter up to track a derivation of the current time.</em> <a href="#Ogre_1_1GpuProgramParametersa17"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa18">clearAutoConstants</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Clears all the existing automatic constants.</em> <a href="#Ogre_1_1GpuProgramParametersa18"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss2">AutoConstantIterator</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa19">getAutoConstantIterator</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets an iterator over the automatic constant bindings currently in place.</em> <a href="#Ogre_1_1GpuProgramParametersa19"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa20">hasAutoConstants</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns true if this instance has any automatic constants.</em> <a href="#Ogre_1_1GpuProgramParametersa20"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa21">_updateAutoParamsNoLights</a> (const <a class="el" href="classOgre_1_1AutoParamDataSource.html">AutoParamDataSource</a> &amp;source)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Updates the automatic parameters (except lights) based on the details provided.</em> <a href="#Ogre_1_1GpuProgramParametersa21"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa22">_updateAutoParamsLightsOnly</a> (const <a class="el" href="classOgre_1_1AutoParamDataSource.html">AutoParamDataSource</a> &amp;source)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Updates the automatic parameters for lights based on the details provided.</em> <a href="#Ogre_1_1GpuProgramParametersa22"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa23">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, <a class="el" href="namespaceOgre.html#a349">Real</a> val)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a single value constant floating-point parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa23"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa24">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, int val)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a single value constant integer parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa24"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa25">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, const <a class="el" href="classOgre_1_1Vector4.html">Vector4</a> &amp;vec)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a <a class="el" href="classOgre_1_1Vector4.html">Vector4</a> parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa25"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa26">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, const <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &amp;vec)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa26"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa27">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, const <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;m)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa27"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa28">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, const <a class="el" href="namespaceOgre.html#a349">Real</a> *val, size_t count)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a multiple value constant floating-point parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa28"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa29">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, const <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;colour)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa29"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa30">setNamedConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, const int *val, size_t count)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a multiple value constant integer parameter to the program.</em> <a href="#Ogre_1_1GpuProgramParametersa30"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa31">setNamedAutoConstant</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17">AutoConstantType</a> acType, size_t extraInfo=0)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets up a constant which will automatically be updated by the system.</em> <a href="#Ogre_1_1GpuProgramParametersa31"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa32">setNamedConstantFromTime</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, <a class="el" href="namespaceOgre.html#a349">Real</a> factor)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets a named parameter up to track a derivation of the current time.</em> <a href="#Ogre_1_1GpuProgramParametersa32"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa33">_mapParameterNameToIndex</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name, size_t index)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Internal method for associating a parameter name with an index.</em> <a href="#Ogre_1_1GpuProgramParametersa33"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa34">getParamIndex</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the constant index associated with a named parameter.</em> <a href="#Ogre_1_1GpuProgramParametersa34"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa35">setTransposeMatrices</a> (bool val)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets whether or not we need to transpose the matrices passed in from the rest of OGRE.</em> <a href="#Ogre_1_1GpuProgramParametersa35"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersa36">getTransposeMatrices</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets whether or not matrices are to be transposed when set.</em> <a href="#Ogre_1_1GpuProgramParametersa36"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Types</h2></td></tr>
<tr><td nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="structOgre_1_1GpuProgramParameters_1_1RealConstantEntry.html">RealConstantEntry</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst0">RealConstantList</a></td></tr>
<tr><td nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="structOgre_1_1GpuProgramParameters_1_1IntConstantEntry.html">IntConstantEntry</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst1">IntConstantList</a></td></tr>
<tr><td nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="classOgre_1_1GpuProgramParameters_1_1AutoConstantEntry.html">AutoConstantEntry</a> &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst2">AutoConstantList</a></td></tr>
<tr><td nowrap align=right valign=top>typedef std::map&lt; <a class="el" href="classOgre_1_1String.html">String</a>,<br>
 size_t &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst3">ParamNameMap</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Mapping from parameter names to indexes - high-level programs are expected to populate this.</em> <a href="#Ogre_1_1GpuProgramParameterst3"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst0">RealConstantList</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersn0">mRealConstants</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Packed list of floating-point constants.</em> <a href="#Ogre_1_1GpuProgramParametersn0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst1">IntConstantList</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersn1">mIntConstants</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Packed list of integer constants.</em> <a href="#Ogre_1_1GpuProgramParametersn1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst2">AutoConstantList</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersn2">mAutoConstants</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>List of automatically updated parameters.</em> <a href="#Ogre_1_1GpuProgramParametersn2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst3">ParamNameMap</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersn3">mParamNameMap</a></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParametersn4">mTransposeMatrices</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Do we need to transpose matrices?</em> <a href="#Ogre_1_1GpuProgramParametersn4"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Collects together the program parameters used for a <a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a>.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Gpu program state includes constant parameters used by the program, and bindings to render system state which is propagated into the constants  by the engine automatically if requested. 
<p>
 <a class="el" href="classOgre_1_1GpuProgramParameters.html">GpuProgramParameters</a> objects should be created through the <a class="el" href="classOgre_1_1GpuProgramManager.html">GpuProgramManager</a> and may be shared between multiple <a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> instances. For this reason they are managed using a shared pointer, which will ensure they are automatically deleted when no program is using them anymore. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00055">55</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.<hr><h2>Member Typedef Documentation</h2>
<a name="Ogre_1_1GpuProgramParameterss2" doxytag="Ogre::GpuProgramParameters::AutoConstantIterator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef <a class="el" href="classOgre_1_1VectorIterator.html">VectorIterator</a>&lt;<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst2">AutoConstantList</a>&gt; Ogre::GpuProgramParameters::AutoConstantIterator
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00243">243</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00173">getAutoConstantIterator</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParameterst2" doxytag="Ogre::GpuProgramParameters::AutoConstantList"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef std::vector&lt;<a class="el" href="classOgre_1_1GpuProgramParameters_1_1AutoConstantEntry.html">AutoConstantEntry</a>&gt; Ogre::GpuProgramParameters::AutoConstantList<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00132">132</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParameterss1" doxytag="Ogre::GpuProgramParameters::IntConstantIterator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef <a class="el" href="classOgre_1_1VectorIterator.html">VectorIterator</a>&lt;<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst1">IntConstantList</a>&gt; Ogre::GpuProgramParameters::IntConstantIterator
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00206">206</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00343">getIntConstantIterator</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParameterst1" doxytag="Ogre::GpuProgramParameters::IntConstantList"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef std::vector&lt;<a class="el" href="structOgre_1_1GpuProgramParameters_1_1IntConstantEntry.html">IntConstantEntry</a>&gt; Ogre::GpuProgramParameters::IntConstantList<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00130">130</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParameterst3" doxytag="Ogre::GpuProgramParameters::ParamNameMap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef std::map&lt;<a class="el" href="classOgre_1_1String.html">String</a>, size_t&gt; Ogre::GpuProgramParameters::ParamNameMap<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Mapping from parameter names to indexes - high-level programs are expected to populate this.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00140">140</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParameterss0" doxytag="Ogre::GpuProgramParameters::RealConstantIterator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef <a class="el" href="classOgre_1_1VectorIterator.html">VectorIterator</a>&lt;<a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst0">RealConstantList</a>&gt; Ogre::GpuProgramParameters::RealConstantIterator
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00205">205</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00338">getRealConstantIterator</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParameterst0" doxytag="Ogre::GpuProgramParameters::RealConstantList"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> typedef std::vector&lt;<a class="el" href="structOgre_1_1GpuProgramParameters_1_1RealConstantEntry.html">RealConstantEntry</a>&gt; Ogre::GpuProgramParameters::RealConstantList<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00129">129</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Enumeration Documentation</h2>
<a name="Ogre_1_1GpuProgramParameterss17" doxytag="Ogre::GpuProgramParameters::AutoConstantType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> enum Ogre::GpuProgramParameters::AutoConstantType
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Defines the types of automatically updated values that may be bound to <a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> parameters, or used to modify parameters on a per-object basis.
<p>
<dl compact><dt><b>
Enumeration values:</b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss3" doxytag="ACT_WORLD_MATRIX"></a><em>ACT_WORLD_MATRIX</em></em>&nbsp;</td><td>
The current world matrix.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss4" doxytag="ACT_VIEW_MATRIX"></a><em>ACT_VIEW_MATRIX</em></em>&nbsp;</td><td>
The current view matrix.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss5" doxytag="ACT_PROJECTION_MATRIX"></a><em>ACT_PROJECTION_MATRIX</em></em>&nbsp;</td><td>
The current projection matrix.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss6" doxytag="ACT_WORLDVIEW_MATRIX"></a><em>ACT_WORLDVIEW_MATRIX</em></em>&nbsp;</td><td>
The current world &amp; view matrices concatenated.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss7" doxytag="ACT_WORLDVIEWPROJ_MATRIX"></a><em>ACT_WORLDVIEWPROJ_MATRIX</em></em>&nbsp;</td><td>
The current world, view &amp; projection matrices concatenated.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss8" doxytag="ACT_INVERSE_WORLD_MATRIX"></a><em>ACT_INVERSE_WORLD_MATRIX</em></em>&nbsp;</td><td>
The current world matrix, inverted.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss9" doxytag="ACT_INVERSE_WORLDVIEW_MATRIX"></a><em>ACT_INVERSE_WORLDVIEW_MATRIX</em></em>&nbsp;</td><td>
The current world &amp; view matrices concatenated, then inverted.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss10" doxytag="ACT_LIGHT_DIFFUSE_COLOUR"></a><em>ACT_LIGHT_DIFFUSE_COLOUR</em></em>&nbsp;</td><td>
<a class="el" href="classOgre_1_1Light.html">Light</a> diffuse colour (index determined by setAutoConstant call).</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss11" doxytag="ACT_LIGHT_SPECULAR_COLOUR"></a><em>ACT_LIGHT_SPECULAR_COLOUR</em></em>&nbsp;</td><td>
<a class="el" href="classOgre_1_1Light.html">Light</a> diffuse colour (index determined by setAutoConstant call).</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss12" doxytag="ACT_LIGHT_ATTENUATION"></a><em>ACT_LIGHT_ATTENUATION</em></em>&nbsp;</td><td>
<a class="el" href="classOgre_1_1Light.html">Light</a> attenuation parameters, Vector4(range, constant, linear, quadric).</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss13" doxytag="ACT_LIGHT_POSITION_OBJECT_SPACE"></a><em>ACT_LIGHT_POSITION_OBJECT_SPACE</em></em>&nbsp;</td><td>
A light position in object space (index determined by setAutoConstant call).</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss14" doxytag="ACT_LIGHT_DIRECTION_OBJECT_SPACE"></a><em>ACT_LIGHT_DIRECTION_OBJECT_SPACE</em></em>&nbsp;</td><td>
A light direction in object space (index determined by setAutoConstant call).</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss15" doxytag="ACT_CAMERA_POSITION_OBJECT_SPACE"></a><em>ACT_CAMERA_POSITION_OBJECT_SPACE</em></em>&nbsp;</td><td>
The current camera's position in object space.</td></tr>
<tr><td valign=top><em><a name="Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss16" doxytag="ACT_AMBIENT_LIGHT_COLOUR"></a><em>ACT_AMBIENT_LIGHT_COLOUR</em></em>&nbsp;</td><td>
The ambient light colour set in the scene.</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00061">61</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="Ogre_1_1GpuProgramParametersa0" doxytag="Ogre::GpuProgramParameters::GpuProgramParameters"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> Ogre::GpuProgramParameters::GpuProgramParameters </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00090">90</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa1" doxytag="Ogre::GpuProgramParameters::~GpuProgramParameters"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> Ogre::GpuProgramParameters::~GpuProgramParameters </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00147">147</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="Ogre_1_1GpuProgramParametersa33" doxytag="Ogre::GpuProgramParameters::_mapParameterNameToIndex"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::_mapParameterNameToIndex </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Internal method for associating a parameter name with an index.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00264">264</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00141">mParamNameMap</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa22" doxytag="Ogre::GpuProgramParameters::_updateAutoParamsLightsOnly"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::_updateAutoParamsLightsOnly </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1AutoParamDataSource.html">AutoParamDataSource</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>source</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Updates the automatic parameters for lights based on the details provided.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00222">222</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss12">ACT_LIGHT_ATTENUATION</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss10">ACT_LIGHT_DIFFUSE_COLOUR</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss14">ACT_LIGHT_DIRECTION_OBJECT_SPACE</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss13">ACT_LIGHT_POSITION_OBJECT_SPACE</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss11">ACT_LIGHT_SPECULAR_COLOUR</a>, <a class="el" href="OgreLight_8cpp-source.html#l00210">Ogre::Light::getAttenuationConstant</a>(), <a class="el" href="OgreLight_8cpp-source.html#l00215">Ogre::Light::getAttenuationLinear</a>(), <a class="el" href="OgreLight_8cpp-source.html#l00220">Ogre::Light::getAttenuationQuadric</a>(), <a class="el" href="OgreLight_8cpp-source.html#l00205">Ogre::Light::getAttenuationRange</a>(), <a class="el" href="OgreLight_8cpp-source.html#l00275">Ogre::Light::getDerivedDirection</a>(), <a class="el" href="OgreLight_8cpp-source.html#l00269">Ogre::Light::getDerivedPosition</a>(), <a class="el" href="OgreLight_8cpp-source.html#l00174">Ogre::Light::getDiffuseColour</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00122">Ogre::AutoParamDataSource::getInverseWorldMatrix</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00163">Ogre::AutoParamDataSource::getLight</a>(), <a class="el" href="OgreLight_8cpp-source.html#l00191">Ogre::Light::getSpecularColour</a>(), <a class="el" href="OgreGpuProgram_8h-source.html#l00247">hasAutoConstants</a>(), <a class="el" href="OgreGpuProgram_8h-source.html#l00138">mAutoConstants</a>, <a class="el" href="OgreVector3_8h-source.html#l00299">Ogre::Vector3::normalise</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>(), <a class="el" href="OgreVector4_8h-source.html#l00042">Ogre::Vector4::w</a>, <a class="el" href="OgreVector4_8h-source.html#l00042">Ogre::Vector4::x</a>, <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::x</a>, <a class="el" href="OgreVector4_8h-source.html#l00042">Ogre::Vector4::y</a>, <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::y</a>, <a class="el" href="OgreVector4_8h-source.html#l00042">Ogre::Vector4::z</a>, and <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::z</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa21" doxytag="Ogre::GpuProgramParameters::_updateAutoParamsNoLights"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::_updateAutoParamsNoLights </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1AutoParamDataSource.html">AutoParamDataSource</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>source</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Updates the automatic parameters (except lights) based on the details provided.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00178">178</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss16">ACT_AMBIENT_LIGHT_COLOUR</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss15">ACT_CAMERA_POSITION_OBJECT_SPACE</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss8">ACT_INVERSE_WORLD_MATRIX</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss9">ACT_INVERSE_WORLDVIEW_MATRIX</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss5">ACT_PROJECTION_MATRIX</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss4">ACT_VIEW_MATRIX</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss3">ACT_WORLD_MATRIX</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss6">ACT_WORLDVIEW_MATRIX</a>, <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17Ogre_1_1GpuProgramParameterss7">ACT_WORLDVIEWPROJ_MATRIX</a>, <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00181">Ogre::AutoParamDataSource::getAmbientLightColour</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00152">Ogre::AutoParamDataSource::getCameraPositionObjectSpace</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00122">Ogre::AutoParamDataSource::getInverseWorldMatrix</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00132">Ogre::AutoParamDataSource::getInverseWorldViewMatrix</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00095">Ogre::AutoParamDataSource::getProjectionMatrix</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00090">Ogre::AutoParamDataSource::getViewMatrix</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00080">Ogre::AutoParamDataSource::getWorldMatrix</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00102">Ogre::AutoParamDataSource::getWorldViewMatrix</a>(), <a class="el" href="OgreAutoParamDataSource_8cpp-source.html#l00112">Ogre::AutoParamDataSource::getWorldViewProjMatrix</a>(), <a class="el" href="OgreGpuProgram_8h-source.html#l00247">hasAutoConstants</a>(), <a class="el" href="OgreGpuProgram_8h-source.html#l00138">mAutoConstants</a>, and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa18" doxytag="Ogre::GpuProgramParameters::clearAutoConstants"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::clearAutoConstants </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Clears all the existing automatic constants.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00168">168</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00138">mAutoConstants</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa19" doxytag="Ogre::GpuProgramParameters::getAutoConstantIterator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss2">GpuProgramParameters::AutoConstantIterator</a> Ogre::GpuProgramParameters::getAutoConstantIterator </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets an iterator over the automatic constant bindings currently in place.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00173">173</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00243">AutoConstantIterator</a>, and <a class="el" href="OgreGpuProgram_8h-source.html#l00138">mAutoConstants</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa13" doxytag="Ogre::GpuProgramParameters::getIntConstantCount"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> size_t Ogre::GpuProgramParameters::getIntConstantCount </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the number of int constants that have been set.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00215">215</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa11" doxytag="Ogre::GpuProgramParameters::getIntConstantIterator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss1">GpuProgramParameters::IntConstantIterator</a> Ogre::GpuProgramParameters::getIntConstantIterator </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets an iterator over the integer constant parameters.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00343">343</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00206">IntConstantIterator</a>, and <a class="el" href="OgreGpuProgram_8h-source.html#l00136">mIntConstants</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa34" doxytag="Ogre::GpuProgramParameters::getParamIndex"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> size_t Ogre::GpuProgramParameters::getParamIndex </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the constant index associated with a named parameter.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">270</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreException_8h-source.html#l00033">Except</a>, and <a class="el" href="OgreGpuProgram_8h-source.html#l00141">mParamNameMap</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00321">setNamedAutoConstant</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00281">setNamedConstant</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00333">setNamedConstantFromTime</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa12" doxytag="Ogre::GpuProgramParameters::getRealConstantCount"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> size_t Ogre::GpuProgramParameters::getRealConstantCount </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the number of Real constants that have been set.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00213">213</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa10" doxytag="Ogre::GpuProgramParameters::getRealConstantIterator"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss0">GpuProgramParameters::RealConstantIterator</a> Ogre::GpuProgramParameters::getRealConstantIterator </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets an iterator over the Real constant parameters.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00338">338</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00134">mRealConstants</a>, and <a class="el" href="OgreGpuProgram_8h-source.html#l00205">RealConstantIterator</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa36" doxytag="Ogre::GpuProgramParameters::getTransposeMatrices"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::GpuProgramParameters::getTransposeMatrices </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets whether or not matrices are to be transposed when set.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00404">404</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa20" doxytag="Ogre::GpuProgramParameters::hasAutoConstants"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::GpuProgramParameters::hasAutoConstants </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns true if this instance has any automatic constants.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00247">247</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00222">_updateAutoParamsLightsOnly</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00178">_updateAutoParamsNoLights</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa15" doxytag="Ogre::GpuProgramParameters::hasIntConstantParams"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::GpuProgramParameters::hasIntConstantParams </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns true if there are any int constants contained here.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00219">219</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa14" doxytag="Ogre::GpuProgramParameters::hasRealConstantParams"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::GpuProgramParameters::hasRealConstantParams </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns true if there are any Real constants contained here.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00217">217</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa9" doxytag="Ogre::GpuProgramParameters::resetIntConstants"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::resetIntConstants </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Deletes the contents of the int constants registers.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00203">203</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa8" doxytag="Ogre::GpuProgramParameters::resetRealConstants"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::resetRealConstants </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Deletes the contents of the Real constants registers.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00201">201</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa16" doxytag="Ogre::GpuProgramParameters::setAutoConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setAutoConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17">AutoConstantType</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>acType</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>extraInfo</em> = 0</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets up a constant which will automatically be updated by the system.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Vertex and fragment programs often need parameters which are to do with the current render state, or particular values which may very well change over time, and often between objects which are being rendered. This feature allows you  to set up a certain number of predefined parameter mappings that are kept up to  date for you. </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The location in the constant list to place this updated constant every time it is changed. Note that because of the nature of the types, we know how big the  parameter details will be so you don't need to set that like you do for manual constants. </td></tr>
<tr><td valign=top><em>acType</em>&nbsp;</td><td>
The type of automatic constant to set </td></tr>
<tr><td valign=top><em>extraInfo</em>&nbsp;</td><td>
If the constant type needs more information (like a light index) put it here. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00163">163</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00138">mAutoConstants</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00321">setNamedAutoConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa7" doxytag="Ogre::GpuProgramParameters::setConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>val</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>count</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a multiple value constant integer parameter to the program.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Different types of GPU programs support different types of constant parameters. For example, it's relatively common to find that vertex programs only support floating point constants, and that fragment programs only support integer (fixed point) parameters. This can vary depending on the program version supported by the graphics card being used. You should consult the documentation for the type of low level program you are using, or alternatively use the methods provided on <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> to determine the options. </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The constant index at which to place the parameter (each constant is a 4D integer) </td></tr>
<tr><td valign=top><em>val</em>&nbsp;</td><td>
Pointer to the values to write, must contain 4*count ints </td></tr>
<tr><td valign=top><em>count</em>&nbsp;</td><td>
The number of groups of 4 ints to write </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00147">147</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00124">Ogre::GpuProgramParameters::IntConstantEntry::isSet</a>, <a class="el" href="OgreGpuProgram_8h-source.html#l00136">mIntConstants</a>, and <a class="el" href="OgreGpuProgram_8h-source.html#l00123">Ogre::GpuProgramParameters::IntConstantEntry::val</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa6" doxytag="Ogre::GpuProgramParameters::setConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>colour</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> parameter to the program.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The constant index at which to place the parameter (each constant is a 4D float) </td></tr>
<tr><td valign=top><em>colour</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00125">125</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>(), and <a class="el" href="OgreColourValue_8h-source.html#l00069">Ogre::ColourValue::val</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa5" doxytag="Ogre::GpuProgramParameters::setConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a349">Real</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>val</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>count</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a multiple value constant floating-point parameter to the program.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The constant index at which to start placing parameters (each constant is a 4D float) </td></tr>
<tr><td valign=top><em>val</em>&nbsp;</td><td>
Pointer to the values to write, must contain 4*count floats </td></tr>
<tr><td valign=top><em>count</em>&nbsp;</td><td>
The number of groups of 4 floats to write </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00130">130</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00114">Ogre::GpuProgramParameters::RealConstantEntry::isSet</a>, <a class="el" href="OgreGpuProgram_8h-source.html#l00134">mRealConstants</a>, <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>, and <a class="el" href="OgreGpuProgram_8h-source.html#l00113">Ogre::GpuProgramParameters::RealConstantEntry::val</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa4" doxytag="Ogre::GpuProgramParameters::setConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>m</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> parameter to the program.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The constant index at which to place the parameter (each constant is a 4D float). NB since a <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> is 16 floats long, this parameter will take up 4 indexes. </td></tr>
<tr><td valign=top><em>m</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00105">105</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreMatrix4_8h-source.html#l00268">Ogre::Matrix4::transpose</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa3" doxytag="Ogre::GpuProgramParameters::setConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>vec</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a 4-element floating-point parameter to the program via <a class="el" href="classOgre_1_1Vector3.html">Vector3</a>.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The constant index at which to place the parameter (each constant is a 4D float). Note that since you're passing a <a class="el" href="classOgre_1_1Vector3.html">Vector3</a>, the last element of the 4-element value will be set to 1 (a homogenous vector) </td></tr>
<tr><td valign=top><em>vec</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00100">100</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>(), <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::x</a>, <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::y</a>, and <a class="el" href="OgreVector3_8h-source.html#l00047">Ogre::Vector3::z</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa2" doxytag="Ogre::GpuProgramParameters::setConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector4.html">Vector4</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>vec</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a 4-element floating-point parameter to the program.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The constant index at which to place the parameter (each constant is a 4D float) </td></tr>
<tr><td valign=top><em>vec</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">95</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreVector4_8h-source.html#l00044">Ogre::Vector4::val</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00222">_updateAutoParamsLightsOnly</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00178">_updateAutoParamsNoLights</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00100">setConstant</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00281">setNamedConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa17" doxytag="Ogre::GpuProgramParameters::setConstantFromTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setConstantFromTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a349">Real</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>factor</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a named parameter up to track a derivation of the current time.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The index of the parameter </td></tr>
<tr><td valign=top><em>factor</em>&nbsp;</td><td>
The amount by which to scale the time value </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00326">326</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00333">setNamedConstantFromTime</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa31" doxytag="Ogre::GpuProgramParameters::setNamedAutoConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedAutoConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterss17">AutoConstantType</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>acType</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>extraInfo</em> = 0</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets up a constant which will automatically be updated by the system.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Vertex and fragment programs often need parameters which are to do with the current render state, or particular values which may very well change over time, and often between objects which are being rendered. This feature allows you  to set up a certain number of predefined parameter mappings that are kept up to  date for you. </dl><dl compact><dt><b>
Note: </b><dd>
 This named option will only work if you are using a parameters object created from a high-level program (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>). </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>acType</em>&nbsp;</td><td>
The type of automatic constant to set </td></tr>
<tr><td valign=top><em>extraInfo</em>&nbsp;</td><td>
If the constant type needs more information (like a light index) put it here. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00321">321</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00163">setAutoConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa30" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const int *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>val</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>count</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a multiple value constant integer parameter to the program.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Different types of GPU programs support different types of constant parameters. For example, it's relatively common to find that vertex programs only support floating point constants, and that fragment programs only support integer (fixed point) parameters. This can vary depending on the program version supported by the graphics card being used. You should consult the documentation for the type of low level program you are using, or alternatively use the methods provided on <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> to determine the options. 
<p>
 Another possible limitation is that some systems only allow constants to be set on certain boundaries, e.g. in sets of 4 values for example. Again, see <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> for full details. </dl><dl compact><dt><b>
Note: </b><dd>
 This named option will only work if you are using a parameters object created from a high-level program (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>). </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>val</em>&nbsp;</td><td>
Pointer to the values to write </td></tr>
<tr><td valign=top><em>count</em>&nbsp;</td><td>
The number of integers to write </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00316">316</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa29" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>colour</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> parameter to the program.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>colour</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00311">311</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa28" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="namespaceOgre.html#a349">Real</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>val</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>count</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a multiple value constant floating-point parameter to the program.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Different types of GPU programs support different types of constant parameters. For example, it's relatively common to find that vertex programs only support floating point constants, and that fragment programs only support integer (fixed point) parameters. This can vary depending on the program version supported by the graphics card being used. You should consult the documentation for the type of low level program you are using, or alternatively use the methods provided on <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> to determine the options. 
<p>
 Another possible limitation is that some systems only allow constants to be set on certain boundaries, e.g. in sets of 4 values for example. Again, see <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> for full details. </dl><dl compact><dt><b>
Note: </b><dd>
 This named option will only work if you are using a parameters object created from a high-level program (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>). </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>val</em>&nbsp;</td><td>
Pointer to the values to write </td></tr>
<tr><td valign=top><em>count</em>&nbsp;</td><td>
The number of floats to write </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00306">306</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>, and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa27" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>m</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a <a class="el" href="classOgre_1_1Matrix4.html">Matrix4</a> parameter to the program.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>m</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00301">301</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa26" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>vec</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> parameter to the program.
<p>
<dl compact><dt><b>
Note: </b><dd>
 This named option will only work if you are using a parameters object created from a high-level program (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>). </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>&nbsp;</td><td>
The index at which to place the parameter NB this index refers to the number of floats, so a <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> is 3. Note that many  rendersystems &amp; programs assume that every floating point parameter is passed in as a vector of 4 items, so you are strongly advised to check with  <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> before using this version - if in doubt use <a class="el" href="classOgre_1_1Vector4.html">Vector4</a> or <a class="el" href="classOgre_1_1ColourValue.html">ColourValue</a> instead (both are 4D). </td></tr>
<tr><td valign=top><em>vec</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00296">296</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa25" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="classOgre_1_1Vector4.html">Vector4</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>vec</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a <a class="el" href="classOgre_1_1Vector4.html">Vector4</a> parameter to the program.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>vec</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00291">291</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa24" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>val</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a single value constant integer parameter to the program.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Different types of GPU programs support different types of constant parameters. For example, it's relatively common to find that vertex programs only support floating point constants, and that fragment programs only support integer (fixed point) parameters. This can vary depending on the program version supported by the graphics card being used. You should consult the documentation for the type of low level program you are using, or alternatively use the methods provided on <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> to determine the options. 
<p>
 Another possible limitation is that some systems only allow constants to be set on certain boundaries, e.g. in sets of 4 values for example. Again, see <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> for full details. </dl><dl compact><dt><b>
Note: </b><dd>
 This named option will only work if you are using a parameters object created from a high-level program (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>). </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>val</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00286">286</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa23" doxytag="Ogre::GpuProgramParameters::setNamedConstant"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstant </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a349">Real</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>val</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a single value constant floating-point parameter to the program.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Different types of GPU programs support different types of constant parameters. For example, it's relatively common to find that vertex programs only support floating point constants, and that fragment programs only support integer (fixed point) parameters. This can vary depending on the program version supported by the graphics card being used. You should consult the documentation for the type of low level program you are using, or alternatively use the methods provided on <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> to determine the options. 
<p>
 Another possible limitation is that some systems only allow constants to be set on certain boundaries, e.g. in sets of 4 values for example. Again, see <a class="el" href="classOgre_1_1RenderSystemCapabilities.html">RenderSystemCapabilities</a> for full details. </dl><dl compact><dt><b>
Note: </b><dd>
 This named option will only work if you are using a parameters object created from a high-level program (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>). </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>val</em>&nbsp;</td><td>
The value to set </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00281">281</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>, and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00095">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa32" doxytag="Ogre::GpuProgramParameters::setNamedConstantFromTime"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setNamedConstantFromTime </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a349">Real</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>factor</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a named parameter up to track a derivation of the current time.
<p>
<dl compact><dt><b>
Note: </b><dd>
 This named option will only work if you are using a parameters object created from a high-level program (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>). </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>&nbsp;</td><td>
The name of the parameter </td></tr>
<tr><td valign=top><em>factor</em>&nbsp;</td><td>
The amount by which to scale the time value </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8cpp-source.html#l00333">333</a> of file <a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>(), <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>, and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00326">setConstantFromTime</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersa35" doxytag="Ogre::GpuProgramParameters::setTransposeMatrices"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Ogre::GpuProgramParameters::setTransposeMatrices </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>val</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets whether or not we need to transpose the matrices passed in from the rest of OGRE.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 D3D uses transposed matrices compared to GL and OGRE; this is not important when you use programs which are written to process row-major matrices, such as those generated by Cg, but if you use a program written to D3D's matrix layout you will need to enable this flag. </dl>
<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00402">402</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="Ogre_1_1GpuProgramParametersn2" doxytag="Ogre::GpuProgramParameters::mAutoConstants"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst2">AutoConstantList</a> Ogre::GpuProgramParameters::mAutoConstants<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
List of automatically updated parameters.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00138">138</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00222">_updateAutoParamsLightsOnly</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00178">_updateAutoParamsNoLights</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00168">clearAutoConstants</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00173">getAutoConstantIterator</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00163">setAutoConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersn1" doxytag="Ogre::GpuProgramParameters::mIntConstants"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst1">IntConstantList</a> Ogre::GpuProgramParameters::mIntConstants<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Packed list of integer constants.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00136">136</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00343">getIntConstantIterator</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00147">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersn3" doxytag="Ogre::GpuProgramParameters::mParamNameMap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst3">ParamNameMap</a> Ogre::GpuProgramParameters::mParamNameMap<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00141">141</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00264">_mapParameterNameToIndex</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00270">getParamIndex</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersn0" doxytag="Ogre::GpuProgramParameters::mRealConstants"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1GpuProgramParameters.html#Ogre_1_1GpuProgramParameterst0">RealConstantList</a> Ogre::GpuProgramParameters::mRealConstants<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Packed list of floating-point constants.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00134">134</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgram_8cpp-source.html#l00338">getRealConstantIterator</a>(), and <a class="el" href="OgreGpuProgram_8cpp-source.html#l00130">setConstant</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramParametersn4" doxytag="Ogre::GpuProgramParameters::mTransposeMatrices"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool Ogre::GpuProgramParameters::mTransposeMatrices<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Do we need to transpose matrices?
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgram_8h-source.html#l00143">143</a> of file <a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreGpuProgram_8h-source.html">OgreGpuProgram.h</a><li><a class="el" href="OgreGpuProgram_8cpp-source.html">OgreGpuProgram.cpp</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:17:26 2004
</p>
</body>
</html>