public void GetNextTile(byte[] buffer, ref int x, ref int y) { RFX_TILE *tile = rfx_message_get_tile(handle, itiles++); x = tile->x; y = tile->y; Marshal.Copy(new IntPtr(tile->data), buffer, 0, 4096 * 4); }
public Cairo.ImageSurface GetNextTile() { Cairo.ImageSurface surface; tile = rfx_message_get_tile(msg, itiles++); Marshal.Copy(new IntPtr(tile->data), buffer, 0, 4096 * 4); surface = new Cairo.ImageSurface(buffer, Cairo.Format.ARGB32, 64, 64, 64 * 4); return surface; }