<html> <head> <title>Ogre::CgProgramFactory 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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>Ogre::CgProgramFactory Class Reference</h1>Factory class for Cg programs. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreCgProgramFactory_8h-source.html">OgreCgProgramFactory.h</a>></code> <p> Inheritance diagram for Ogre::CgProgramFactory:<p><center><img src="classOgre_1_1CgProgramFactory__inherit__graph.png" border="0" usemap="#Ogre_1_1CgProgramFactory__inherit__map" alt="Inheritance graph"></center> <map name="Ogre_1_1CgProgramFactory__inherit__map"> <area href="classOgre_1_1HighLevelGpuProgramFactory.html" shape="rect" coords="7,36,231,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Ogre::CgProgramFactory:<p><center><img src="classOgre_1_1CgProgramFactory__coll__graph.png" border="0" usemap="#Ogre_1_1CgProgramFactory__coll__map" alt="Collaboration graph"></center> <map name="Ogre_1_1CgProgramFactory__coll__map"> <area href="classOgre_1_1HighLevelGpuProgramFactory.html" shape="rect" coords="7,36,231,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1CgProgramFactory-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> </td><td valign=bottom><a class="el" href="classOgre_1_1CgProgramFactory.html#Ogre_1_1CgProgramFactorya0">CgProgramFactory</a> ()</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOgre_1_1CgProgramFactory.html#Ogre_1_1CgProgramFactorya1">~CgProgramFactory</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classOgre_1_1String.html">String</a> & </td><td valign=bottom><a class="el" href="classOgre_1_1CgProgramFactory.html#Ogre_1_1CgProgramFactorya2">getLanguage</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>Get the name of the language this factory creates programs for.</em> <a href="#Ogre_1_1CgProgramFactorya2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1CgProgramFactory.html#Ogre_1_1CgProgramFactorya3">create</a> (const <a class="el" href="classOgre_1_1String.html">String</a> &name, <a class="el" href="namespaceOgre.html#a626">GpuProgramType</a> gptype)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1CgProgramFactory.html#Ogre_1_1CgProgramFactorya4">destroy</a> (<a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a> *prog)</td></tr> <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>CGcontext </td><td valign=bottom><a class="el" href="classOgre_1_1CgProgramFactory.html#Ogre_1_1CgProgramFactoryn0">mCgContext</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Factory class for Cg programs. <p> <p> Definition at line <a class="el" href="OgreCgProgramFactory_8h-source.html#l00034">34</a> of file <a class="el" href="OgreCgProgramFactory_8h-source.html">OgreCgProgramFactory.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="Ogre_1_1CgProgramFactorya0" doxytag="Ogre::CgProgramFactory::CgProgramFactory"></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::CgProgramFactory::CgProgramFactory </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00034">34</a> of file <a class="el" href="OgreCgProgramFactory_8cpp-source.html">OgreCgProgramFactory.cpp</a>. <p> References <a class="el" href="OgreCgProgramManagerDll_8cpp-source.html#l00048">Ogre::checkForCgError</a>(), and <a class="el" href="OgreCgProgramFactory_8h-source.html#l00037">mCgContext</a>. </td> </tr> </table> <a name="Ogre_1_1CgProgramFactorya1" doxytag="Ogre::CgProgramFactory::~CgProgramFactory"></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::CgProgramFactory::~CgProgramFactory </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00042">42</a> of file <a class="el" href="OgreCgProgramFactory_8cpp-source.html">OgreCgProgramFactory.cpp</a>. <p> References <a class="el" href="OgreCgProgramManagerDll_8cpp-source.html#l00048">Ogre::checkForCgError</a>(), and <a class="el" href="OgreCgProgramFactory_8h-source.html#l00037">mCgContext</a>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="Ogre_1_1CgProgramFactorya3" doxytag="Ogre::CgProgramFactory::create"></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_1HighLevelGpuProgram.html">HighLevelGpuProgram</a> * Ogre::CgProgramFactory::create </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classOgre_1_1String.html">String</a> & </td> <td class="mdname" nowrap> <em>name</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="namespaceOgre.html#a626">GpuProgramType</a> </td> <td class="mdname" nowrap> <em>gptype</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Implements <a class="el" href="classOgre_1_1HighLevelGpuProgramFactory.html#Ogre_1_1HighLevelGpuProgramFactorya3">Ogre::HighLevelGpuProgramFactory</a>. <p> Definition at line <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00055">55</a> of file <a class="el" href="OgreCgProgramFactory_8cpp-source.html">OgreCgProgramFactory.cpp</a>. <p> References <a class="el" href="OgreGpuProgram_8h-source.html#l00037">Ogre::GpuProgramType</a>, <a class="el" href="OgreCgProgramFactory_8h-source.html#l00037">mCgContext</a>, and <a class="el" href="OgreD3D9HLSLProgramFactory_8cpp-source.html#l00032">Ogre::sLanguageName</a>. </td> </tr> </table> <a name="Ogre_1_1CgProgramFactorya4" doxytag="Ogre::CgProgramFactory::destroy"></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::CgProgramFactory::destroy </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1HighLevelGpuProgram.html">HighLevelGpuProgram</a> * </td> <td class="mdname1" valign="top" nowrap> <em>prog</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Implements <a class="el" href="classOgre_1_1HighLevelGpuProgramFactory.html#Ogre_1_1HighLevelGpuProgramFactorya4">Ogre::HighLevelGpuProgramFactory</a>. <p> Definition at line <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00060">60</a> of file <a class="el" href="OgreCgProgramFactory_8cpp-source.html">OgreCgProgramFactory.cpp</a>. </td> </tr> </table> <a name="Ogre_1_1CgProgramFactorya2" doxytag="Ogre::CgProgramFactory::getLanguage"></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> & Ogre::CgProgramFactory::getLanguage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Get the name of the language this factory creates programs for. <p> <p> Implements <a class="el" href="classOgre_1_1HighLevelGpuProgramFactory.html#Ogre_1_1HighLevelGpuProgramFactorya2">Ogre::HighLevelGpuProgramFactory</a>. <p> Definition at line <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00050">50</a> of file <a class="el" href="OgreCgProgramFactory_8cpp-source.html">OgreCgProgramFactory.cpp</a>. <p> References <a class="el" href="OgreD3D9HLSLProgramFactory_8cpp-source.html#l00032">Ogre::sLanguageName</a>. </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="Ogre_1_1CgProgramFactoryn0" doxytag="Ogre::CgProgramFactory::mCgContext"></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"> CGcontext Ogre::CgProgramFactory::mCgContext<code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreCgProgramFactory_8h-source.html#l00037">37</a> of file <a class="el" href="OgreCgProgramFactory_8h-source.html">OgreCgProgramFactory.h</a>. <p> Referenced by <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00034">CgProgramFactory</a>(), <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00055">create</a>(), and <a class="el" href="OgreCgProgramFactory_8cpp-source.html#l00042">~CgProgramFactory</a>(). </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="OgreCgProgramFactory_8h-source.html">OgreCgProgramFactory.h</a><li><a class="el" href="OgreCgProgramFactory_8cpp-source.html">OgreCgProgramFactory.cpp</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:11:53 2004 </p> </body> </html>