Esempio n. 1
0
 public GlGpuSession(GRContext grContext,
                     GRBackendRenderTarget backendRenderTarget,
                     SKSurface surface,
                     IGlPlatformSurfaceRenderingSession glSession)
 {
     GrContext            = grContext;
     _backendRenderTarget = backendRenderTarget;
     _surface             = surface;
     _glSession           = glSession;
 }
Esempio n. 2
0
            public GlGpuSession(GRContext grContext,
                                GRBackendRenderTarget backendRenderTarget,
                                SKSurface surface,
                                IGlPlatformSurfaceRenderingSession glSession)
            {
                GrContext            = grContext;
                _backendRenderTarget = backendRenderTarget;
                _surface             = surface;
                _glSession           = glSession;

                SurfaceOrigin = glSession.IsYFlipped ? GRSurfaceOrigin.TopLeft : GRSurfaceOrigin.BottomLeft;
            }