public EglContext(EglDisplay display, EglInterface egl, IntPtr ctx, IntPtr offscreenSurface) { _disp = display; _egl = egl; Context = ctx; OffscreenSurface = offscreenSurface; }
public RenderTarget(EglDisplay display, EglContext context, EglSurface glSurface, IEglWindowGlPlatformSurfaceInfo info) { _display = display; _context = context; _glSurface = glSurface; _info = info; _initialSize = info.Size; }
public Session(EglDisplay display, EglContext context, EglSurface glSurface, IEglWindowGlPlatformSurfaceInfo info, IDisposable @lock) { _context = context; _display = display; _glSurface = glSurface; _info = info; _lock = @lock; }
public EglContext(EglDisplay display, EglInterface egl, IntPtr ctx, EglSurface offscreenSurface, GlVersion version, int sampleCount, int stencilSize) { _disp = display; _egl = egl; Context = ctx; OffscreenSurface = offscreenSurface; Version = version; SampleCount = sampleCount; StencilSize = stencilSize; using (MakeCurrent()) GlInterface = GlInterface.FromNativeUtf8GetProcAddress(version, b => _egl.GetProcAddress(b)); }
public Session(EglDisplay display, EglContext context, EglSurface glSurface, EglGlPlatformSurfaceBase.IEglWindowGlPlatformSurfaceInfo info, IDisposable @lock, IDisposable restoreContext, Action onFinish, bool isYFlipped) { IsYFlipped = isYFlipped; _context = context; _display = display; _glSurface = glSurface; _info = info; _lock = @lock; _restoreContext = restoreContext; _onFinish = onFinish; }
public static EglGlPlatformFeature TryCreate() { try { var disp = new EglDisplay(); return(new EglGlPlatformFeature { _display = disp, DeferredContext = disp.CreateContext(null) }); } catch (Exception e) { Logger.TryGet(LogEventLevel.Error, "OpenGL")?.Log(null, "Unable to initialize EGL-based rendering: {0}", e); return(null); } }
public static EglGlPlatformFeature TryCreate() { try { var disp = new EglDisplay(); var ctx = disp.CreateContext(null); return(new EglGlPlatformFeature { Display = disp, ImmediateContext = ctx, DeferredContext = (EglContext)disp.CreateContext(ctx) }); } catch (Exception e) { Logger.Error("OpenGL", null, "Unable to initialize EGL-based rendering: {0}", e); return(null); } }
public EglSurface(EglDisplay display, EglInterface egl, IntPtr surface) : base(surface, true) { _display = display; _egl = egl; }
public EglGlPlatformSurface(EglDisplay display, IGlContext context, IEglWindowGlPlatformSurfaceInfo info) { _display = display; _context = context; _info = info; }
public EglGlPlatformSurface(EglContext context, IEglWindowGlPlatformSurfaceInfo info) : base() { _display = context.Display; _context = context; _info = info; }
protected EglPlatformSurfaceRenderTargetBase(EglDisplay display, EglContext context) { _display = display; _context = context; }
public EglContext(EglDisplay display, IntPtr ctx, IntPtr offscreenSurface) { _disp = display; Context = ctx; OffscreenSurface = offscreenSurface; }
public EglSurface(EglDisplay display, IntPtr surface) : base(surface, true) { _display = display; }