예제 #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));
 }
예제 #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);
        }
예제 #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);
예제 #7
0
 public void DestroySurface(ref EGLSurface surface)
 {
     EglWindowInfo.DestroySurface(ref surface);
 }
예제 #8
0
파일: Egl.cs 프로젝트: White-Wolf/Minesharp
 public static extern bool SwapBuffers(EGLDisplay dpy, EGLSurface surface);
예제 #9
0
파일: Egl.cs 프로젝트: White-Wolf/Minesharp
 public static extern bool ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer);
예제 #10
0
파일: Egl.cs 프로젝트: White-Wolf/Minesharp
 public static extern bool QuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, out int value);
예제 #11
0
 public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface)
 {
     Handle = handle;
     Display = display;
     Surface = surface;
 }
예제 #12
0
파일: Egl.cs 프로젝트: RockyTV/opentk
 public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);
예제 #13
0
 public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface)
 {
     Handle  = handle;
     Display = display;
     Surface = surface;
 }
예제 #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);
예제 #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;
 }
예제 #17
0
파일: Egl.cs 프로젝트: White-Wolf/Minesharp
 public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
 public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
예제 #19
0
파일: Egl.cs 프로젝트: White-Wolf/Minesharp
 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);
예제 #21
0
파일: Egl.cs 프로젝트: White-Wolf/Minesharp
 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);
예제 #23
0
파일: Egl.cs 프로젝트: White-Wolf/Minesharp
 public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
예제 #24
0
파일: Egl.cs 프로젝트: hobum-kwon/opentk
 public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);