Re: [Factor-talk] OpenGL commands outside of draw-gadget*

2007-06-02 Thread Jeff Ervin
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

Re: [Factor-talk] OpenGL commands outside of draw-gadget*

2007-06-02 Thread Slava Pestov
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 ( --