@@ -23,6 +23,7 @@ misrepresented as being the original software.
23
23
3. This notice may not be removed or altered from any source distribution.
24
24
*/
25
25
26
+ using System ;
26
27
using System . Runtime . InteropServices ;
27
28
28
29
namespace SDL
@@ -40,6 +41,10 @@ public unsafe partial struct IMG_Animation
40
41
public int * delays ;
41
42
}
42
43
44
+ public partial struct IMG_AnimationStream
45
+ {
46
+ }
47
+
43
48
public static unsafe partial class SDL3_image
44
49
{
45
50
[ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
@@ -225,6 +230,22 @@ public static unsafe partial class SDL3_image
225
230
[ return : NativeTypeName ( "bool" ) ]
226
231
public static extern SDLBool IMG_SaveJPG_IO ( SDL_Surface * surface , SDL_IOStream * dst , [ NativeTypeName ( "bool" ) ] SDLBool closeio , int quality ) ;
227
232
233
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
234
+ [ return : NativeTypeName ( "bool" ) ]
235
+ public static extern SDLBool IMG_SaveWEBP_IO ( SDL_Surface * surface , SDL_IOStream * dst , [ NativeTypeName ( "bool" ) ] SDLBool closeio , float quality ) ;
236
+
237
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
238
+ [ return : NativeTypeName ( "bool" ) ]
239
+ public static extern SDLBool IMG_SaveWEBP ( SDL_Surface * surface , [ NativeTypeName ( "const char *" ) ] byte * file , float quality ) ;
240
+
241
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
242
+ [ return : NativeTypeName ( "bool" ) ]
243
+ public static extern SDLBool IMG_SaveTGA_IO ( SDL_Surface * surface , SDL_IOStream * dst ) ;
244
+
245
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
246
+ [ return : NativeTypeName ( "bool" ) ]
247
+ public static extern SDLBool IMG_SaveTGA ( SDL_Surface * surface , [ NativeTypeName ( "const char *" ) ] byte * file ) ;
248
+
228
249
[ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
229
250
public static extern IMG_Animation * IMG_LoadAnimation ( [ NativeTypeName ( "const char *" ) ] byte * file ) ;
230
251
@@ -243,6 +264,23 @@ public static unsafe partial class SDL3_image
243
264
[ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
244
265
public static extern IMG_Animation * IMG_LoadWEBPAnimation_IO ( SDL_IOStream * src ) ;
245
266
267
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
268
+ public static extern IMG_AnimationStream * IMG_CreateAnimationStream ( [ NativeTypeName ( "const char *" ) ] byte * file ) ;
269
+
270
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
271
+ public static extern IMG_AnimationStream * IMG_CreateAnimationStream_IO ( SDL_IOStream * dst , [ NativeTypeName ( "bool" ) ] SDLBool closeio , [ NativeTypeName ( "const char *" ) ] byte * type ) ;
272
+
273
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
274
+ public static extern IMG_AnimationStream * IMG_CreateAnimationStreamWithProperties ( SDL_PropertiesID props ) ;
275
+
276
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
277
+ [ return : NativeTypeName ( "bool" ) ]
278
+ public static extern SDLBool IMG_AddAnimationFrame ( IMG_AnimationStream * stream , SDL_Surface * surface , [ NativeTypeName ( "Uint64" ) ] ulong pts ) ;
279
+
280
+ [ DllImport ( "SDL3_image" , CallingConvention = CallingConvention . Cdecl , ExactSpelling = true ) ]
281
+ [ return : NativeTypeName ( "bool" ) ]
282
+ public static extern SDLBool IMG_CloseAnimationStream ( IMG_AnimationStream * stream ) ;
283
+
246
284
[ NativeTypeName ( "#define SDL_IMAGE_MAJOR_VERSION 3" ) ]
247
285
public const int SDL_IMAGE_MAJOR_VERSION = 3 ;
248
286
@@ -254,5 +292,26 @@ public static unsafe partial class SDL3_image
254
292
255
293
[ NativeTypeName ( "#define SDL_IMAGE_VERSION SDL_VERSIONNUM(SDL_IMAGE_MAJOR_VERSION, SDL_IMAGE_MINOR_VERSION, SDL_IMAGE_MICRO_VERSION)" ) ]
256
294
public const int SDL_IMAGE_VERSION = ( ( 3 ) * 1000000 + ( 3 ) * 1000 + ( 0 ) ) ;
295
+
296
+ [ NativeTypeName ( "#define IMG_PROP_ANIMATION_STREAM_CREATE_FILENAME_STRING \" SDL_image.animation_stream.create.filename\" " ) ]
297
+ public static ReadOnlySpan < byte > IMG_PROP_ANIMATION_STREAM_CREATE_FILENAME_STRING => "SDL_image.animation_stream.create.filename"u8 ;
298
+
299
+ [ NativeTypeName ( "#define IMG_PROP_ANIMATION_STREAM_CREATE_IOSTREAM_POINTER \" SDL_image.animation_stream.create.iostream\" " ) ]
300
+ public static ReadOnlySpan < byte > IMG_PROP_ANIMATION_STREAM_CREATE_IOSTREAM_POINTER => "SDL_image.animation_stream.create.iostream"u8 ;
301
+
302
+ [ NativeTypeName ( "#define IMG_PROP_ANIMATION_STREAM_CREATE_IOSTREAM_AUTOCLOSE_BOOLEAN \" SDL_image.animation_stream.create.iostream.autoclose\" " ) ]
303
+ public static ReadOnlySpan < byte > IMG_PROP_ANIMATION_STREAM_CREATE_IOSTREAM_AUTOCLOSE_BOOLEAN => "SDL_image.animation_stream.create.iostream.autoclose"u8 ;
304
+
305
+ [ NativeTypeName ( "#define IMG_PROP_ANIMATION_STREAM_CREATE_TYPE_STRING \" SDL_image.animation_stream.create.type\" " ) ]
306
+ public static ReadOnlySpan < byte > IMG_PROP_ANIMATION_STREAM_CREATE_TYPE_STRING => "SDL_image.animation_stream.create.type"u8 ;
307
+
308
+ [ NativeTypeName ( "#define IMG_PROP_ANIMATION_STREAM_CREATE_QUALITY_NUMBER \" SDL_image.animation_stream.create.quality\" " ) ]
309
+ public static ReadOnlySpan < byte > IMG_PROP_ANIMATION_STREAM_CREATE_QUALITY_NUMBER => "SDL_image.animation_stream.create.quality"u8 ;
310
+
311
+ [ NativeTypeName ( "#define IMG_PROP_ANIMATION_STREAM_CREATE_TIMEBASE_NUMERATOR_NUMBER \" SDL_image.animation_stream.create.timebase.numerator\" " ) ]
312
+ public static ReadOnlySpan < byte > IMG_PROP_ANIMATION_STREAM_CREATE_TIMEBASE_NUMERATOR_NUMBER => "SDL_image.animation_stream.create.timebase.numerator"u8 ;
313
+
314
+ [ NativeTypeName ( "#define IMG_PROP_ANIMATION_STREAM_CREATE_TIMEBASE_DENOMINATOR_NUMBER \" SDL_image.animation_stream.create.timebase.denominator\" " ) ]
315
+ public static ReadOnlySpan < byte > IMG_PROP_ANIMATION_STREAM_CREATE_TIMEBASE_DENOMINATOR_NUMBER => "SDL_image.animation_stream.create.timebase.denominator"u8 ;
257
316
}
258
317
}
0 commit comments