Commit 3c999e8d authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot

Merge topic 'cocoa_fix2'

55d0fd1a Remove cocoa use of deprecated OpenGL code
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: David Gobbi's avatarDavid Gobbi <david.gobbi@gmail.com>
Acked-by: Berk Geveci's avatarBerk Geveci <berk.geveci@kitware.com>
Merge-request: !667
parents 26480bda 55d0fd1a
......@@ -217,10 +217,6 @@ public:
// Clean up device contexts, rendering contexts, etc.
void Finalize();
// Description:
// Get the size of the depth buffer.
int GetDepthBufferSize();
// Description:
// Hide or Show the mouse cursor, it is nice to be able to hide the
// default cursor if you want VTK to display a 3D cursor instead.
......
......@@ -1199,22 +1199,6 @@ void vtkCocoaRenderWindow::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "ViewCreated: " << (this->GetViewCreated() ? "Yes" : "No") << endl;
}
//----------------------------------------------------------------------------
int vtkCocoaRenderWindow::GetDepthBufferSize()
{
if ( this->Mapped )
{
GLint size = 0;
glGetIntegerv( GL_DEPTH_BITS, &size );
return (int) size;
}
else
{
vtkDebugMacro(<< "Window is not mapped yet!" );
return 24;
}
}
//----------------------------------------------------------------------------
// Returns the NSWindow* associated with this vtkRenderWindow.
void *vtkCocoaRenderWindow::GetRootWindow()
......
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