20 lines
482 B
C#
20 lines
482 B
C#
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
using Dalamud.Bindings.ImGui;
|
|
|
|
namespace Auspex.Rendering.Direct3D;
|
|
|
|
internal static class ColorConversions
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static uint ToUint(this Vector4 color)
|
|
{
|
|
return ImGui.ColorConvertFloat4ToU32(color);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static Vector4 ToVector4(this uint color)
|
|
{
|
|
return ImGui.ColorConvertU32ToFloat4(color);
|
|
}
|
|
}
|