Esempio n. 1
0
 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;
 }
Esempio n. 4
0
 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;
 }
Esempio n. 6
0
 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);
     }
 }
Esempio n. 7
0
 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;
 }
Esempio n. 9
0
 public EglGlPlatformSurface(EglDisplay display, IGlContext context, IEglWindowGlPlatformSurfaceInfo info)
 {
     _display = display;
     _context = context;
     _info    = info;
 }
Esempio n. 10
0
 public EglGlPlatformSurface(EglContext context, IEglWindowGlPlatformSurfaceInfo info) : base()
 {
     _display = context.Display;
     _context = context;
     _info    = info;
 }
Esempio n. 11
0
 protected EglPlatformSurfaceRenderTargetBase(EglDisplay display, EglContext context)
 {
     _display = display;
     _context = context;
 }
Esempio n. 12
0
 public EglContext(EglDisplay display, IntPtr ctx, IntPtr offscreenSurface)
 {
     _disp            = display;
     Context          = ctx;
     OffscreenSurface = offscreenSurface;
 }
Esempio n. 13
0
 public EglSurface(EglDisplay display, IntPtr surface)  : base(surface, true)
 {
     _display = display;
 }