Ejemplo n.º 1
0
 public SKGLSurfaceView(EvasObject parent)
     : base(parent)
 {
     glConfig = new Evas.Config()
     {
         color_format     = Evas.ColorFormat.RGBA_8888,
         depth_bits       = Evas.DepthBits.BIT_24,
         stencil_bits     = Evas.StencilBits.BIT_8,
         options_bits     = Evas.OptionsBits.NONE,
         multisample_bits = Evas.MultisampleBits.HIGH,
     };
 }
Ejemplo n.º 2
0
        public SKGLSurfaceView(EvasObject parent)
            : base(parent)
        {
            glConfig = new Evas.Config()
            {
                color_format     = Evas.ColorFormat.RGBA_8888,
                depth_bits       = Evas.DepthBits.BIT_24,
                stencil_bits     = Evas.StencilBits.BIT_8,
                options_bits     = Evas.OptionsBits.NONE,
                multisample_bits = Evas.MultisampleBits.HIGH,
            };

            var isBgra = SKImageInfo.PlatformColorType == SKColorType.Bgra8888;

            renderTarget = new GRBackendRenderTargetDesc
            {
                Config = isBgra ? GRPixelConfig.Bgra8888 : GRPixelConfig.Rgba8888,
                Origin = GRSurfaceOrigin.BottomLeft,
            };
        }