add possibility to get a reference to the raw data of PixelGrid

This commit is contained in:
Vinzenz Schroeter 2024-05-13 01:26:44 +02:00
parent 10e6138756
commit ea7061db7f
7 changed files with 75 additions and 13 deletions

View file

@ -192,6 +192,10 @@ namespace ServicePoint2.BindGen
[DllImport(__DllName, EntryPoint = "sp2_pixel_grid_height", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern nuint sp2_pixel_grid_height(PixelGrid* @this);
/// <summary>Gets a reference to the data of the `PixelGrid` instance.</summary>
[DllImport(__DllName, EntryPoint = "sp2_pixel_grid_data_ref", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern byte* sp2_pixel_grid_data_ref(PixelGrid* @this);
}