OpenTK.GLControl.GetEglSurface C# (CSharp) Method

GetEglSurface() public method

public GetEglSurface ( ) : IntPtr
return System.IntPtr
        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