Sophie

Sophie

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

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

<html>
<head>
<title>Ogre::GpuProgramUsage 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::GpuProgramUsage  Class Reference</h1>This class makes the usage of a vertex and fragment programs (low-level or high-level), with a given set of parameters, explicit. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>&gt;</code>
<p>
Collaboration diagram for Ogre::GpuProgramUsage:<p><center><img src="classOgre_1_1GpuProgramUsage__coll__graph.png" border="0" usemap="#Ogre_1_1GpuProgramUsage__coll__map" alt="Collaboration graph"></center>
<map name="Ogre_1_1GpuProgramUsage__coll__map">
<area href="classOgre_1_1SharedPtr.html" shape="rect" coords="7,247,281,228" alt="">
<area href="classOgre_1_1GpuProgramParameters.html" shape="rect" coords="48,141,240,123" alt="">
<area href="classOgre_1_1GpuProgram.html" shape="rect" coords="305,247,428,228" alt="">
<area href="classOgre_1_1Resource.html" shape="rect" coords="443,141,547,123" alt="">
<area href="classOgre_1_1String.html" shape="rect" coords="341,36,421,17" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1GpuProgramUsage-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<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_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea0">GpuProgramUsage</a> (<a class="el" href="namespaceOgre.html#a626">GpuProgramType</a> gptype)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Default constructor.</em> <a href="#Ogre_1_1GpuProgramUsagea0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea1">GpuProgramUsage</a> (const GpuProgramUsage &amp;rhs)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Copy constructor.</em> <a href="#Ogre_1_1GpuProgramUsagea1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a626">GpuProgramType</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea2">getType</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the type of program we're trying to link to.</em> <a href="#Ogre_1_1GpuProgramUsagea2"></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_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea3">setProgramName</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &amp;name)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the name of the program to use.</em> <a href="#Ogre_1_1GpuProgramUsagea3"></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_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea4">setProgram</a> (<a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> *prog)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the program to use.</em> <a href="#Ogre_1_1GpuProgramUsagea4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> *&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea5">getProgram</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the program being used.</em> <a href="#Ogre_1_1GpuProgramUsagea5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>const <a class="el" href="classOgre_1_1String.html">String</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea6">getProgramName</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the program being used.</em> <a href="#Ogre_1_1GpuProgramUsagea6"></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_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea7">setParameters</a> (<a class="el" href="namespaceOgre.html#a132">GpuProgramParametersSharedPtr</a> params)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects.</em> <a href="#Ogre_1_1GpuProgramUsagea7"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a132">GpuProgramParametersSharedPtr</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea8">getParameters</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the parameters being used here.</em> <a href="#Ogre_1_1GpuProgramUsagea8"></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_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea9">_load</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Load this usage (and ensure program is loaded).</em> <a href="#Ogre_1_1GpuProgramUsagea9"></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_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagea10">_unload</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Unload this usage.</em> <a href="#Ogre_1_1GpuProgramUsagea10"></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="namespaceOgre.html#a626">GpuProgramType</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagen0">mType</a></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> *&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagen1">mProgram</a></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a132">GpuProgramParametersSharedPtr</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1GpuProgramUsage.html#Ogre_1_1GpuProgramUsagen2">mParameters</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>program parameters</em> <a href="#Ogre_1_1GpuProgramUsagen2"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class makes the usage of a vertex and fragment programs (low-level or high-level), with a given set of parameters, explicit.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Using a vertex or fragment program can get fairly complex; besides the fairly rudimentary process of binding a program to the GPU for rendering, managing usage has few complications, such as: <ul>
<li>Programs can be high level (e.g. Cg, RenderMonkey) or low level (assembler). Using either should be relatively seamless, although high-level programs give you the advantage of being able to use named parameters, instead of just indexed registers <li>Programs and parameters can be shared between multiple usages, in order to save memory <li>When you define a user of a program, such as a material, you often want to be able to set up the definition but not load / compile / assemble the program at that stage, because it is not needed just yet. The program should be loaded when it is first needed, or earlier if specifically requested. The program may not be defined at this time, you may want to have scripts that can set up the definitions independent of the order in which those scripts are loaded. </ul>
This class packages up those details so you don't have to worry about them. For example, this class lets you define a high-level program and set up the parameters for it, without having loaded the program (which you normally could not do). When the program is loaded and compiled, this class will then validate the parameters you supplied earlier and turn them into runtime parameters. 
<p>
 Just incase it wasn't clear from the above, this class provides linkage to both  <a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> and <a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a>, despite its name. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00062">62</a> of file <a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="Ogre_1_1GpuProgramUsagea0" doxytag="Ogre::GpuProgramUsage::GpuProgramUsage"></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::GpuProgramUsage::GpuProgramUsage </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a626">GpuProgramType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>gptype</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>
