<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — iB3D checks for escape key and closes window. clueless...]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=443&amp;type=atom" />
	<updated>2011-07-27T23:14:14Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=443</id>
		<entry>
			<title type="html"><![CDATA[Re: iB3D checks for escape key and closes window. clueless...]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1686#p1686" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2011-07-27T23:14:14Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1686#p1686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[iB3D checks for escape key and closes window. clueless...]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1673#p1673" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Xaymar]]></name>
				<uri>https://gprogs.com/profile.php?id=319</uri>
			</author>
			<updated>2011-06-06T15:58:49Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1673#p1673</id>
		</entry>
</feed>
