File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -429,6 +429,12 @@ void vtkCarbonRenderWindow::SetForceMakeCurrent()
429
429
this ->ForceMakeCurrent = 1 ;
430
430
}
431
431
432
+ // --------------------------------------------------------------------------
433
+ int vtkCarbonRenderWindow::IsDirect ()
434
+ {
435
+ return 1 ;
436
+ }
437
+
432
438
// --------------------------------------------------------------------------
433
439
void vtkCarbonRenderWindow::SetSize (int a[2 ])
434
440
{
Original file line number Diff line number Diff line change @@ -210,6 +210,11 @@ class VTK_RENDERING_EXPORT vtkCarbonRenderWindow : public vtkOpenGLRenderWindow
210
210
// on the next render.
211
211
void SetForceMakeCurrent ();
212
212
213
+ // Description:
214
+ // Is this render window using hardware acceleration? 0-false, 1-true.
215
+ // Always true for Carbon.
216
+ virtual int IsDirect ();
217
+
213
218
// Description:
214
219
// Check to see if an event is pending for this window.
215
220
// This is a useful check to abort a long render.
You can’t perform that action at this time.
0 commit comments