コード例 #1
0
        public static Art.SvpWriter RewindNew(Art.WindRule rule)
        {
            IntPtr raw_ret = art_svp_writer_rewind_new((int)rule);

            Art.SvpWriter ret = Art.SvpWriter.New(raw_ret);
            return(ret);
        }
コード例 #2
0
        public void Intersector(Art.SvpWriter out_param)
        {
            IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this));

            System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false);
            IntPtr native_out_param = GLib.Marshaller.StructureToPtrAlloc(out_param);

            art_svp_intersector(this_as_native, native_out_param);
            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            out_param = Art.SvpWriter.New(native_out_param);
            Marshal.FreeHGlobal(native_out_param);
        }
コード例 #3
0
 static void ReadNative(IntPtr native, ref Art.SvpWriter target)
 {
     target = New(native);
 }