mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 05:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
44
Brutal.Sdl.Image/Generated/SdlImage.Handles.gen.cs
Normal file
44
Brutal.Sdl.Image/Generated/SdlImage.Handles.gen.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
using Brutal.Interop;
|
||||
|
||||
namespace Brutal.SdlApi.Image;
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed interop handle wrapping the opaque SDL <c>IMG_AnimationDecoder</c> pointer.
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly unsafe partial struct ImgAnimationDecoder : IDisposable
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public void Dispose()
|
||||
{
|
||||
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
|
||||
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
|
||||
// on a null handle (and so a double-dispose after the value was cleared is harmless).
|
||||
if (IsNull())
|
||||
return;
|
||||
SdlImage.PInvoke.CloseAnimationDecoder(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed interop handle wrapping the opaque SDL <c>IMG_AnimationEncoder</c> pointer.
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly unsafe partial struct ImgAnimationEncoder : IDisposable
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public void Dispose()
|
||||
{
|
||||
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
|
||||
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
|
||||
// on a null handle (and so a double-dispose after the value was cleared is harmless).
|
||||
if (IsNull())
|
||||
return;
|
||||
SdlImage.PInvoke.CloseAnimationEncoder(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue