616 lines
34 KiB
HTML
616 lines
34 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>SFML - Simple and Fast Multimedia Library</title>
|
|
<meta http-equiv="Content-Type" content="text/html;"/>
|
|
<meta charset="utf-8"/>
|
|
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
|
|
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="banner-container">
|
|
<div id="banner">
|
|
<span id="sfml">SFML 2.5.1</span>
|
|
</div>
|
|
</div>
|
|
<div id="content">
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><b>sf</b></li><li class="navelem"><a class="el" href="classsf_1_1VideoMode.html">VideoMode</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="#pub-attribs">Public Attributes</a> |
|
|
<a href="#related">Related Functions</a> |
|
|
<a href="classsf_1_1VideoMode-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">sf::VideoMode Class Reference<div class="ingroups"><a class="el" href="group__window.html">Window module</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><a class="el" href="classsf_1_1VideoMode.html" title="VideoMode defines a video mode (width, height, bpp) ">VideoMode</a> defines a video mode (width, height, bpp)
|
|
<a href="classsf_1_1VideoMode.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="VideoMode_8hpp_source.html">VideoMode.hpp</a>></code></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a04c9417e5c304510bef5f6aeb03f6ce1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a04c9417e5c304510bef5f6aeb03f6ce1">VideoMode</a> ()</td></tr>
|
|
<tr class="memdesc:a04c9417e5c304510bef5f6aeb03f6ce1"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a04c9417e5c304510bef5f6aeb03f6ce1">More...</a><br /></td></tr>
|
|
<tr class="separator:a04c9417e5c304510bef5f6aeb03f6ce1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a46c35ed41de9e115661dcd529d64e9d3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a46c35ed41de9e115661dcd529d64e9d3">VideoMode</a> (unsigned int modeWidth, unsigned int modeHeight, unsigned int modeBitsPerPixel=32)</td></tr>
|
|
<tr class="memdesc:a46c35ed41de9e115661dcd529d64e9d3"><td class="mdescLeft"> </td><td class="mdescRight">Construct the video mode with its attributes. <a href="#a46c35ed41de9e115661dcd529d64e9d3">More...</a><br /></td></tr>
|
|
<tr class="separator:a46c35ed41de9e115661dcd529d64e9d3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad5e04c044b0925523c75ecb173d2129a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#ad5e04c044b0925523c75ecb173d2129a">isValid</a> () const</td></tr>
|
|
<tr class="memdesc:ad5e04c044b0925523c75ecb173d2129a"><td class="mdescLeft"> </td><td class="mdescRight">Tell whether or not the video mode is valid. <a href="#ad5e04c044b0925523c75ecb173d2129a">More...</a><br /></td></tr>
|
|
<tr class="separator:ad5e04c044b0925523c75ecb173d2129a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ac1be160a4342e6eafb2cb0e8c9b18d44"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#ac1be160a4342e6eafb2cb0e8c9b18d44">getDesktopMode</a> ()</td></tr>
|
|
<tr class="memdesc:ac1be160a4342e6eafb2cb0e8c9b18d44"><td class="mdescLeft"> </td><td class="mdescRight">Get the current desktop video mode. <a href="#ac1be160a4342e6eafb2cb0e8c9b18d44">More...</a><br /></td></tr>
|
|
<tr class="separator:ac1be160a4342e6eafb2cb0e8c9b18d44"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6815b9b3b35767d5b4563fbed4bfc67b"><td class="memItemLeft" align="right" valign="top">static const std::vector< <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a6815b9b3b35767d5b4563fbed4bfc67b">getFullscreenModes</a> ()</td></tr>
|
|
<tr class="memdesc:a6815b9b3b35767d5b4563fbed4bfc67b"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve all the video modes supported in fullscreen mode. <a href="#a6815b9b3b35767d5b4563fbed4bfc67b">More...</a><br /></td></tr>
|
|
<tr class="separator:a6815b9b3b35767d5b4563fbed4bfc67b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
|
|
Public Attributes</h2></td></tr>
|
|
<tr class="memitem:a9b3b2ad2cac6b9c266823fb5ed506d90"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a9b3b2ad2cac6b9c266823fb5ed506d90">width</a></td></tr>
|
|
<tr class="memdesc:a9b3b2ad2cac6b9c266823fb5ed506d90"><td class="mdescLeft"> </td><td class="mdescRight">Video mode width, in pixels. <a href="#a9b3b2ad2cac6b9c266823fb5ed506d90">More...</a><br /></td></tr>
|
|
<tr class="separator:a9b3b2ad2cac6b9c266823fb5ed506d90"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5a88d44c9470db7474361a42a189342d"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a5a88d44c9470db7474361a42a189342d">height</a></td></tr>
|
|
<tr class="memdesc:a5a88d44c9470db7474361a42a189342d"><td class="mdescLeft"> </td><td class="mdescRight">Video mode height, in pixels. <a href="#a5a88d44c9470db7474361a42a189342d">More...</a><br /></td></tr>
|
|
<tr class="separator:a5a88d44c9470db7474361a42a189342d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa080f1ef96a1008d58b1920eceb189df"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#aa080f1ef96a1008d58b1920eceb189df">bitsPerPixel</a></td></tr>
|
|
<tr class="memdesc:aa080f1ef96a1008d58b1920eceb189df"><td class="mdescLeft"> </td><td class="mdescRight">Video mode pixel depth, in bits per pixels. <a href="#aa080f1ef96a1008d58b1920eceb189df">More...</a><br /></td></tr>
|
|
<tr class="separator:aa080f1ef96a1008d58b1920eceb189df"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
|
|
Related Functions</h2></td></tr>
|
|
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
|
|
</td></tr>
|
|
<tr class="memitem:aca24086fd94d11014f3a0b5ca9a3acd6"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#aca24086fd94d11014f3a0b5ca9a3acd6">operator==</a> (const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &left, const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &right)</td></tr>
|
|
<tr class="memdesc:aca24086fd94d11014f3a0b5ca9a3acd6"><td class="mdescLeft"> </td><td class="mdescRight">Overload of == operator to compare two video modes. <a href="#aca24086fd94d11014f3a0b5ca9a3acd6">More...</a><br /></td></tr>
|
|
<tr class="separator:aca24086fd94d11014f3a0b5ca9a3acd6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a34b5c266a7b9cd5bc95de62f8beafc5a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a34b5c266a7b9cd5bc95de62f8beafc5a">operator!=</a> (const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &left, const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &right)</td></tr>
|
|
<tr class="memdesc:a34b5c266a7b9cd5bc95de62f8beafc5a"><td class="mdescLeft"> </td><td class="mdescRight">Overload of != operator to compare two video modes. <a href="#a34b5c266a7b9cd5bc95de62f8beafc5a">More...</a><br /></td></tr>
|
|
<tr class="separator:a34b5c266a7b9cd5bc95de62f8beafc5a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a54cc77c0b6c4b133e0147a43d6829b13"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a54cc77c0b6c4b133e0147a43d6829b13">operator<</a> (const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &left, const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &right)</td></tr>
|
|
<tr class="memdesc:a54cc77c0b6c4b133e0147a43d6829b13"><td class="mdescLeft"> </td><td class="mdescRight">Overload of < operator to compare video modes. <a href="#a54cc77c0b6c4b133e0147a43d6829b13">More...</a><br /></td></tr>
|
|
<tr class="separator:a54cc77c0b6c4b133e0147a43d6829b13"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5b894cab5f2a3a14597e4c6d200179a4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a5b894cab5f2a3a14597e4c6d200179a4">operator></a> (const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &left, const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &right)</td></tr>
|
|
<tr class="memdesc:a5b894cab5f2a3a14597e4c6d200179a4"><td class="mdescLeft"> </td><td class="mdescRight">Overload of > operator to compare video modes. <a href="#a5b894cab5f2a3a14597e4c6d200179a4">More...</a><br /></td></tr>
|
|
<tr class="separator:a5b894cab5f2a3a14597e4c6d200179a4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa094b7b9ae4c0194892ebda7b4b9bb37"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#aa094b7b9ae4c0194892ebda7b4b9bb37">operator<=</a> (const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &left, const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &right)</td></tr>
|
|
<tr class="memdesc:aa094b7b9ae4c0194892ebda7b4b9bb37"><td class="mdescLeft"> </td><td class="mdescRight">Overload of <= operator to compare video modes. <a href="#aa094b7b9ae4c0194892ebda7b4b9bb37">More...</a><br /></td></tr>
|
|
<tr class="separator:aa094b7b9ae4c0194892ebda7b4b9bb37"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6e3d91683fcabb88c5b640e9884fe3df"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classsf_1_1VideoMode.html#a6e3d91683fcabb88c5b640e9884fe3df">operator>=</a> (const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &left, const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> &right)</td></tr>
|
|
<tr class="memdesc:a6e3d91683fcabb88c5b640e9884fe3df"><td class="mdescLeft"> </td><td class="mdescRight">Overload of >= operator to compare video modes. <a href="#a6e3d91683fcabb88c5b640e9884fe3df">More...</a><br /></td></tr>
|
|
<tr class="separator:a6e3d91683fcabb88c5b640e9884fe3df"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p><a class="el" href="classsf_1_1VideoMode.html" title="VideoMode defines a video mode (width, height, bpp) ">VideoMode</a> defines a video mode (width, height, bpp) </p>
|
|
<p>A video mode is defined by a width and a height (in pixels) and a depth (in bits per pixel).</p>
|
|
<p>Video modes are used to setup windows (<a class="el" href="classsf_1_1Window.html" title="Window that serves as a target for OpenGL rendering. ">sf::Window</a>) at creation time.</p>
|
|
<p>The main usage of video modes is for fullscreen mode: indeed you must use one of the valid video modes allowed by the OS (which are defined by what the monitor and the graphics card support), otherwise your window creation will just fail.</p>
|
|
<p><a class="el" href="classsf_1_1VideoMode.html" title="VideoMode defines a video mode (width, height, bpp) ">sf::VideoMode</a> provides a static function for retrieving the list of all the video modes supported by the system: <a class="el" href="classsf_1_1VideoMode.html#a6815b9b3b35767d5b4563fbed4bfc67b" title="Retrieve all the video modes supported in fullscreen mode. ">getFullscreenModes()</a>.</p>
|
|
<p>A custom video mode can also be checked directly for fullscreen compatibility with its <a class="el" href="classsf_1_1VideoMode.html#ad5e04c044b0925523c75ecb173d2129a" title="Tell whether or not the video mode is valid. ">isValid()</a> function.</p>
|
|
<p>Additionally, <a class="el" href="classsf_1_1VideoMode.html" title="VideoMode defines a video mode (width, height, bpp) ">sf::VideoMode</a> provides a static function to get the mode currently used by the desktop: <a class="el" href="classsf_1_1VideoMode.html#ac1be160a4342e6eafb2cb0e8c9b18d44" title="Get the current desktop video mode. ">getDesktopMode()</a>. This allows to build windows with the same size or pixel depth as the current resolution.</p>
|
|
<p>Usage example: </p><div class="fragment"><div class="line"><span class="comment">// Display the list of all the video modes available for fullscreen</span></div><div class="line">std::vector<sf::VideoMode> modes = <a class="code" href="classsf_1_1VideoMode.html#a6815b9b3b35767d5b4563fbed4bfc67b">sf::VideoMode::getFullscreenModes</a>();</div><div class="line"><span class="keywordflow">for</span> (std::size_t i = 0; i < modes.size(); ++i)</div><div class="line">{</div><div class="line"> <a class="code" href="classsf_1_1VideoMode.html">sf::VideoMode</a> mode = modes[i];</div><div class="line"> std::cout << <span class="stringliteral">"Mode #"</span> << i << <span class="stringliteral">": "</span></div><div class="line"> << mode.<a class="code" href="classsf_1_1VideoMode.html#a9b3b2ad2cac6b9c266823fb5ed506d90">width</a> << <span class="stringliteral">"x"</span> << mode.<a class="code" href="classsf_1_1VideoMode.html#a5a88d44c9470db7474361a42a189342d">height</a> << <span class="stringliteral">" - "</span></div><div class="line"> << mode.<a class="code" href="classsf_1_1VideoMode.html#aa080f1ef96a1008d58b1920eceb189df">bitsPerPixel</a> << <span class="stringliteral">" bpp"</span> << std::endl;</div><div class="line">}</div><div class="line"></div><div class="line"><span class="comment">// Create a window with the same pixel depth as the desktop</span></div><div class="line"><a class="code" href="classsf_1_1VideoMode.html">sf::VideoMode</a> desktop = <a class="code" href="classsf_1_1VideoMode.html#ac1be160a4342e6eafb2cb0e8c9b18d44">sf::VideoMode::getDesktopMode</a>();</div><div class="line">window.<a class="code" href="classsf_1_1Window.html#a30e6edf2162f8dbff61023b9de5d961d">create</a>(<a class="code" href="classsf_1_1VideoMode.html">sf::VideoMode</a>(1024, 768, desktop.<a class="code" href="classsf_1_1VideoMode.html#aa080f1ef96a1008d58b1920eceb189df">bitsPerPixel</a>), <span class="stringliteral">"SFML window"</span>);</div></div><!-- fragment -->
|
|
<p class="definition">Definition at line <a class="el" href="VideoMode_8hpp_source.html#l00041">41</a> of file <a class="el" href="VideoMode_8hpp_source.html">VideoMode.hpp</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a04c9417e5c304510bef5f6aeb03f6ce1"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a04c9417e5c304510bef5f6aeb03f6ce1">◆ </a></span>VideoMode() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">sf::VideoMode::VideoMode </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Default constructor. </p>
|
|
<p>This constructors initializes all members to 0. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a46c35ed41de9e115661dcd529d64e9d3"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a46c35ed41de9e115661dcd529d64e9d3">◆ </a></span>VideoMode() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">sf::VideoMode::VideoMode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"><em>modeWidth</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"><em>modeHeight</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">unsigned int </td>
|
|
<td class="paramname"><em>modeBitsPerPixel</em> = <code>32</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Construct the video mode with its attributes. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">modeWidth</td><td>Width in pixels </td></tr>
|
|
<tr><td class="paramname">modeHeight</td><td>Height in pixels </td></tr>
|
|
<tr><td class="paramname">modeBitsPerPixel</td><td>Pixel depths in bits per pixel </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="ac1be160a4342e6eafb2cb0e8c9b18d44"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac1be160a4342e6eafb2cb0e8c9b18d44">◆ </a></span>getDesktopMode()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> sf::VideoMode::getDesktopMode </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get the current desktop video mode. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>Current desktop video mode </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6815b9b3b35767d5b4563fbed4bfc67b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6815b9b3b35767d5b4563fbed4bfc67b">◆ </a></span>getFullscreenModes()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static const std::vector<<a class="el" href="classsf_1_1VideoMode.html">VideoMode</a>>& sf::VideoMode::getFullscreenModes </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Retrieve all the video modes supported in fullscreen mode. </p>
|
|
<p>When creating a fullscreen window, the video mode is restricted to be compatible with what the graphics driver and monitor support. This function returns the complete list of all video modes that can be used in fullscreen mode. The returned array is sorted from best to worst, so that the first element will always give the best mode (higher width, height and bits-per-pixel).</p>
|
|
<dl class="section return"><dt>Returns</dt><dd>Array containing all the supported fullscreen modes </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ad5e04c044b0925523c75ecb173d2129a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad5e04c044b0925523c75ecb173d2129a">◆ </a></span>isValid()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool sf::VideoMode::isValid </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Tell whether or not the video mode is valid. </p>
|
|
<p>The validity of video modes is only relevant when using fullscreen windows; otherwise any video mode can be used with no restriction.</p>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if the video mode is valid for fullscreen mode </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Friends And Related Function Documentation</h2>
|
|
<a id="a34b5c266a7b9cd5bc95de62f8beafc5a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a34b5c266a7b9cd5bc95de62f8beafc5a">◆ </a></span>operator!=()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool operator!= </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>left</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>right</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">related</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Overload of != operator to compare two video modes. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">left</td><td>Left operand (a video mode) </td></tr>
|
|
<tr><td class="paramname">right</td><td>Right operand (a video mode)</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if modes are different </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a54cc77c0b6c4b133e0147a43d6829b13"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a54cc77c0b6c4b133e0147a43d6829b13">◆ </a></span>operator<()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool operator< </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>left</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>right</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">related</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Overload of < operator to compare video modes. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">left</td><td>Left operand (a video mode) </td></tr>
|
|
<tr><td class="paramname">right</td><td>Right operand (a video mode)</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if <em>left</em> is lesser than <em>right</em> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa094b7b9ae4c0194892ebda7b4b9bb37"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa094b7b9ae4c0194892ebda7b4b9bb37">◆ </a></span>operator<=()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool operator<= </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>left</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>right</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">related</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Overload of <= operator to compare video modes. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">left</td><td>Left operand (a video mode) </td></tr>
|
|
<tr><td class="paramname">right</td><td>Right operand (a video mode)</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if <em>left</em> is lesser or equal than <em>right</em> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aca24086fd94d11014f3a0b5ca9a3acd6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aca24086fd94d11014f3a0b5ca9a3acd6">◆ </a></span>operator==()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool operator== </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>left</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>right</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">related</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Overload of == operator to compare two video modes. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">left</td><td>Left operand (a video mode) </td></tr>
|
|
<tr><td class="paramname">right</td><td>Right operand (a video mode)</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if modes are equal </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5b894cab5f2a3a14597e4c6d200179a4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5b894cab5f2a3a14597e4c6d200179a4">◆ </a></span>operator>()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool operator> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>left</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>right</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">related</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Overload of > operator to compare video modes. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">left</td><td>Left operand (a video mode) </td></tr>
|
|
<tr><td class="paramname">right</td><td>Right operand (a video mode)</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if <em>left</em> is greater than <em>right</em> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6e3d91683fcabb88c5b640e9884fe3df"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6e3d91683fcabb88c5b640e9884fe3df">◆ </a></span>operator>=()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool operator>= </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>left</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classsf_1_1VideoMode.html">VideoMode</a> & </td>
|
|
<td class="paramname"><em>right</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">related</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Overload of >= operator to compare video modes. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">left</td><td>Left operand (a video mode) </td></tr>
|
|
<tr><td class="paramname">right</td><td>Right operand (a video mode)</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>True if <em>left</em> is greater or equal than <em>right</em> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="aa080f1ef96a1008d58b1920eceb189df"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa080f1ef96a1008d58b1920eceb189df">◆ </a></span>bitsPerPixel</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">unsigned int sf::VideoMode::bitsPerPixel</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Video mode pixel depth, in bits per pixels. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="VideoMode_8hpp_source.html#l00104">104</a> of file <a class="el" href="VideoMode_8hpp_source.html">VideoMode.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a5a88d44c9470db7474361a42a189342d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a5a88d44c9470db7474361a42a189342d">◆ </a></span>height</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">unsigned int sf::VideoMode::height</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Video mode height, in pixels. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="VideoMode_8hpp_source.html#l00103">103</a> of file <a class="el" href="VideoMode_8hpp_source.html">VideoMode.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a9b3b2ad2cac6b9c266823fb5ed506d90"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a9b3b2ad2cac6b9c266823fb5ed506d90">◆ </a></span>width</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">unsigned int sf::VideoMode::width</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Video mode width, in pixels. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="VideoMode_8hpp_source.html#l00102">102</a> of file <a class="el" href="VideoMode_8hpp_source.html">VideoMode.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="VideoMode_8hpp_source.html">VideoMode.hpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
</div>
|
|
<div id="footer-container">
|
|
<div id="footer">
|
|
SFML is licensed under the terms and conditions of the <a href="https://www.sfml-dev.org/license.php">zlib/png license</a>.<br>
|
|
Copyright © Laurent Gomila ::
|
|
Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> ::
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|