forked from MoonsideGames/RefreshCS
1.12.0
parent
10f54d6b03
commit
fb5fee5f56
|
@ -36,7 +36,7 @@ namespace RefreshCS
|
||||||
/* Version */
|
/* Version */
|
||||||
|
|
||||||
public const uint REFRESH_MAJOR_VERSION = 1;
|
public const uint REFRESH_MAJOR_VERSION = 1;
|
||||||
public const uint REFRESH_MINOR_VERSION = 11;
|
public const uint REFRESH_MINOR_VERSION = 12;
|
||||||
public const uint REFRESH_PATCH_VERSION = 0;
|
public const uint REFRESH_PATCH_VERSION = 0;
|
||||||
|
|
||||||
public const uint REFRESH_COMPILED_VERSION = (
|
public const uint REFRESH_COMPILED_VERSION = (
|
||||||
|
@ -976,7 +976,7 @@ namespace RefreshCS
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_Image_Load(
|
public static extern IntPtr Refresh_Image_LoadPNGFromFile(
|
||||||
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
||||||
out int width,
|
out int width,
|
||||||
out int height,
|
out int height,
|
||||||
|
@ -984,10 +984,37 @@ namespace RefreshCS
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_Image_Free(
|
public static extern IntPtr Refresh_Image_LoadPNGFromMemory(
|
||||||
IntPtr mem
|
IntPtr buffer,
|
||||||
|
int bufferLength,
|
||||||
|
out int width,
|
||||||
|
out int height,
|
||||||
|
out int numChannels
|
||||||
);
|
);
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern void Refresh_Image_FreePNG(IntPtr mem);
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern IntPtr Refresh_Image_LoadQOIFromFile(
|
||||||
|
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
||||||
|
out int width,
|
||||||
|
out int height,
|
||||||
|
out int numChannels
|
||||||
|
);
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern IntPtr Refresh_Image_LoadQOIFromMemory(
|
||||||
|
IntPtr buffer,
|
||||||
|
int bufferLength,
|
||||||
|
out int width,
|
||||||
|
out int height,
|
||||||
|
out int numChannels
|
||||||
|
);
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern void Refresh_Image_FreeQOI(IntPtr mem);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_Image_SavePNG(
|
public static extern void Refresh_Image_SavePNG(
|
||||||
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
||||||
|
@ -996,5 +1023,13 @@ namespace RefreshCS
|
||||||
byte bgra,
|
byte bgra,
|
||||||
IntPtr data
|
IntPtr data
|
||||||
);
|
);
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern void Refresh_Image_SaveQOI(
|
||||||
|
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
||||||
|
int w,
|
||||||
|
int h,
|
||||||
|
IntPtr data
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue