mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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:
@@ -98,6 +98,18 @@ public:
|
||||
//! @return connection to X Display
|
||||
Standard_EXPORT const Handle(Aspect_DisplayConnection)& DisplayConnection() const;
|
||||
|
||||
//! @return native Window handle
|
||||
virtual Aspect_Drawable NativeHandle() const
|
||||
{
|
||||
return (Aspect_Drawable )XWindow();
|
||||
}
|
||||
|
||||
//! @return parent of native Window handle
|
||||
virtual Aspect_Drawable NativeParentHandle() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Handle(Aspect_DisplayConnection) myDisplay; //!< X Display connection
|
||||
|
Reference in New Issue
Block a user