Hi, i noticed that the protected member function initializeGL() of my subclasses of OSGQGLWidget is never called. This is weird as within that function i call init() on the instance of OSG::Qt4Window, therefore calling that function seems not be be necessary? resizeGL() and paintGL() are correctly called. Any idea?
This is how the code basically looks: MyGLWidget( <params> ) { m_win = OSG::Qt4Window::create(); m_win = setGlWidget(this); } void MyGLWidget::initializeGL() { m_win->init(); } void MyGLWidget::resizeGL(int w, int h) { m_win->resize(w,h); } void MyGLWidget::paintGL() { m_win->render(m_renderAction); OSG::commitChangesAndClear(); } Kind regards, Alexander Lang ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users