Custom Drawing in OCC window in ver 7.0.0

Hello 

I am using OpenCascade several years. I had working application in version 6.7.0 . I used custom draw callback for specific OpenGL drawings. 

I have passed my callback by void V3d_View::SetWindow(const Handle(Aspect_Window)& aWindow,const Aspect_RenderingContext aContext,const Aspect_GraphicCallbackProc& aDisplayCB,const Standard_Address aClientData)

The third parameter aDisplayCB is a pointer to my callback function for custom draw. I was surprised after installation of ver 7.0.0 that this mechanism in not supported now.

How I can to implement custom drawing in the last version? 

I will thankful for any idea.

Boris.

Forum supervisor's picture

Hello Boris,

Please, have a look at the porting notes at https://dev.opencascade.org/doc/overview/html/occt_dev_guides__upgrade.html#upgrade_occt700_userdraw.

Best regards,

Forum supervisor

Boris Weisman's picture

Thank you very much

Boris