<?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.DONE.h">
		<group key="Window" name="Window">
			<symbol id="14" kind="function" internal="false" cname="sgWindow*Open">
				<index>
					<centry key="Window*Open">sgWindow*Open</centry>
					<entry key="WindowOpen">sgWindowOpen</entry>
					<entry key="WindowIsOpened">sgWindowIsOpened</entry>
				</index>
				<section name="Name">
					<names>
						<name>sgWindowOpen</name>
						<descr>Open a window</descr>
					</names>
					<names>
						<name>sgWindowIsOpened</name>
						<descr>Check if the window is open</descr>
					</names>
				</section>
				<section name="Synopsis">
					<code-block lang="C"><ref local="false" path=".." file="common" group="Common" name="SGbool" id="1">SGbool</ref> <ref local="true" path="." file="window.DONE" group="Window" name="sgWindow*Open" id="14">sgWindowOpen</ref>(<ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGuint</ref> width, <ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGuint</ref> height, <ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGuint</ref> bpp, <ref local="false" path=".." file="common" group="Common" name="SGbool" id="1">SGenum</ref> flags);
<ref local="false" path=".." file="common" group="Common" name="SGbool" id="1">SGbool</ref> <ref local="true" path="." file="window.DONE" group="Window" name="sgWindow*Open" id="14">sgWindowIsOpened</ref>(void);</code-block>
				</section>
				<section name="Parameters">
					<params>
						<name>width</name>
						<name>height</name>
						<descr>window size</descr>
					</params>
					<params>
						<name>bpp</name>
						<descr>bits per pixel</descr>
					</params>
					<params>
						<name>flags</name>
						<descr>flags influencing window behavior</descr>
					</params>
				</section>
				<section name="Description">
					<p>
						<ref local="true" path="." file="window.DONE" group="Window" name="sgWindow*Open" id="14">sgWindowOpen</ref>() opens a new window of the requested size, and returns whether the operation succeeded.
					</p>
					<p>
						Note that the window has to be open for some graphics-related operations (such as texture creation) to work.
					</p>
					<p>
						<ref local="true" path="." file="window.DONE" group="Window" name="sgWindow*Open" id="14">sgWindowIsOpened</ref>() queries the current state of the window.
					</p>
				</section>
				<section name="Return Values">
						<ul>
							<li>
								<p>
									<ref local="true" path="." file="window.DONE" group="Window" name="sgWindow*Open" id="14">sgWindowOpen</ref>() returns `SG_TRUE` if the window was successfully opened, `SG_FALSE` otherwise
								</p>
							</li>
							<li>
								<p>
									<ref local="true" path="." file="window.DONE" group="Window" name="sgWindow*Open" id="14">sgWindowIsOpened</ref>() returns whether the window is current open
								</p>
							</li>
						</ul>
				</section>
				<section name="See Also">
					<sees>
						<see><ref local="false" path="." file="window.DONE" group="Window" name="sgWindowClose" id="15">sgWindowClose</ref></see>
					</sees>
				</section>
				<section name="TODO">
						<ul>
							<li>
								<p>
									DOCS: Document the `bpp` parameter and the flags
								</p>
							</li>
							<li>
								<p>
									(?) Rename <ref local="true" path="." file="window.DONE" group="Window" name="sgWindow*Open" id="14">sgWindowIsOpened</ref> to sgWindowIsOpen
								</p>
							</li>
						</ul>
				</section>
			</symbol>
		</group>
	</file>
</docs>
