Hi, You should not use GLUT with Factor. Instead, use the Factor UI; define a new gadget class, and give it a draw-gadget* method which makes GL calls.
Take a look at the libs/canvas library; it provides wrappers for some of this. Relevant documentation: http://factorcode.org/responder/help/show-help?topic=ui%2dpaint http://factorcode.org/responder/help/show-help?topic=ui%2dpaint%2dcustom http://factorcode.org/responder/browser/browse?apropos=&word=draw% 2dgadget%2a&vocab=gadgets Slava On 23-May-07, at 12:04 AM, Jeff Ervin wrote: > 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 file so the binding word is compiled. How do I > create > the argcp and argv parameters to pass to the function? The > documentation > states > that glutInit may modify these parameters by extracting glut specific > command line flags. I am not sure how to create the int* char** > parameters in Factor. > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
