I'm trying to get a basic enter_frame style game loop going in Javascript. In non Haxe JS I've done this before using requestAnimationFrame and some browser checking (http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/). I noticed that Haxe has a RequestAnimationFrameCallback type, which the requestAnimationFrame function requires as an argument; how exactly is this supposed to work? How would I type the callback function as RequestAnimationFrameCallback?
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.
I'm trying to get a basic enter_frame style game loop going in Javascript. In non Haxe JS I've done this before using requestAnimationFrame and some browser checking (http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/). I noticed that Haxe has a RequestAnimationFrameCallback type, which the requestAnimationFrame function requires as an argument; how exactly is this supposed to work? How would I type the callback function as RequestAnimationFrameCallback?
--