Re: XForms: window ID

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 26 Aug 98 06:45:14 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have a old program, the interface is done with old forms and SGI GL lib.
> It used a GL lib function "swinopen(long)" and it passed the form id
> returned by "fl_show_form(..)". It works in the old forms lib.
>
> After I updated the old forms to xforms(version for SGI 0.88), the xforms
> runs independently, but it will be seg fault if I call "swinopen". ...

I don't think that the GID (Graphics ID) that swinopen() expects is
the same thing as an X Window ID (XID). The old GL library was
developed before X was available on the SGI systems and there is very
little compatibility between the two. To even get the old GL to
render to an X window is something of a kluge.

I think with I'd suggest is porting the app to OpenGL. Check

http://squish.ucs.indiana.edu:80/ebt-bin/nph-dweb/\
dynaweb/SGI_Developer/OpenGL_Porting/\
@Generic__BookTocView/5719;td=2

for an *excellent* tutorial on how to do this. [backlashes to
indicate linebreaks for readability only -- string the whole silly
thing together with no embedded spaces and feed it to your favorite
Web browser] You'll need to snarf a copy of `toogl'. I'm not sure of
its exact URL but you can start at </cgi-bin/exit-to?http://reality.sgi.com/opengl/> or
<http://www.opengl.org> in your search.

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/