re mix gl with x xlib xt mwm in article aa sparc jade com graham sparc ottawa jade com jay graham writes i am developing an x xt xm application that will include a graphics window of some sort with moving symbols among other things a pure x application could be implemented with motif widgets one of which would be an xmdrawingarea for drawing with xlib but i would like to take advantage of the graphics library gl available on our ibm rs sgi s gl i believe is it possible to mix x and gl in one application program can i use gl subroutines in an xmdrawingarea or in an x window opened by me with xopenwindow there is a widget already defined for gl it is the glxmdraw motif or glxdraw athena widget it is similar to a xmdrawingarea except that it allows you to use gl calls to render into the window look at glxlink glxunlink glxgetconfig and glxwinset in the man pages i have never used gl before but the doc on gl winopen says that the first time winopen is called it opens a connection to the server also most of the gl calls do not require a display or gc unlike most x calls from this initial information it appears that x and gl cannot be mixed easily is this true the glxmdraw widget works pretty well opengl will be an improvement does pex graphigs have the same functionality of gl i think gl is a little easier to use and a little more powerful but that s just an opinion mileage may vary larry d pyeatt the views expressed here are not internet pyeatt texaco com those of my employer or of anyone voice that i know of with the possible exception of myself
