PDA

View Full Version : Embedding an OpenGL Performer window



Klein
08-19-2004, 06:05 AM
I have a MDI application with 3 CView-derived classes (in a splitter frame). I have initialized OpenGL Performer (as in simple.cpp).

Is it possible that I could embed the OpenGL Performer window, pfPipeWindow, in one of the CView-derived classes?

The following code opens a seperate window:

// Configure and open GL window
pfPipe *p = pfGetPipe(0);
pfPipeWindow *pw = new pfPipeWindow(p);
pw->setWinType(PFPWIN_TYPE_X);
pw->setName("OpenGL Performer");
pw->setOriginSize(0,0,500,500);
pw->open();

Any help please? :(