muffin v7.5.5
This commit is contained in:
parent
a8f2c1df37
commit
6266f9e6b7
110 changed files with 14907 additions and 6073 deletions
20
Auspex/Auspex.Rendering.Direct3D/ColorConversions.cs
Normal file
20
Auspex/Auspex.Rendering.Direct3D/ColorConversions.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue