Ejemplo n.º 1
0
 public Session(EglDisplay display, EglContext context,
                EglSurface glSurface, EglGlPlatformSurfaceBase.IEglWindowGlPlatformSurfaceInfo info,
                IDisposable restoreContext, Action onFinish, bool isYFlipped)
 {
     IsYFlipped      = isYFlipped;
     _context        = context;
     _display        = display;
     _glSurface      = glSurface;
     _info           = info;
     _restoreContext = restoreContext;
     _onFinish       = onFinish;
 }
Ejemplo n.º 2
0
 public EglContext(EglDisplay display, EglInterface egl, EglContext sharedWith, IntPtr ctx, Func <EglContext, EglSurface> offscreenSurface,
                   GlVersion version, int sampleCount, int stencilSize)
 {
     _disp            = display;
     _egl             = egl;
     _sharedWith      = sharedWith;
     Context          = ctx;
     OffscreenSurface = offscreenSurface(this);
     Version          = version;
     SampleCount      = sampleCount;
     StencilSize      = stencilSize;
     using (MakeCurrent())
         GlInterface = GlInterface.FromNativeUtf8GetProcAddress(version, b => _egl.GetProcAddress(b));
 }
 public EglPlatformOpenGlInterface(EglDisplay display)
 {
     Display           = display;
     PrimaryEglContext = display.CreateContext(null);
 }
Ejemplo n.º 4
0
 public EglSurface(EglDisplay display, EglContext context, IntPtr surface)  : base(surface, true)
 {
     _display = display;
     _context = context;
     _egl     = display.EglInterface;
 }