<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../docs.xsl"?>

<docs type="symbol" project="SIEGE" version="0.8.2" rpath="../..">
	<file root="siege/core" name="window.h">
		<group key="Window" name="Window">
			<symbol id="15" kind="function" internal="false" cname="sgWindow*FPS*">
				<index>
					<centry key="Window*FPS*">sgWindow*FPS*</centry>
					<entry key="WindowGetFPSLimit">sgWindowGetFPSLimit</entry>
					<entry key="WindowSetFPSLimit">sgWindowSetFPSLimit</entry>
					<entry key="WindowGetFPS">sgWindowGetFPS</entry>
				</index>
				<section name="Name">
					<names>
						<name>sgWindowGetFPSLimit</name>
						<name>sgWindowSetFPSLimit</name>
						<descr>Set/get the window framerate limit</descr>
					</names>
					<names>
						<name>sgWindowGetFPS</name>
						<descr>Get the current framerate</descr>
					</names>
				</section>
				<section name="Synopsis">
					<code-block lang="C">SGfloat <ref local="true" path="." file="window" group="Window" name="sgWindow*FPS*" id="15">sgWindowGetFPSLimit</ref>(void);
void <ref local="true" path="." file="window" group="Window" name="sgWindow*FPS*" id="15">sgWindowSetFPSLimit</ref>(SGfloat limit);
SGfloat <ref local="true" path="." file="window" group="Window" name="sgWindow*FPS*" id="15">sgWindowGetFPS</ref>(void);</code-block>
				</section>
				<section name="Parameters">
					<params>
						<name>limit</name>
						<descr>new framerate limit to set</descr>
					</params>
				</section>
				<section name="Description">
					<p>
						<ref local="true" path="." file="window" group="Window" name="sgWindow*FPS*" id="15">sgWindowSetFPSLimit</ref>() sets the max framerate in the game; this can be set to SG_INF to disable the limit. Its getter complement queries said limit. <ref local="true" path="." file="window" group="Window" name="sgWindow*FPS*" id="15">sgWindowGetFPS</ref>() is used to get the current framerate (for performance measuring).
					</p>
					<p>
						All the functions operate in terms of frames per second.
					</p>
				</section>
				<section name="Return Values">
						<ul>
							<li>
								<p>
									<ref local="true" path="." file="window" group="Window" name="sgWindow*FPS*" id="15">sgWindowGetFPSLimit</ref>() queries the currently-set limit.
								</p>
							</li>
							<li>
								<p>
									<ref local="true" path="." file="window" group="Window" name="sgWindow*FPS*" id="15">sgWindowGetFPS</ref>() returns the current framerate.
								</p>
							</li>
						</ul>
				</section>
				<section name="TODO">
						<ul>
							<li>
								<p>
									Decouple the framerate from the game speed
								</p>
							</li>
						</ul>
				</section>
			</symbol>
		</group>
	</file>
</docs>
