public void MakeCurrent(IGlSurface surface)
 {
     if (surface != null)
     {
         throw new ArgumentException(nameof(surface));
     }
     Context.MakeCurrent();
 }
Exemple #2
0
            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");
                }
            }
Exemple #3
0
 public Session(IGlContext context, IGlSurface glSurface, IEglWindowGlPlatformSurfaceInfo info)
 {
     _context   = context;
     _glSurface = glSurface;
     _info      = info;
 }
Exemple #4
0
 public RenderTarget(IGlContext context, IGlSurface glSurface, IEglWindowGlPlatformSurfaceInfo info)
 {
     _context   = context;
     _glSurface = glSurface;
     _info      = info;
 }