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-05-31 Thread Jeff Ervin
Thanks for the quick response Slava. The following code is example 1-3 from the OpenGL Programming Guide - a square that spins when the left mouse button is pressed. I am setting the background color and shade model in graft* after calling find-gl-context (I didn't find libs/canvas you

Re: [Factor-talk] Documentation bug for button-down

2007-05-29 Thread Jeff Ervin
Oh, I see. The first slot is the delegate slot that all tuples have. I was confused because the button-down documentation gives an example as T{ button-down f 1 }. - This SF.net email is sponsored by DB2 Express Download

[Factor-talk] How do I call glutInit(int* argcp, char** argv) from Factor?

2007-05-22 Thread Jeff Ervin
I'm using the Factor 0.89 OpenGL library and wish to call glut functions from Factor in order run redbook examples. I created a factor file with the following code for a start: IN: glut USING: kernel alien ; LIBRARY: glut FUNCTION: void glutInit( int *argcp, char **argv ) ; I then loaded the