private eglCreateContext ( EGLDisplay dpy, EGLConfig config, EGLContext share_context, int attrib_list ) : IntPtr | ||
dpy | EGLDisplay | |
config | EGLConfig | |
share_context | EGLContext | |
attrib_list | int | |
Результат | IntPtr |
public static IntPtr CreateContext(IntPtr dpy, IntPtr config, IntPtr share_context, int[] attrib_list) { IntPtr context = Egl.eglCreateContext(dpy, config, share_context, attrib_list); if (context == IntPtr.Zero) { throw new GraphicsContextException(string.Format("Failed to create EGL context, error: {0}.", (object)Egl.GetError())); } else { return(context); } }