Changeset 1051


Ignore:
Timestamp:
Sep 17, 2006, 3:36:13 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Updated .Net bindings
Location:
libcaca/trunk/DotNet
Files:
2 edited

Legend:

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

    r943 r1051  
    9494      public static extern void caca_refresh_display(IntPtr kk);
    9595    [DllImport("libCaca.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
    96       public static extern void caca_set_delay(IntPtr kk, Int32 d);
     96      public static extern void caca_set_display_time(IntPtr kk, Int32 d);
    9797    [DllImport("libCaca.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
    98       public static extern Int32 caca_get_rendertime(IntPtr kk);
     98      public static extern Int32 caca_get_display_time(IntPtr kk);
    9999    [DllImport("libCaca.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
    100100      public static extern Int32 caca_get_display_width(IntPtr kk);
     
    133133        caca_refresh_display(kk);
    134134        }
    135     public void setDelay(Int32 d)
     135    public void setDisplayTime(Int32 d)
    136136        {
    137         caca_set_delay(kk, d);
     137        caca_set_display_time(kk, d);
    138138        }
    139     public Int32 getRendertime()
     139    public Int32 getDisplayTime()
    140140        {
    141         return caca_get_rendertime(kk);
     141        return caca_get_display_time(kk);
    142142        }
    143143    public Int32 getDisplayWidth()
  • libcaca/trunk/DotNet/test.cs

    r943 r1051  
    4646        /* We have a proper canvas, let's display it using Caca */
    4747        Caca kk = new Caca(qq);
    48         kk.setDelay(2000000); // Refresh every 2 seconds
     48        kk.setDisplayTime(2000000); // Refresh every 2 seconds
    4949
    5050        kk.setDisplayTitle("libcaca .NET Bindings test suite");
    5151
    5252        Event e = new Event();
    53         int startTime = kk.getRendertime();
     53        int startTime = kk.getDisplayTime();
    5454        while(kk.getEvent(Event.type.KEY_RELEASE, e, 10) == 0)
    5555          {
    5656          kk.Refresh();
    57           Console.WriteLine("Render time : {0}", kk.getRendertime()-startTime);
     57          Console.WriteLine("Render time : {0}", kk.getDisplayTime()-startTime);
    5858          }
    5959
Note: See TracChangeset for help on using the changeset viewer.