Default constructor.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>gptype</em>&nbsp;</td><td>
The type of program to link to </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00034">34</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00037">Ogre::GpuProgramType</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea1" doxytag="Ogre::GpuProgramUsage::GpuProgramUsage"></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::GpuProgramUsage::GpuProgramUsage </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const GpuProgramUsage &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>rhs</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>
Copy constructor.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00039">39</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00070">mParameters</a>, <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00067">mProgram</a>, and <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00065">mType</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="Ogre_1_1GpuProgramUsagea9" doxytag="Ogre::GpuProgramUsage::_load"></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::GpuProgramUsage::_load </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>
Load this usage (and ensure program is loaded).
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00086">86</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.
<p>
References <a class="el" href="OgreResource_8h-source.html#l00127">Ogre::Resource::isLoaded</a>(), <a class="el" href="OgreGpuProgram_8cpp-source.html#l00059">Ogre::GpuProgram::load</a>(), and <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00067">mProgram</a>.
<p>
Referenced by <a class="el" href="OgrePass_8cpp-source.html#l00530">Ogre::Pass::_load</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea10" doxytag="Ogre::GpuProgramUsage::_unload"></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::GpuProgramUsage::_unload </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>
Unload this usage.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00092">92</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea8" doxytag="Ogre::GpuProgramUsage::getParameters"></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="namespaceOgre.html#a132">GpuProgramParametersSharedPtr</a> Ogre::GpuProgramUsage::getParameters </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 the parameters being used here.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00068">68</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.
<p>
References <a class="el" href="OgreException_8h-source.html#l00033">Except</a>, <a class="el" href="OgreGpuProgram_8h-source.html#l00407">Ogre::GpuProgramParametersSharedPtr</a>, and <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00070">mParameters</a>.
<p>
Referenced by <a class="el" href="OgrePass_8cpp-source.html#l00755">Ogre::Pass::_updateAutoParamsLightsOnly</a>(), <a class="el" href="OgrePass_8cpp-source.html#l00740">Ogre::Pass::_updateAutoParamsNoLights</a>(), <a class="el" href="OgrePass_8cpp-source.html#l00672">Ogre::Pass::getFragmentProgramParameters</a>(), and <a class="el" href="OgrePass_8cpp-source.html#l00651">Ogre::Pass::getVertexProgramParameters</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea5" doxytag="Ogre::GpuProgramUsage::getProgram"></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_1GpuProgram.html">GpuProgram</a>* Ogre::GpuProgramUsage::getProgram </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> const</td>
        </tr>

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

