37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
// -----------------------------------------------------------------------------
|
|
// file="Image.Native"
|
|
// Project: StgSharp
|
|
// Copyright (c) Nitload.
|
|
// SPDX-License-Identifier: MIT
|
|
// -----------------------------------------------------------------------------
|
|
|
|
using Nitload.Common.Internal;
|
|
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Nitload.Graphics
|
|
{
|
|
internal static unsafe partial class GraphicFramework
|
|
{
|
|
|
|
[LibraryImport(
|
|
Native.LibName,
|
|
EntryPoint = "loadImageData",
|
|
StringMarshalling = StringMarshalling.Utf8)]
|
|
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
|
|
internal static partial void InternalLoadImage(
|
|
string fileName,
|
|
ImageInfo* output,
|
|
ImageLoader loader
|
|
);
|
|
|
|
[LibraryImport(Native.LibName, EntryPoint = "unloadImageData")]
|
|
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
|
|
internal static partial void InternalUnloadImage(
|
|
ImageInfo* output
|
|
);
|
|
|
|
}
|
|
}
|