public void MakeCurrent(IGlSurface surface) { if (surface != null) { throw new ArgumentException(nameof(surface)); } Context.MakeCurrent(); }
public void MakeCurrent(IGlSurface surface) { var surf = ((EglSurface)surface)?.DangerousGetHandle() ?? OffscreenSurface; if (!_disp._egl.MakeCurrent(_disp._display, surf, surf, Context)) { throw new OpenGlException("eglMakeCurrent failed"); } }
public Session(IGlContext context, IGlSurface glSurface, IEglWindowGlPlatformSurfaceInfo info) { _context = context; _glSurface = glSurface; _info = info; }
public RenderTarget(IGlContext context, IGlSurface glSurface, IEglWindowGlPlatformSurfaceInfo info) { _context = context; _glSurface = glSurface; _info = info; }