Ethan Phelps-Goodman (ethan++at++coral.arc.nasa.gov)
Tue, 19 Aug 1997 13:22:16 -0700
Here is the code I am using:
/* pfPipeWindow created here
...
*/
// I need a void** to pass to pfChooseFBConfigData()
int* foo = (int*)pfMalloc( sizeof(int), pfGetSharedArena() );
// I create an OpenGL rendering widget
windowWidget = XtVaCreateManagedWidget( name,
glwMDrawingAreaWidgetClass, parentWidget,
GLwNvisualInfo,
pfChooseFBConfigData( (void**)&foo,
XtDisplay(parentWidget), -1, NULL,
pfGetSharedArena() ), NULL );
_win->setWSDrawable( NULL, XtWindow( windowWidget ) );
_win->setWSWindow( NULL, XtWindow( parentWidget ) );
/* pfPipeWindow::open() called later
...
*/
The widget is always black, and the seperate pfPipeWindow draws
properly. Its like I never called setWSWindow().
Does anyone know what's going wrong?
--Ethan Phelps-Goodman ethan++at++coral.arc.nasa.gov ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:45 PDT