Exemplo n.º 1
0
 public GRBackendRenderTarget(int width, int height, int sampleCount, int stencilBits, GRGlFramebufferInfo glInfo)
     : this(IntPtr.Zero, true)
 {
     CreateGl(width, height, sampleCount, stencilBits, glInfo);
 }
Exemplo n.º 2
0
        private void CreateGl(int width, int height, int sampleCount, int stencilBits, GRGlFramebufferInfo glInfo)
        {
            Handle = SkiaApi.gr_backendrendertarget_new_gl(width, height, sampleCount, stencilBits, &glInfo);

            if (Handle == IntPtr.Zero)
            {
                throw new InvalidOperationException("Unable to create a new GRBackendRenderTarget instance.");
            }
        }
 public bool GetGlFramebufferInfo(out GRGlFramebufferInfo glInfo)
 {
     return(SkiaApi.gr_backendrendertarget_get_gl_framebufferinfo(Handle, out glInfo));
 }