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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user