21 #include <vtkObjectFactory.h>
27 this->OffScreenRendering =
false;
45 void vtkInternalOpenGLRenderWindow::OpenGLInitState()
47 Superclass::OpenGLInitState();
51 glHint(GL_CLIP_VOLUME_CLIPPING_HINT_EXT, GL_FASTEST);
65 this->SetFrontBuffer(vtkgl::COLOR_ATTACHMENT0);
66 this->SetFrontRightBuffer(vtkgl::COLOR_ATTACHMENT0);
67 this->SetBackLeftBuffer(vtkgl::COLOR_ATTACHMENT0);
68 this->SetBackRightBuffer(vtkgl::COLOR_ATTACHMENT0);
70 QSize fboSize = fbo->size();
71 this->SetSize(fboSize.width(), fboSize.height());
73 this->NumberOfFrameBuffers = 1;
74 this->FrameBufferObject =
static_cast<unsigned int>(fbo->handle());
75 this->DepthRenderBufferObject = 0;
76 this->TextureObjects[0] =
static_cast<unsigned int>(fbo->texture());
77 this->OffScreenRendering =
true;
78 this->OffScreenUseFrameBuffer =
true;
QVTKFramebufferObjectRenderer * QtParentRenderer
vtkInternalOpenGLRenderWindow()
~vtkInternalOpenGLRenderWindow()
vtkStandardNewMacro(vtkInternalOpenGLRenderWindow)
void SetFramebufferObject(QOpenGLFramebufferObject *fbo)