<?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="core.DONE.h">
		<group key="Core" name="Core">
			<symbol id="5" kind="function" internal="false" cname="sgGetVersion*">
				<index>
					<centry key="GetVersion*">sgGetVersion*</centry>
					<entry key="GetVersionv">sgGetVersionv</entry>
					<entry key="GetVersion">sgGetVersion</entry>
					<entry key="GetVersionString">sgGetVersionString</entry>
				</index>
				<section name="Name">
					<names>
						<name>sgGetVersionv</name>
						<name>sgGetVersion</name>
						<descr>Get the engine's version in numeric format</descr>
					</names>
					<names>
						<name>sgGetVersionString</name>
						<descr>Get the engine's version as a string</descr>
					</names>
				</section>
				<section name="Synopsis">
					<code-block lang="C">void <ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersionv</ref>(<ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGushort</ref>* version);
void <ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersion</ref>(<ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGushort</ref>* vmajor, <ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGushort</ref>* vminor, <ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGushort</ref>* vpatch);
char* <ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersionString</ref>(void);</code-block>
				</section>
				<section name="Parameters">
					<params>
						<name>version</name>
						<descr>a pointer to SGushort[3], where the version will be stored</descr>
					</params>
					<params>
						<name>vmajor</name>
						<name>vminor</name>
						<name>vpatch</name>
						<descr>major/minor/patch version numbers</descr>
					</params>
				</section>
				<section name="Description">
					<p>
						Functions <ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersionv</ref> and <ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersion</ref> return the engine's current version, either in a single array of `<ref local="false" path=".." file="common" group="Common" name="SGbyte" id="3">SGushort</ref>[3]` (for <ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersionv</ref>), or in the 3 arguments.
					</p>
					<p>
						<ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersionString</ref>() returns the version in a string, instead.
					</p>
					<p>
						Note that these functions return the version of the *library*; to access the version of the headers (as in, the "user" program being compiled), see the SG_VERSION- defines.
					</p>
				</section>
				<section name="Return Values">
					<p>
						<ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersionString</ref>() returns the current SIEGE version in "X.Y.Z" format; the string is non-const merely for conveniency reasons and should not be modified.
					</p>
				</section>
				<section name="Examples">
					<code-block lang="C">printf("Game compiled with SIEGE v%s.\n", SG_VERSION_STRING);
printf("Game linked with SIEGE v%s.\n", <ref local="true" path="." file="core.DONE" group="Core" name="sgGetVersion*" id="5">sgGetVersionString</ref>());</code-block>
				</section>
				<section name="See Also">
					<sees>
						<see>SG_VERSION-</see>
					</sees>
					<sees>
						<see><ref local="false" path="." file="core.DONE" group="Core" name="sgGetCompile*" id="6">sgGetCompile*</ref></see>
					</sees>
				</section>
			</symbol>
		</group>
	</file>
</docs>
