Exemplo n.º 1
0
        public void Step(out int p_start, Art.SVPRenderAAStep p_steps, out int p_n_steps)
        {
            IntPtr native_p_steps = GLib.Marshaller.StructureToPtrAlloc(p_steps);

            art_svp_render_aa_iter_step(Handle, out p_start, native_p_steps, out p_n_steps);
            p_steps = Art.SVPRenderAAStep.New(native_p_steps);
            Marshal.FreeHGlobal(native_p_steps);
        }
        void InvokeNative(IntPtr callback_data, int y, int start, Art.SVPRenderAAStep steps, int n_steps)
        {
            IntPtr native_steps = GLib.Marshaller.StructureToPtrAlloc(steps);

            native_cb(__data, y, start, native_steps, n_steps);
            steps = Art.SVPRenderAAStep.New(native_steps);
            Marshal.FreeHGlobal(native_steps);
        }