<html> <head> <title>Ogre::DDVideoModeList 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::DDVideoModeList Class Reference</h1>Encapsulates enumeration of DirectDraw video modes. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreDDVideoModeList_8h-source.html">OgreDDVideoModeList.h</a>></code> <p> <a href="classOgre_1_1DDVideoModeList-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_1DDVideoModeList.html#Ogre_1_1DDVideoModeLista0">DDVideoModeList</a> (LPDIRECTDRAW7 <a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeListo0">lpDD7</a>)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeLista1">~DDVideoModeList</a> ()</td></tr> <tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeLista2">enumerate</a> (void)</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1DDVideoMode.html">DDVideoMode</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeLista3">item</a> (int index)</td></tr> <tr><td nowrap align=right valign=top>unsigned int </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeLista4">count</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>newMode</em> <a href="#Ogre_1_1DDVideoModeLista4"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1DDVideoMode.html">DDVideoMode</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeLista5">getClosestMatch</a> (int width, int height, int colourDepth)</td></tr> <tr><td colspan=2><br><h2>Private Methods</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeListc0">AddMode</a> (LPDDSURFACEDESC2 lpDDSurfaceDesc)</td></tr> <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>LPDIRECTDRAW7 </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeListo0">lpDD7</a></td></tr> <tr><td nowrap align=right valign=top>std::vector< <a class="el" href="classOgre_1_1DDVideoMode.html">DDVideoMode</a> > </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeListo1">mModeList</a></td></tr> <tr><td colspan=2><br><h2>Friends</h2></td></tr> <tr><td nowrap align=right valign=top>HRESULT CALLBACK </td><td valign=bottom><a class="el" href="classOgre_1_1DDVideoModeList.html#Ogre_1_1DDVideoModeListl0">DDEnumModesCallback</a> (LPDDSURFACEDESC2 lpDDSD2, LPVOID lpContext)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Encapsulates enumeration of DirectDraw video modes. <p> Utility class for <a class="el" href="classOgre_1_1D3DRenderSystem.html">D3DRenderSystem</a>. <p> <p> Definition at line <a class="el" href="OgreDDVideoModeList_8h-source.html#l00038">38</a> of file <a class="el" href="OgreDDVideoModeList_8h-source.html">OgreDDVideoModeList.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="Ogre_1_1DDVideoModeLista0" doxytag="Ogre::DDVideoModeList::DDVideoModeList"></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::DDVideoModeList::DDVideoModeList </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">LPDIRECTDRAW7 </td> <td class="mdname1" valign="top" nowrap> <em>lpDD7</em> </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="OgreDDVideoModeList_8cpp-source.html#l00052">52</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> References <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00076">enumerate</a>(), and <a class="el" href="OgreDDVideoModeList_8h-source.html#l00044">lpDD7</a>. </td> </tr> </table> <a name="Ogre_1_1DDVideoModeLista1" doxytag="Ogre::DDVideoModeList::~DDVideoModeList"></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::DDVideoModeList::~DDVideoModeList </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="OgreDDVideoModeList_8cpp-source.html#l00065">65</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> References <a class="el" href="OgreDDVideoModeList_8h-source.html#l00047">mModeList</a>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="Ogre_1_1DDVideoModeListc0" doxytag="Ogre::DDVideoModeList::AddMode"></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::DDVideoModeList::AddMode </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">LPDDSURFACEDESC2 </td> <td class="mdname1" valign="top" nowrap> <em>lpDDSurfaceDesc</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [private]</code></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="OgreDDVideoModeList_8cpp-source.html#l00090">90</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> References <a class="el" href="OgreDDVideoModeList_8h-source.html#l00047">mModeList</a>. <p> Referenced by <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00032">Ogre::DDEnumModesCallback</a>(). </td> </tr> </table> <a name="Ogre_1_1DDVideoModeLista4" doxytag="Ogre::DDVideoModeList::count"></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"> unsigned int Ogre::DDVideoModeList::count </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></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> newMode <p> <p> Definition at line <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00104">104</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> References <a class="el" href="OgreDDVideoModeList_8h-source.html#l00047">mModeList</a>. <p> Referenced by <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00120">getClosestMatch</a>(), <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l00323">Ogre::D3DRenderSystem::initialise</a>(), and <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l00178">Ogre::D3DRenderSystem::refreshDDSettings</a>(). </td> </tr> </table> <a name="Ogre_1_1DDVideoModeLista2" doxytag="Ogre::DDVideoModeList::enumerate"></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::DDVideoModeList::enumerate </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></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="OgreDDVideoModeList_8cpp-source.html#l00076">76</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> References <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00032">DDEnumModesCallback</a>, and <a class="el" href="OgreDDVideoModeList_8h-source.html#l00044">lpDD7</a>. <p> Referenced by <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00052">DDVideoModeList</a>(). </td> </tr> </table> <a name="Ogre_1_1DDVideoModeLista5" doxytag="Ogre::DDVideoModeList::getClosestMatch"></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_1DDVideoMode.html">DDVideoMode</a> * Ogre::DDVideoModeList::getClosestMatch </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>width</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>height</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>colourDepth</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></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="OgreDDVideoModeList_8cpp-source.html#l00120">120</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> References <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00104">count</a>(), <a class="el" href="OgreDDVideoMode_8h-source.html#l00046">Ogre::DDVideoMode::mColourDepth</a>, <a class="el" href="OgreDDVideoMode_8h-source.html#l00045">Ogre::DDVideoMode::mHeight</a>, <a class="el" href="OgreDDVideoModeList_8h-source.html#l00047">mModeList</a>, and <a class="el" href="OgreDDVideoMode_8h-source.html#l00044">Ogre::DDVideoMode::mWidth</a>. </td> </tr> </table> <a name="Ogre_1_1DDVideoModeLista3" doxytag="Ogre::DDVideoModeList::item"></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_1DDVideoMode.html">DDVideoMode</a> * Ogre::DDVideoModeList::item </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>index</em> </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="OgreDDVideoModeList_8cpp-source.html#l00109">109</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> References <a class="el" href="OgreDDVideoModeList_8h-source.html#l00047">mModeList</a>. <p> Referenced by <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l00323">Ogre::D3DRenderSystem::initialise</a>(), and <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l00178">Ogre::D3DRenderSystem::refreshDDSettings</a>(). </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="Ogre_1_1DDVideoModeListl0" doxytag="Ogre::DDVideoModeList::DDEnumModesCallback"></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"> HRESULT CALLBACK DDEnumModesCallback </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">LPDDSURFACEDESC2 </td> <td class="mdname" nowrap> <em>lpDDSD2</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>LPVOID </td> <td class="mdname" nowrap> <em>lpContext</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></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="OgreDDVideoModeList_8cpp-source.html#l00032">32</a> of file <a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a>. <p> Referenced by <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00076">enumerate</a>(). </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="Ogre_1_1DDVideoModeListo0" doxytag="Ogre::DDVideoModeList::lpDD7"></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"> LPDIRECTDRAW7 Ogre::DDVideoModeList::lpDD7<code> [private]</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="OgreDDVideoModeList_8h-source.html#l00044">44</a> of file <a class="el" href="OgreDDVideoModeList_8h-source.html">OgreDDVideoModeList.h</a>. <p> Referenced by <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00052">DDVideoModeList</a>(), and <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00076">enumerate</a>(). </td> </tr> </table> <a name="Ogre_1_1DDVideoModeListo1" doxytag="Ogre::DDVideoModeList::mModeList"></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"> std::vector<<a class="el" href="classOgre_1_1DDVideoMode.html">DDVideoMode</a>> Ogre::DDVideoModeList::mModeList<code> [private]</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="OgreDDVideoModeList_8h-source.html#l00047">47</a> of file <a class="el" href="OgreDDVideoModeList_8h-source.html">OgreDDVideoModeList.h</a>. <p> Referenced by <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00090">AddMode</a>(), <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00104">count</a>(), <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00120">getClosestMatch</a>(), <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00109">item</a>(), and <a class="el" href="OgreDDVideoModeList_8cpp-source.html#l00065">~DDVideoModeList</a>(). </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="OgreDDVideoModeList_8h-source.html">OgreDDVideoModeList.h</a><li><a class="el" href="OgreDDVideoModeList_8cpp-source.html">OgreDDVideoModeList.cpp</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:12:29 2004 </p> </body> </html>