<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_DisplayMode - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_DisplayMode</h1> <p> Display mode class. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <i>none</i> <br>Group: Display (Display 2D)</p> <p> #include <ClanLib/display.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DisplayMode__CL_DisplayMode.html">CL_DisplayMode</a></p></td><td valign=top><p></p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DisplayMode__get_resolution.html">get_resolution</a></p></td><td valign=top><p> Returns the resolution of the displaymode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayMode__get_bpp.html">get_bpp</a></p></td><td valign=top><p> Returns the numbers of bytes per pixel of the displaymode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayMode__get_refresh_rate.html">get_refresh_rate</a></p></td><td valign=top><p> Returns the refresh rate of the displaymode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayMode__get_string.html">get_string</a></p></td><td valign=top><p> Returns the information as a string in the format "640x480x32@60"</p></td></tr><tr><td width=30% valign=top><p><a href="CL_DisplayMode__get_display_modes.html">get_display_modes</a></p></td><td valign=top><p> Returns a list over all available display modes.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_DisplayMode__operator =.html">operator =</a></p></td><td valign=top><p> Copy assignment operator.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Display/Display 2D! !header=display.h! <p>This class contains information about one display mode available. It also contains a static function to get a list of all available display modes.</p> <p>Code example which dumps a list over all available modes:</p> <pre> std::vector < CL_DisplayMode > &modes = CL_DisplayMode::get_display_modes(); for(unsigned int i=0; i < modes.size(); ++i) std::cout << modes[i].get_string() << std::endl; </pre> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->