Le 14/02/2014 23:01, Paul Horechuk a écrit :
> Could someone please explain the program flow for the
> Examples/Games/Starfield project? I've stepped through the code after
> setting a breakpoint. The screen_draw procedure executes immediately
> following the Public Sub Main() procedure when it finishes. What
> triggers the Public Sub screen_draw procedure to start and loop?
>

It's a SDL project : when using the gb.sdl component, you create a 
unique window object (the 'screen' global variable), and then this 
object will raise its Draw event automatically at each event loop tick.

The window object has a "FrameRate" property that allows to define the 
frequency of that event (for example, 60 draws by second).

-- 
Benoît Minisini

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to