// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using HexaGen.Runtime; using System.Numerics; using Dalamud.Bindings.ImGui; namespace Dalamud.Bindings.ImGuizmo { public unsafe partial class ImGuizmo { /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pmatrix = &matrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pmatrix = &matrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, float* snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, snap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pmatrix = &matrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pmatrix = &matrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float* deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, deltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } } /// /// To be documented. /// public static bool Manipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } } /// /// To be documented. /// public static bool Manipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { fixed (float* pdeltaMatrix = &deltaMatrix) { fixed (float* psnap = &snap) { fixed (float* plocalBounds = &localBounds) { fixed (float* pboundsSnap = &boundsSnap) { byte ret = ManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, (float*)pdeltaMatrix, (float*)psnap, (float*)plocalBounds, (float*)pboundsSnap); return ret != 0; } } } } } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ViewManipulateNative(float* view, float length, Vector2 position, Vector2 size, uint backgroundColor) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[13])(view, length, position, size, backgroundColor); #else ((delegate* unmanaged[Cdecl])funcTable[13])((nint)view, length, position, size, backgroundColor); #endif } /// /// To be documented. /// public static void ViewManipulate(float* view, float length, Vector2 position, Vector2 size, uint backgroundColor) { ViewManipulateNative(view, length, position, size, backgroundColor); } /// /// To be documented. /// public static void ViewManipulate(ref Matrix4x4 view, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (Matrix4x4* pview = &view) { ViewManipulateNative((float*)pview, length, position, size, backgroundColor); } } /// /// To be documented. /// public static void ViewManipulate(ref float view, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pview = &view) { ViewManipulateNative((float*)pview, length, position, size, backgroundColor); } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void ViewManipulateNative(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[14])(view, projection, operation, mode, matrix, length, position, size, backgroundColor); #else ((delegate* unmanaged[Cdecl])funcTable[14])((nint)view, (nint)projection, operation, mode, (nint)matrix, length, position, size, backgroundColor); #endif } /// /// To be documented. /// public static void ViewManipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { ViewManipulateNative(view, projection, operation, mode, matrix, length, position, size, backgroundColor); } /// /// To be documented. /// public static void ViewManipulate(ref Matrix4x4 view, ref Matrix4x4 projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref Matrix4x4 matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (Matrix4x4* pview = &view) { fixed (Matrix4x4* pprojection = &projection) { fixed (Matrix4x4* pmatrix = &matrix) { ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); } } } } /// /// To be documented. /// public static void ViewManipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pview = &view) { ViewManipulateNative((float*)pview, projection, operation, mode, matrix, length, position, size, backgroundColor); } } /// /// To be documented. /// public static void ViewManipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pprojection = &projection) { ViewManipulateNative(view, (float*)pprojection, operation, mode, matrix, length, position, size, backgroundColor); } } /// /// To be documented. /// public static void ViewManipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, float* matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, matrix, length, position, size, backgroundColor); } } } /// /// To be documented. /// public static void ViewManipulate(float* view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pmatrix = &matrix) { ViewManipulateNative(view, projection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); } } /// /// To be documented. /// public static void ViewManipulate(ref float view, float* projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pview = &view) { fixed (float* pmatrix = &matrix) { ViewManipulateNative((float*)pview, projection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); } } } /// /// To be documented. /// public static void ViewManipulate(float* view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { ViewManipulateNative(view, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); } } } /// /// To be documented. /// public static void ViewManipulate(ref float view, ref float projection, ImGuizmoOperation operation, ImGuizmoMode mode, ref float matrix, float length, Vector2 position, Vector2 size, uint backgroundColor) { fixed (float* pview = &view) { fixed (float* pprojection = &projection) { fixed (float* pmatrix = &matrix) { ViewManipulateNative((float*)pview, (float*)pprojection, operation, mode, (float*)pmatrix, length, position, size, backgroundColor); } } } } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetIDNative(int id) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[15])(id); #else ((delegate* unmanaged[Cdecl])funcTable[15])(id); #endif } /// /// To be documented. /// public static void SetID(int id) { SetIDNative(id); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static byte IsOverNative(ImGuizmoOperation op) { #if NET5_0_OR_GREATER return ((delegate* unmanaged[Cdecl])funcTable[16])(op); #else return (byte)((delegate* unmanaged[Cdecl])funcTable[16])(op); #endif } /// /// To be documented. /// public static bool IsOver(ImGuizmoOperation op) { byte ret = IsOverNative(op); return ret != 0; } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void SetGizmoSizeClipSpaceNative(float value) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[17])(value); #else ((delegate* unmanaged[Cdecl])funcTable[17])(value); #endif } /// /// To be documented. /// public static void SetGizmoSizeClipSpace(float value) { SetGizmoSizeClipSpaceNative(value); } /// /// To be documented. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void AllowAxisFlipNative(byte value) { #if NET5_0_OR_GREATER ((delegate* unmanaged[Cdecl])funcTable[18])(value); #else ((delegate* unmanaged[Cdecl])funcTable[18])(value); #endif } /// /// To be documented. /// public static void AllowAxisFlip(bool value) { AllowAxisFlipNative(value ? (byte)1 : (byte)0); } } }