From: Peter Krueger (pkrueger++at++appss.de)
Date: 04/15/2004 03:25:36
Dear Performer developers and lists members!
I'm trying to integrate a pfPipeWindow in a GTK+ user interface on a
Microsoft Windows platform. I'm working with OpenGL Performer 3.1 and GTK+
2.2.4, using GtkGLExt 1.0.5 to make a widget OpenGL-capable.
The GL-widget works without any problems as long as I use pure OpenGL
calls. Now I want it to be used by a pfPipeWindow. I tried the following:
{
_pPfPWin = new pfPipeWindow(pPfPipe);
/* skipped creation of the OpenGL-enabled widget _p3DView here */
gtk_widget_realize(_p3DView);
#ifdef _WIN32
GdkGLContext *glcontext = gtk_widget_get_gl_context(_p3DView);
GdkGLWindow *pGLWindow = gdk_window_get_gl_window(_p3DView->window);
HWND hwnd = ((GdkGLWindowImplWin32*)pGLWindow)->hwnd;
_pPfPWin->setWSWindow(GDK_DISPLAY(), hwnd);
_pPfPWin->setWSDrawable(GDK_DISPLAY(), hwnd);
_pPfPWin->setGLCxt(GDK_GL_CONTEXT_HGLRC(glcontext));
#else
// on linux the following code works without any problems
_pPfPWin->setWSWindow(GDK_DISPLAY(),
GDK_WINDOW_XWINDOW(_p3DView->window));
_pPfPWin->setWSDrawable(GDK_DISPLAY(),
GDK_WINDOW_XWINDOW(_p3DView->window));
#endif // _WIN32
_pPfPWin->setMode(PFWIN_NOBORDER, 0);
_pPfPWin->setConfigFunc(CbPfPWinOpen);
_pPfPWin->config();
}
void CbPfPWinOpen(
pfPipeWindow *pPfPWin)
{
pPfPWin->open();
}
After opening the program the I get the following messages on my console:
PF Notice: MUSTRUN of stage 1 on CPU 1596not available
for this platform.
PF Warning/Usage: No hardware support for VSYNC, frame sync
may vary.Assuming 60Hz.
PF Print: Handle pbuffer detection in setWSDrawable
PF Warning/Usage(7): pfWindow::setWndClassName has no effect if
called after opening a window
The Performer window is correctly shown, but it doesn't correct its size
when I change the size of my main application window. After about 90
seconds I get the following warning many times per second:
PF Warning/Resource: pfWindow::select() could not make current
on window.Trying default.
>From this time on all windows from all applications are not refreshed
correctly anymore and partly overwritten with graphics output of the
performer application. This happens even when I didn't interact with the
program and the user interface configuration didn't change in between.
Could you please point me to some example code how to integrate a
Performer window in a GTK+ user interface (or a native MS-Windows window)?
I've searched my Performer installation and googled for an example, but I
didn't find any. pfGTKViewer is also gone in Performer 3.1 :-(
Regards,
Peter
-- ==================================================================== Peter Krügerapplied software solutions (appss) GmbH Sandtorstr. 23 D-39106 Magdeburg Germany
Phone: +49-(0)391-54486-19388 Fax: +49-(0)391-54486-19222 email: krueger++at++appss.de URL: http://www.appss.de
Managing Director: Uwe Hess, Dietmar Schäfer Register: HRB12386, AG Mageburg
"Virtual business becomes reality!"
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ====================================================================
This archive was generated by hypermail 2b29 : Thu Apr 15 2004 - 03:32:36 PDT