using System.Runtime.InteropServices;

namespace Aprillz.MewUI.Native.Direct2D;

internal static partial class D2D1
{
    internal static readonly Guid IID_ID2D1Factory = new("06152247-6F50-465A-9245-118BFD3B6007");
    internal static readonly Guid IID_ID2D1Factory1 = new("bb12d362-daee-4b9a-aa1d-14ba401cfa1f");
    internal static readonly Guid IID_ID2D1DeviceContext = new("e8f7fe7a-191c-466d-ad95-975678bda998");

    [LibraryImport("d2d1.dll")]
    internal static partial int D2D1CreateFactory(
        D2D1_FACTORY_TYPE factoryType,
        in Guid riid,
        nint pFactoryOptions,
        out nint ppIFactory);
}
