Hello Slava,
Is this code better? You say that one usually doesn't need to change the
projection or model matrices but isn't that necessary here. Any
suggestions or criticism you have time for are welcome. Thanks for the help.
USING: kernel gadgets gadgets-theme opengl arrays timers math
Hi,
This code is good, I just a few stylistic suggestions:
On 2-Jun-07, at 2:11 AM, Jeff Ervin wrote:
: update-rotation ( angle -- angle )
2.0 + dup 360.0 [ 360.0 - ] when ;
You can use mod here:
: update-rotation ( angle -- newangle )
2.0 + 360.0 mod ;
C: square-gadget ( --