Exemplo n.º 1
0
 public void CreateWindowSurface(EGLConfig config)
 {
     Surface = Egl.CreateWindowSurface(Display, config, Handle, null);
     int error = Egl.GetError();
     if (error != Egl.SUCCESS)
         throw new GraphicsContextException(String.Format("[Error] Failed to create EGL window surface, error {0}.", error));
 }
Exemplo n.º 2
0
        public static EGLSurface CreateWindowSurface(EGLDisplay dpy, EGLConfig config, IntPtr win, int[] attrib_list)
        {
            IntPtr ptr = eglCreateWindowSurface(dpy, config, win, attrib_list);

            EGLSurface ret = new EGLSurface(ptr);

            return(ret);
        }
Exemplo n.º 3
0
        public void CreateWindowSurface(EGLConfig config)
        {
            Surface = Egl.CreateWindowSurface(Display, config, Handle, null);
            int error = Egl.GetError();

            if (error != Egl.SUCCESS)
            {
                throw new GraphicsContextException(String.Format("[Error] Failed to create EGL window surface, error {0}.", error));
            }
        }
 public static extern bool SwapBuffers(EGLDisplay dpy, EGLSurface surface);
 public static extern bool MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
 public static extern bool ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer);
Exemplo n.º 7
0
 public void DestroySurface(ref EGLSurface surface)
 {
     EglWindowInfo.DestroySurface(ref surface);
 }
Exemplo n.º 8
0
 public static extern bool SwapBuffers(EGLDisplay dpy, EGLSurface surface);
Exemplo n.º 9
0
 public static extern bool ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer);
Exemplo n.º 10
0
 public static extern bool QuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, out int value);
Exemplo n.º 11
0
 public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface)
 {
     Handle = handle;
     Display = display;
     Surface = surface;
 }
Exemplo n.º 12
0
 public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);
Exemplo n.º 13
0
 public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface)
 {
     Handle  = handle;
     Display = display;
     Surface = surface;
 }
Exemplo n.º 14
0
 public void MakeCurrent(EGLSurface surface)
 {
     Egl.MakeCurrent(Display, surface, surface, EglContext.HandleAsEGLContext);
 }
 public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
Exemplo n.º 16
0
 public static EGLSurface CreateWindowSurface(EGLDisplay dpy, EGLConfig config, IntPtr win, int[] attrib_list)
 {
     IntPtr ptr = eglCreateWindowSurface(dpy, config,  win, attrib_list);
     EGLSurface ret = new EGLSurface(ptr);
     return ret;
 }
Exemplo n.º 17
0
 public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
 public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
Exemplo n.º 19
0
 public static extern bool SurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value);
 public static extern bool QuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, out int value);
Exemplo n.º 21
0
 public static extern bool MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
 public static extern bool SurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value);
Exemplo n.º 23
0
 public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
Exemplo n.º 24
0
 public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);