OpenTK.Platform.Egl.Egl.GetCurrentSurface C# (CSharp) Метод

GetCurrentSurface() приватный Метод

private GetCurrentSurface ( int readdraw ) : EGLSurface
readdraw int
Результат EGLSurface
        public static extern EGLSurface GetCurrentSurface(int readdraw);
        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetCurrentDisplay")]

Usage Example

Пример #1
0
        public void DestroySurface()
        {
            if (Surface != IntPtr.Zero)
            {
                if (Egl.GetCurrentSurface(Egl.DRAW) == Surface)
                {
                    Egl.MakeCurrent(Display, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);
                }

                if (!Egl.DestroySurface(Display, Surface))
                {
                    Debug.Print("[Warning] Failed to destroy {0}:{1}.", Surface.GetType().Name, Surface);
                }
                Surface = IntPtr.Zero;
            }
        }
All Usage Examples Of OpenTK.Platform.Egl.Egl::GetCurrentSurface