On Sat, Apr 4, 2009 at 3:14 PM, Jon Kleiser <[email protected]> wrote:
> Hi,
>
> My first OpenGL program is a (not yet complete) port of a small
> "animation" that I've done earlier in other languages.
Cool.
> - Get regular timed events (e.g. 20/sec.) so I can calculate new values
> for the animation
Take a look at the alarms vocabulary ("alarms" about). Add an alarm in
your graft* method and remove it in ungraft*.
> - Make use of the arrow key events for rotation of the scene (pitch and yaw)
You need to call define-gestures with an alist mapping keyboard
gestures to quotations with effect ( gadget -- ). Grep around for
define-gestures, you'll find plenty of examples.
Slava
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk