public GlxContext(GlxInterface glx, IntPtr handle, GlxDisplay display, X11Info x11, IntPtr defaultXid) { Handle = handle; Glx = glx; _x11 = x11; _defaultXid = defaultXid; Display = display; }
public static GlxGlPlatformFeature TryCreate(X11Info x11, List <GlVersion> glProfiles) { try { var disp = new GlxDisplay(x11, glProfiles); return(new GlxGlPlatformFeature { Display = disp, DeferredContext = disp.DeferredContext }); } catch (Exception e) { Logger.TryGet(LogEventLevel.Error, "OpenGL")?.Log(null, "Unable to initialize GLX-based rendering: {0}", e); return(null); } }
public GlxContext(GlxInterface glx, IntPtr handle, GlxDisplay display, GlVersion version, int sampleCount, int stencilSize, X11Info x11, IntPtr defaultXid, bool ownsPBuffer) { Handle = handle; Glx = glx; _x11 = x11; _defaultXid = defaultXid; _ownsPBuffer = ownsPBuffer; Display = display; Version = version; SampleCount = sampleCount; StencilSize = stencilSize; using (MakeCurrent()) GlInterface = new GlInterface(version, GlxInterface.SafeGetProcAddress); }
public static GlxGlPlatformFeature TryCreate(X11Info x11) { try { var disp = new GlxDisplay(x11); return(new GlxGlPlatformFeature { Display = disp, ImmediateContext = disp.ImmediateContext, DeferredContext = disp.DeferredContext }); } catch (Exception e) { Logger.Error("OpenGL", null, "Unable to initialize GLX-based rendering: {0}", e); return(null); } }
public GlxGlPlatformSurface(GlxDisplay display, GlxContext context, EglGlPlatformSurface.IEglWindowGlPlatformSurfaceInfo info) { _display = display; _context = context; _info = info; }
public GlxContext(IntPtr handle, GlxDisplay display, X11Info x11) { Handle = handle; _x11 = x11; Display = display; }