Commit d5afc516 authored by François Bertel's avatar François Bertel Committed by David Partyka
Browse files

BUG:IsDirect was not implemented in vtkCarbonRenderWindow.

parent 3837ba15
...@@ -430,6 +430,12 @@ void vtkCarbonRenderWindow::SetForceMakeCurrent() ...@@ -430,6 +430,12 @@ void vtkCarbonRenderWindow::SetForceMakeCurrent()
this->ForceMakeCurrent = 1; this->ForceMakeCurrent = 1;
} }
// --------------------------------------------------------------------------
int vtkCarbonRenderWindow::IsDirect()
{
return 1;
}
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
void vtkCarbonRenderWindow::SetSize(int a[2]) void vtkCarbonRenderWindow::SetSize(int a[2])
{ {
......
...@@ -210,6 +210,11 @@ public: ...@@ -210,6 +210,11 @@ public:
// on the next render. // on the next render.
void SetForceMakeCurrent(); void SetForceMakeCurrent();
// Description:
// Is this render window using hardware acceleration? 0-false, 1-true.
// Always true for Carbon.
virtual int IsDirect();
// Description: // Description:
// Check to see if an event is pending for this window. // Check to see if an event is pending for this window.
// This is a useful check to abort a long render. // This is a useful check to abort a long render.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment