Skip to content
Snippets Groups Projects
Commit af02b2f9 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri :speech_balloon: Committed by Kitware Robot
Browse files

Merge topic 'external_rendering_extensions'


5c56449f Provide extension manager support to external rendering module

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !134
parents 98bb3411 5c56449f
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,12 @@ vtkExternalOpenGLRenderWindow::~vtkExternalOpenGLRenderWindow()
//----------------------------------------------------------------------------
void vtkExternalOpenGLRenderWindow::Start(void)
{
// Make sure all important OpenGL options are set for VTK
this->OpenGLInit();
// Use hardware acceleration
this->SetIsDirect(1);
if (this->AutomaticWindowPositionAndResize)
{
int info[4];
......@@ -69,6 +75,12 @@ void vtkExternalOpenGLRenderWindow::Render()
this->Superclass::Render();
}
//----------------------------------------------------------------------------
bool vtkExternalOpenGLRenderWindow::IsCurrent(void)
{
return true;
}
//----------------------------------------------------------------------------
void vtkExternalOpenGLRenderWindow::PrintSelf(ostream& os, vtkIndent indent)
{
......
......@@ -58,6 +58,11 @@ public:
// before calling the superclass' Render() method
void Render();
// Description:
// Tells if this window is the current graphics context for the calling
// thread.
virtual bool IsCurrent();
// Description:
// Turn on/off a flag which enables/disables automatic positioning and
// resizing of the render window. By default, vtkExternalOpenGLRenderWindow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment