本文整理汇总了C#中OpenTK.Platform.Egl.EGLDisplay类的典型用法代码示例。如果您正苦于以下问题:C# EGLDisplay类的具体用法?C# EGLDisplay怎么用?C# EGLDisplay使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EGLDisplay类属于OpenTK.Platform.Egl命名空间,在下文中一共展示了EGLDisplay类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SwapBuffers
public static extern bool SwapBuffers(EGLDisplay dpy, EGLSurface surface);
示例2: CreatePlatformWindowSurfaceEXT
public static extern EGLSurface CreatePlatformWindowSurfaceEXT(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType native_window, int[] attrib_list);
示例3: CreateContext
public static EGLContext CreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, int[] attrib_list)
{
IntPtr ptr = eglCreateContext(dpy, config, share_context, attrib_list);
if (ptr == IntPtr.Zero)
throw new GraphicsContextException(String.Format("Failed to create EGL context, error: {0}.", Egl.GetError()));
return ptr;
}
示例4: MakeCurrent
public static extern bool MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
示例5: SurfaceAttrib
public static extern bool SurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value);
示例6: SwapInterval
public static extern bool SwapInterval(EGLDisplay dpy, int interval);
示例7: Initialize
//[return: MarshalAsAttribute(UnmanagedType.I1)]
public static extern bool Initialize(EGLDisplay dpy, out int major, out int minor);
示例8: QuerySurface
public static extern bool QuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, out int value);
示例9: GetDisplay
public static EGLDisplay GetDisplay(EGLNativeDisplayType display_id)
{
IntPtr ptr = eglGetDisplay(display_id);
EGLDisplay ret = new EGLDisplay(ptr);
return ret;
}
示例10: CreateWindowSurface
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;
}
示例11: EglWindowInfo
public EglWindowInfo(IntPtr handle, EGLDisplay display, EGLSurface surface)
{
Handle = handle;
Display = display;
Surface = surface;
}
示例12: CreatePlatformPixmapSurfaceEXT
public static extern EGLSurface CreatePlatformPixmapSurfaceEXT(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType native_pixmap, int[] attrib_list);
示例13: CreatePixmapSurface
public static extern EGLSurface CreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, int[] attrib_list);
示例14: Terminate
//[return: MarshalAsAttribute(UnmanagedType.I1)]
public static extern bool Terminate(EGLDisplay dpy);
示例15: DestroySurface
public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);