public IntPtr GetEglSurface() { var eglContext = ((IGraphicsContextInternal)this.context).Implementation as OpenTK.Platform.Egl.EglContext; if (eglContext != null) { return eglContext.MyWindowInfo.Surface; } return IntPtr.Zero; } #endregion