1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025147: Visualization, TKOpenGl - support EGL as alternative to GLX

Aspect_Window - add interface methods NativeHandle() and NativeParentHandle().
OpenGl_Window - pass OpenGl_GraphicDriver instance to the constructor.
OpenGl_Caps - add option to disable buffers swap at the end of frame redraw.
This commit is contained in:
kgv
2014-10-02 13:43:33 +04:00
committed by bugmaster
parent 6b62b2da81
commit 25b97fac40
15 changed files with 297 additions and 39 deletions

View File

@@ -101,6 +101,18 @@ public:
//! Setup new NSView.
Standard_EXPORT void SetHView (NSView* theView);
//! @return native Window handle
virtual Aspect_Drawable NativeHandle() const
{
return (Aspect_Drawable )HView();
}
//! @return parent of native Window handle
virtual Aspect_Drawable NativeParentHandle() const
{
return 0;
}
protected:
NSWindow* myHWindow;