/usr/share/doc/libcsfml-doc/html/Listener_8h.htm is in libcsfml-doc 2.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | <!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>CSFML - C binding of the Simple and Fast Multimedia Library</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
</head>
<body>
<div id="banner-container">
<div id="banner">
<span id="sfml">CSFML</span>
</div>
</div>
<div id="content">
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.htm"><span>Main Page</span></a></li>
<li><a href="annotated.htm"><span>Data Structures</span></a></li>
<li class="current"><a href="files.htm"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.htm"><span>File List</span></a></li>
<li><a href="globals.htm"><span>Globals</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.htm">include</a></li><li class="navelem"><a class="el" href="dir_c0a853e81d6f1c1f0a3eb7a27dc24256.htm">SFML</a></li><li class="navelem"><a class="el" href="dir_dd49ddb3ba8035e4a328f8c5f31cda7e.htm">Audio</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Listener.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <<a class="el" href="Audio_2Export_8h_source.htm">SFML/Audio/Export.h</a>></code><br />
<code>#include <<a class="el" href="Vector3_8h_source.htm">SFML/System/Vector3.h</a>></code><br />
</div>
<p><a href="Listener_8h_source.htm">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa4127e59b8a47594250805a08733c8dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#aa4127e59b8a47594250805a08733c8dc">sfListener_setGlobalVolume</a> (float volume)</td></tr>
<tr class="memdesc:aa4127e59b8a47594250805a08733c8dc"><td class="mdescLeft"> </td><td class="mdescRight">Change the global volume of all the sounds and musics. <a href="#aa4127e59b8a47594250805a08733c8dc">More...</a><br /></td></tr>
<tr class="separator:aa4127e59b8a47594250805a08733c8dc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8e73329d9b6cc5028dce7f5345717f0f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> float </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#a8e73329d9b6cc5028dce7f5345717f0f">sfListener_getGlobalVolume</a> (void)</td></tr>
<tr class="memdesc:a8e73329d9b6cc5028dce7f5345717f0f"><td class="mdescLeft"> </td><td class="mdescRight">Get the current value of the global volume. <a href="#a8e73329d9b6cc5028dce7f5345717f0f">More...</a><br /></td></tr>
<tr class="separator:a8e73329d9b6cc5028dce7f5345717f0f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3fdd38501967626b0c7fe5493cef8c25"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#a3fdd38501967626b0c7fe5493cef8c25">sfListener_setPosition</a> (<a class="el" href="structsfVector3f.htm">sfVector3f</a> position)</td></tr>
<tr class="memdesc:a3fdd38501967626b0c7fe5493cef8c25"><td class="mdescLeft"> </td><td class="mdescRight">Set the position of the listener in the scene. <a href="#a3fdd38501967626b0c7fe5493cef8c25">More...</a><br /></td></tr>
<tr class="separator:a3fdd38501967626b0c7fe5493cef8c25"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aba1b86656c673e1a39bdb70f3cabce60"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> <a class="el" href="structsfVector3f.htm">sfVector3f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#aba1b86656c673e1a39bdb70f3cabce60">sfListener_getPosition</a> ()</td></tr>
<tr class="memdesc:aba1b86656c673e1a39bdb70f3cabce60"><td class="mdescLeft"> </td><td class="mdescRight">Get the current position of the listener in the scene. <a href="#aba1b86656c673e1a39bdb70f3cabce60">More...</a><br /></td></tr>
<tr class="separator:aba1b86656c673e1a39bdb70f3cabce60"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0ec50fc6c3aafcb15d4894170502b932"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#a0ec50fc6c3aafcb15d4894170502b932">sfListener_setDirection</a> (<a class="el" href="structsfVector3f.htm">sfVector3f</a> direction)</td></tr>
<tr class="memdesc:a0ec50fc6c3aafcb15d4894170502b932"><td class="mdescLeft"> </td><td class="mdescRight">Set the orientation of the forward vector in the scene. <a href="#a0ec50fc6c3aafcb15d4894170502b932">More...</a><br /></td></tr>
<tr class="separator:a0ec50fc6c3aafcb15d4894170502b932"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2782d6355549138cd65cd9002d0ce818"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> <a class="el" href="structsfVector3f.htm">sfVector3f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#a2782d6355549138cd65cd9002d0ce818">sfListener_getDirection</a> ()</td></tr>
<tr class="memdesc:a2782d6355549138cd65cd9002d0ce818"><td class="mdescLeft"> </td><td class="mdescRight">Get the current forward vector of the listener in the scene. <a href="#a2782d6355549138cd65cd9002d0ce818">More...</a><br /></td></tr>
<tr class="separator:a2782d6355549138cd65cd9002d0ce818"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb8cb2a2dc4a9a9eac23073db0641d9a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#adb8cb2a2dc4a9a9eac23073db0641d9a">sfListener_setUpVector</a> (<a class="el" href="structsfVector3f.htm">sfVector3f</a> upVector)</td></tr>
<tr class="memdesc:adb8cb2a2dc4a9a9eac23073db0641d9a"><td class="mdescLeft"> </td><td class="mdescRight">Set the upward vector of the listener in the scene. <a href="#adb8cb2a2dc4a9a9eac23073db0641d9a">More...</a><br /></td></tr>
<tr class="separator:adb8cb2a2dc4a9a9eac23073db0641d9a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2e25b414efefc73f9cc4967486ca7dca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> <a class="el" href="structsfVector3f.htm">sfVector3f</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Listener_8h.htm#a2e25b414efefc73f9cc4967486ca7dca">sfListener_getUpVector</a> ()</td></tr>
<tr class="memdesc:a2e25b414efefc73f9cc4967486ca7dca"><td class="mdescLeft"> </td><td class="mdescRight">Get the current upward vector of the listener in the scene. <a href="#a2e25b414efefc73f9cc4967486ca7dca">More...</a><br /></td></tr>
<tr class="separator:a2e25b414efefc73f9cc4967486ca7dca"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a2782d6355549138cd65cd9002d0ce818"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> <a class="el" href="structsfVector3f.htm">sfVector3f</a> sfListener_getDirection </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current forward vector of the listener in the scene. </p>
<dl class="section return"><dt>Returns</dt><dd>Listener's forward vector (not normalized) </dd></dl>
</div>
</div>
<a class="anchor" id="a8e73329d9b6cc5028dce7f5345717f0f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> float sfListener_getGlobalVolume </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current value of the global volume. </p>
<dl class="section return"><dt>Returns</dt><dd>Current global volume, in the range [0, 100] </dd></dl>
</div>
</div>
<a class="anchor" id="aba1b86656c673e1a39bdb70f3cabce60"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> <a class="el" href="structsfVector3f.htm">sfVector3f</a> sfListener_getPosition </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current position of the listener in the scene. </p>
<dl class="section return"><dt>Returns</dt><dd>The listener's position </dd></dl>
</div>
</div>
<a class="anchor" id="a2e25b414efefc73f9cc4967486ca7dca"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> <a class="el" href="structsfVector3f.htm">sfVector3f</a> sfListener_getUpVector </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current upward vector of the listener in the scene. </p>
<dl class="section return"><dt>Returns</dt><dd>Listener's upward vector (not normalized) </dd></dl>
</div>
</div>
<a class="anchor" id="a0ec50fc6c3aafcb15d4894170502b932"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void sfListener_setDirection </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structsfVector3f.htm">sfVector3f</a> </td>
<td class="paramname"><em>direction</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the orientation of the forward vector in the scene. </p>
<p>The direction (also called "at vector") is the vector pointing forward from the listener's perspective. Together with the up vector, it defines the 3D orientation of the listener in the scene. The direction vector doesn't have to be normalized. The default listener's direction is (0, 0, -1).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">direction</td><td>New listener's direction </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa4127e59b8a47594250805a08733c8dc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void sfListener_setGlobalVolume </td>
<td>(</td>
<td class="paramtype">float </td>
<td class="paramname"><em>volume</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Change the global volume of all the sounds and musics. </p>
<p>The volume is a number between 0 and 100; it is combined with the individual volume of each sound / music. The default value for the volume is 100 (maximum).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">volume</td><td>New global volume, in the range [0, 100] </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3fdd38501967626b0c7fe5493cef8c25"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void sfListener_setPosition </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structsfVector3f.htm">sfVector3f</a> </td>
<td class="paramname"><em>position</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the position of the listener in the scene. </p>
<p>The default listener's position is (0, 0, 0).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">position</td><td>New position of the listener </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="adb8cb2a2dc4a9a9eac23073db0641d9a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="Audio_2Export_8h.htm#a7a489e428c325519799913f98f81f774">CSFML_AUDIO_API</a> void sfListener_setUpVector </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structsfVector3f.htm">sfVector3f</a> </td>
<td class="paramname"><em>upVector</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the upward vector of the listener in the scene. </p>
<p>The up vector is the vector that points upward from the listener's perspective. Together with the direction, it defines the 3D orientation of the listener in the scene. The up vector doesn't have to be normalized. The default listener's up vector is (0, 1, 0). It is usually not necessary to change it, especially in 2D scenarios.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">upVector</td><td>New listener's up vector </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
Copyright © Laurent Gomila ::
Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> ::
</div>
</div>
</body>
</html>
|