<p>
Gets the program being used.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00100">100</a> of file <a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>.
<p>
Referenced by <a class="el" href="OgrePass_8cpp-source.html#l00677">Ogre::Pass::getFragmentProgram</a>(), and <a class="el" href="OgrePass_8cpp-source.html#l00662">Ogre::Pass::getVertexProgram</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea6" doxytag="Ogre::GpuProgramUsage::getProgramName"></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"> const <a class="el" href="classOgre_1_1String.html">String</a>&amp; Ogre::GpuProgramUsage::getProgramName </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 program being used.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00102">102</a> of file <a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>.
<p>
References <a class="el" href="OgreResource_8h-source.html#l00115">Ogre::Resource::getName</a>().
<p>
Referenced by <a class="el" href="OgrePass_8cpp-source.html#l00667">Ogre::Pass::getFragmentProgramName</a>(), and <a class="el" href="OgrePass_8cpp-source.html#l00643">Ogre::Pass::getVertexProgramName</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea2" doxytag="Ogre::GpuProgramUsage::getType"></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="namespaceOgre.html#a626">GpuProgramType</a> Ogre::GpuProgramUsage::getType </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 type of program we're trying to link to.
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00083">83</a> of file <a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00037">Ogre::GpuProgramType</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea7" doxytag="Ogre::GpuProgramUsage::setParameters"></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::GpuProgramUsage::setParameters </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a132">GpuProgramParametersSharedPtr</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>params</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 the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects.
<p>
Otherwise, the parameters will be created for you when a program is linked. 
<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00063">63</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8h-source.html#l00407">Ogre::GpuProgramParametersSharedPtr</a>, and <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00070">mParameters</a>.
<p>
Referenced by <a class="el" href="OgrePass_8cpp-source.html#l00632">Ogre::Pass::setFragmentProgramParameters</a>(), and <a class="el" href="OgrePass_8cpp-source.html#l00601">Ogre::Pass::setVertexProgramParameters</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea4" doxytag="Ogre::GpuProgramUsage::setProgram"></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::GpuProgramUsage::setProgram </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1GpuProgram.html">GpuProgram</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>prog</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 the program to use.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Note that this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. </dl>
<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00079">79</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00084">Ogre::GpuProgram::createParameters</a>(), <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00070">mParameters</a>, and <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00067">mProgram</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagea3" doxytag="Ogre::GpuProgramUsage::setProgramName"></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::GpuProgramUsage::setProgramName </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></td>
        </tr>

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

<p>
Sets the name of the program to use.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Note that this will create a fresh set of parameters from the new program being linked, so if you had previously set parameters you will have to set them again. </dl>
<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00046">46</a> of file <a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.cpp</a>.
<p>
References <a class="el" href="OgreGpuProgram_8cpp-source.html#l00084">Ogre::GpuProgram::createParameters</a>(), <a class="el" href="OgreException_8h-source.html#l00033">Except</a>, <a class="el" href="namespaceOgre.html#a626a133">Ogre::GPT_VERTEX_PROGRAM</a>, <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00070">mParameters</a>, <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00067">mProgram</a>, and <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00065">mType</a>.
<p>
Referenced by <a class="el" href="OgrePass_8cpp-source.html#l00612">Ogre::Pass::setFragmentProgram</a>(), and <a class="el" href="OgrePass_8cpp-source.html#l00581">Ogre::Pass::setVertexProgram</a>().    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="Ogre_1_1GpuProgramUsagen2" doxytag="Ogre::GpuProgramUsage::mParameters"></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="namespaceOgre.html#a132">GpuProgramParametersSharedPtr</a> Ogre::GpuProgramUsage::mParameters<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
program parameters
<p>

<p>
Definition at line <a class="el" href="OgreGpuProgramUsage_8h-source.html#l00070">70</a> of file <a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00068">getParameters</a>(), <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00039">GpuProgramUsage</a>(), <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00063">setParameters</a>(), <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00079">setProgram</a>(), and <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00046">setProgramName</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagen1" doxytag="Ogre::GpuProgramUsage::mProgram"></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_1GpuProgram.html">GpuProgram</a>* Ogre::GpuProgramUsage::mProgram<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="OgreGpuProgramUsage_8h-source.html#l00067">67</a> of file <a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00086">_load</a>(), <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00039">GpuProgramUsage</a>(), <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00079">setProgram</a>(), and <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00046">setProgramName</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1GpuProgramUsagen0" doxytag="Ogre::GpuProgramUsage::mType"></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="namespaceOgre.html#a626">GpuProgramType</a> Ogre::GpuProgramUsage::mType<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="OgreGpuProgramUsage_8h-source.html#l00065">65</a> of file <a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a>.
<p>
Referenced by <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00039">GpuProgramUsage</a>(), and <a class="el" href="OgreGpuProgramUsage_8cpp-source.html#l00046">setProgramName</a>().    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreGpuProgramUsage_8h-source.html">OgreGpuProgramUsage.h</a><li><a class="el" href="OgreGpuProgramUsage_8cpp-source.html">OgreGpuProgramUsage.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>