[vtkusers] VTK 4.0.2 and QT 2.3

Carsten Kübler kuebler at ira.uka.de
Fri Jan 4 05:51:05 EST 2002


Hej,

there are a few new thinks which should be changed...
Thanks for changing the structure of the renderwindows, but:
* why is the OpenGL renderwindow for Apple not derived from the new 
vtkOpenGLRenderWindow?
* why are there two renderwindows for X? vtkXRenderWindow and 
vtkXOpenGLRenderwindow

and every year the same request. Please change this in vtkOpenGLTexture:

#ifdef __APPLE__
    ((vtkQuartzRenderWindow 
*)(ren->GetRenderWindow()))->RegisterTextureResource(this->Index);
#else
  #ifdef _WIN32
    ((vtkWin32OpenGLRenderWindow 
*)(ren->GetRenderWindow()))->RegisterTextureResource( this->Index );
  #else
    ((vtkOpenGLRenderWindow 
*)(ren->GetRenderWindow()))->RegisterTextureResource( this->Index );
  #endif
#endif


At the moment it would also work

#ifdef __APPLE__
    ((vtkQuartzRenderWindow 
*)(ren->GetRenderWindow()))->RegisterTextureResource(this->Index);
#else
   ((vtkOpenGLRenderWindow 
*)(ren->GetRenderWindow()))->RegisterTextureResource( this->Index );
#endif

because win32... and XOpenGLRenderWindow base both on OpenGLRenderWindow.


Carsten





More information about the vtkusers mailing list