0026734: Visualization, TKOpenGl - drop outdated UserDraw interfaces
[occt.git] / src / OpenGl / OpenGl_View.cxx
index b2f76c5..4b3ae3b 100644 (file)
@@ -15,7 +15,6 @@
 
 #include <OpenGl_View.hxx>
 
-#include <Aspect_GraphicCallbackProc.hxx>
 #include <Aspect_RenderingContext.hxx>
 #include <Aspect_Window.hxx>
 #include <Graphic3d_AspectFillArea3d.hxx>
@@ -107,9 +106,6 @@ OpenGl_View::OpenGl_View (const Handle(Graphic3d_StructureManager)& theMgr,
   myMainSceneFbos[1]      = new OpenGl_FrameBuffer();
   myImmediateSceneFbos[0] = new OpenGl_FrameBuffer();
   myImmediateSceneFbos[1] = new OpenGl_FrameBuffer();
-
-  myDisplayCallback.Func = NULL;
-  myDisplayCallback.Data = NULL;
 }
 
 // =======================================================================
@@ -234,18 +230,13 @@ Standard_Boolean OpenGl_View::SetImmediateModeDrawToFront (const Standard_Boolea
 // purpose  :
 // =======================================================================
 void OpenGl_View::SetWindow (const Handle(Aspect_Window)& theWindow,
-                             const Aspect_RenderingContext theContext,
-                             const Aspect_GraphicCallbackProc& theDisplayCB,
-                             const Standard_Address theClientData)
+                             const Aspect_RenderingContext theContext)
 {
   myWindow = myDriver->CreateRenderWindow (theWindow, theContext);
   Standard_ASSERT_RAISE (!myWindow.IsNull(),
                          "OpenGl_View::SetWindow, "
                          "Failed to create OpenGl window.");
 
-  myDisplayCallback.Func = theDisplayCB;
-  myDisplayCallback.Data = theClientData;
-
   myWorkspace = new OpenGl_Workspace (this, myWindow);
   myWorldViewProjState.Reset();
   myToUpdateEnvironmentMap = Standard_True;