Ignore:
Timestamp:
Nov 23, 2006, 9:22:03 PM (16 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • .Net : Fixed drawLine() and updated example (rasters rule)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/DotNet/Cucul.cs

    r1424 r1428  
    5151      public static extern Int32  cucul_blit(IntPtr qq, Int32 x, Int32 y, IntPtr qq1, IntPtr qq2);
    5252    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
    53       public static extern Int32 cucul_draw_line(IntPtr qq, Int32 x1, Int32 y1, Int32 x2, Int32 y2, string c);
     53      public static extern Int32 cucul_draw_line(IntPtr qq, Int32 x1, Int32 y1, Int32 x2, Int32 y2, Int32 c);
    5454    [DllImport("libCucul.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
    5555      public static extern Int32 cucul_draw_polyline(IntPtr qq, Int32[] x, Int32[] y, Int32 n, IntPtr c);
     
    191191            return cucul_putchar(qq, x, y, c);
    192192            }
    193         public Int32 clearCanvas()
     193        public Int32 Clear()
    194194            {
    195195            return cucul_clear_canvas(qq);
     
    199199            return cucul_blit(qq, x, y, qq1.get_cucul_t(), qq2.get_cucul_t());
    200200            }
    201         public Int32 drawLine(Int32 x1, Int32 y1, Int32 x2, Int32 y2, string c)
     201        public Int32 drawLine(Int32 x1, Int32 y1, Int32 x2, Int32 y2, Int32 c)
    202202            {
    203203            return cucul_draw_line(qq, x1, y1, x2, y2, c);
Note: See TracChangeset for help on using the changeset viewer.