public EglSurface(EglDisplay display, INativeWindow nativeWindow)
 {
     this.m_display = display;
     this.m_ptr     = NativeMethods.eglCreateWindowSurface(this.m_display.Ptr, this.m_display.Config, nativeWindow.Handle, IntPtr.Zero);
     if (this.m_ptr == IntPtr.Zero)
     {
         throw new Exception("Can't create surface: " + NativeMethods.eglGetError());
     }
 }
Beispiel #2
0
        public EglContext(EglDisplay display)
        {
            this.m_display = display;

            this.m_ptr = NativeMethods.eglCreateContext(this.m_display.Ptr, display.Config, IntPtr.Zero, IntPtr.Zero);
            if (this.m_ptr == IntPtr.Zero)
            {
                throw new Exception("Can't create context: " + NativeMethods.eglGetError());
            }
        }