> (a) generate a form including a GL canvas and do GL stuff in there. I
> don't know GL yet, so I postponed that solution.
This is the correct solution -- OpenGL isn't all that difficult to
learn. Get the _OpenGL Programming Guide_ and the _OpenGL Reference
Manual_. You'll be a happier hacker for it.
> (b) Use XForms "dirty hack" primitives such as fl_rectf,....
Basically the wrong answer but...
> Now I boiled down my trouble to a simple program. That program opens a
> window win1, imidiately resizes it, opens a second window and then
> attempts to draw a blue box in the first window. I see two problems.
> - the window cannot be resized by fl_winreshape if it was opened using
> fl_wingeometry. Shouldn't that suppress interactive resizing only
> - the blue box is not drawn into win1. Apparently this has something to
> with the resizing. Without resizing I encounter no such problems.
The Window sizes looked more or less okay to me but the blue
rectangles didn't get drawn until I added an XFlush() prior to the
fl_check_forms() to force all the commands to the server.
> And here's the code:
>
> [...]
> fl_winset(win2);
> fl_rectf(0,0,100,50,FL_BLUE);
>
XFlush( fl_get_display() ); /* Flush all commands to server */
> fl_check_forms();
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/