<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — iB3D checks for escape key and closes window. clueless...]]></title>
		<link>https://gprogs.com/viewtopic.php?id=443</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=443&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in iB3D checks for escape key and closes window. clueless....]]></description>
		<lastBuildDate>Wed, 27 Jul 2011 23:14:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: iB3D checks for escape key and closes window. clueless...]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1686#p1686</link>
			<description><![CDATA[<p>greetings Xaymar.&nbsp; My apologies for the delayed response.&nbsp; I cannot replicate the behavior you are seeing withought uncommenting the keyhit code but even then it still exited the loop.&nbsp; the only other way i could get this to happen is if ESC was hit while the BMAX IDE had focus.&nbsp; that cancels the program and thus the window and will not exit the loop.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Wed, 27 Jul 2011 23:14:14 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1686#p1686</guid>
		</item>
		<item>
			<title><![CDATA[iB3D checks for escape key and closes window. clueless...]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1673#p1673</link>
			<description><![CDATA[<div class="codebox"><pre><code>&#039;#Region Initialize 3D Engine
    ib3d_Graphics3D(ScreenWidth, ScreenHeight, ScreenDepth, ScreenMode, True, True, EDT_OPENGL)
    Global ihCamera:CAMERA = ib3d_CreateCamera(Null, CT_NORMAL)
&#039;#End Region

&#039;#Region Load necessary Stuff
    Local ihCube:PRIMITIVE = ib3d_CreateCube()
    Local ihPlane:PLANE = ib3d_CreatePlane(1,1,16,16)
    ihPlane.Move(0,-5,0)
    Local ihLight:LIGHT = ib3d_CreateLight(ihCamera)
&#039;#End Region

&#039;#Region Mainloop
    Local _deg:Float
    Repeat
        ib3d_UpdateWorld()            &#039;Update World Physics
        
        _deg :+ 1
        ihCamera.Position(Cos(_deg)*25,5,Sin(_deg)*25,True)
        ihCamera.Point(ihCube)
        
        ib3d_RenderDrawCmds()
        ib3d_RenderWorld()            &#039;Render the World
&#039;        If ib3d_KeyHit(1)
&#039;            Exit
&#039;        End If
    Forever
&#039;#End Region</code></pre></div><p>The above code snipper results in users being able to close the window with escape, but the code never even reaches the outside of the Repeat-Forever.<br />How do I fix this?</p>]]></description>
			<author><![CDATA[null@example.com (Xaymar)]]></author>
			<pubDate>Mon, 06 Jun 2011 15:58:49 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1673#p1673</guid>
		</item>
	</channel>
</rss>
