Example #1
0
 private static extern IntPtr TLN_CreateSpriteset(int entries, Rect[] rects, byte[] data, int width, int height, int pitch, IntPtr palette);
Example #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="entries"></param>
 /// <param name="rects"></param>
 /// <param name="data"></param>
 /// <param name="width"></param>
 /// <param name="height"></param>
 /// <param name="pitch"></param>
 /// <param name="palette"></param>
 public Spriteset(int entries, Rect[] rects, byte[] data, int width, int height, int pitch, Palette palette)
 {
     IntPtr retval = TLN_CreateSpriteset (entries, rects, data, width, height, pitch, palette.ptr);
     if (retval != IntPtr.Zero)
         ptr = retval;
     else
         throw new CreationException ();
 }