Example #1
0
        public static bool Manipulate(ref float view, ref float projection, OPERATION operation, MODE mode, ref float matrix, ref float deltaMatrix, ref float snap, ref float localBounds, ref float boundsSnap)
        {
            fixed(float *native_view = &view)
            {
                fixed(float *native_projection = &projection)
                {
                    fixed(float *native_matrix = &matrix)
                    {
                        fixed(float *native_deltaMatrix = &deltaMatrix)
                        {
                            fixed(float *native_snap = &snap)
                            {
                                fixed(float *native_localBounds = &localBounds)
                                {
                                    fixed(float *native_boundsSnap = &boundsSnap)
                                    {
                                        byte ret = ImGuizmoNative.ImGuizmo_Manipulate(native_view, native_projection, operation, mode, native_matrix, native_deltaMatrix, native_snap, native_localBounds, native_boundsSnap);

                                        return(ret != 0);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
Example #2
0
 public static void ViewManipulate(ref float view, float length, Vector2 position, Vector2 size, uint backgroundColor)
 {
     fixed(float *native_view = &view)
     {
         ImGuizmoNative.ImGuizmo_ViewManipulate(native_view, length, position, size, backgroundColor);
     }
 }
Example #3
0
 public static void DrawCubes(ref float view, ref float projection, ref float matrices, int matrixCount)
 {
     fixed(float *native_view = &view)
     {
         fixed(float *native_projection = &projection)
         {
             fixed(float *native_matrices = &matrices)
             {
                 ImGuizmoNative.ImGuizmo_DrawCubes(native_view, native_projection, native_matrices, matrixCount);
             }
         }
     }
 }
Example #4
0
 public static void DrawGrid(ref float view, ref float projection, ref float matrix, float gridSize)
 {
     fixed(float *native_view = &view)
     {
         fixed(float *native_projection = &projection)
         {
             fixed(float *native_matrix = &matrix)
             {
                 ImGuizmoNative.ImGuizmo_DrawGrid(native_view, native_projection, native_matrix, gridSize);
             }
         }
     }
 }
Example #5
0
 public static void DecomposeMatrixToComponents(ref float matrix, ref float translation, ref float rotation, ref float scale)
 {
     fixed(float *native_matrix = &matrix)
     {
         fixed(float *native_translation = &translation)
         {
             fixed(float *native_rotation = &rotation)
             {
                 fixed(float *native_scale = &scale)
                 {
                     ImGuizmoNative.ImGuizmo_DecomposeMatrixToComponents(native_matrix, native_translation, native_rotation, native_scale);
                 }
             }
         }
     }
 }
Example #6
0
 public void RecomposeMatrixFromComponents(ref float translation, ref float rotation, ref float scale, ref float matrix)
 {
     fixed(float *native_translation = &translation)
     {
         fixed(float *native_rotation = &rotation)
         {
             fixed(float *native_scale = &scale)
             {
                 fixed(float *native_matrix = &matrix)
                 {
                     ImGuizmoNative.ImGuizmo_RecomposeMatrixFromComponents(native_translation, native_rotation, native_scale, native_matrix);
                 }
             }
         }
     }
 }
Example #7
0
        public static bool Manipulate(ref float view, ref float projection, OPERATION operation, MODE mode, ref float matrix)
        {
            float *deltaMatrix = null;
            float *snap        = null;
            float *localBounds = null;
            float *boundsSnap  = null;

            fixed(float *native_view = &view)
            {
                fixed(float *native_projection = &projection)
                {
                    fixed(float *native_matrix = &matrix)
                    {
                        byte ret = ImGuizmoNative.ImGuizmo_Manipulate(native_view, native_projection, operation, mode, native_matrix, deltaMatrix, snap, localBounds, boundsSnap);

                        return(ret != 0);
                    }
                }
            }
        }
Example #8
0
 public static void SetImGuiContext(IntPtr ctx)
 {
     ImGuizmoNative.ImGuizmo_SetImGuiContext(ctx);
 }
Example #9
0
        public static bool IsOver(OPERATION op)
        {
            byte ret = ImGuizmoNative.ImGuizmo_IsOverOPERATION(op);

            return(ret != 0);
        }
Example #10
0
        public static bool IsUsing()
        {
            byte ret = ImGuizmoNative.ImGuizmo_IsUsing();

            return(ret != 0);
        }
Example #11
0
        public static void Enable(bool enable)
        {
            byte native_enable = enable ? (byte)1 : (byte)0;

            ImGuizmoNative.ImGuizmo_Enable(native_enable);
        }
Example #12
0
        public static bool IsOver()
        {
            byte ret = ImGuizmoNative.ImGuizmo_IsOverNil();

            return(ret != 0);
        }
Example #13
0
 public static void BeginFrame()
 {
     ImGuizmoNative.ImGuizmo_BeginFrame();
 }
Example #14
0
        public static void AllowAxisFlip(bool value)
        {
            byte native_value = value ? (byte)1 : (byte)0;

            ImGuizmoNative.ImGuizmo_AllowAxisFlip(native_value);
        }
Example #15
0
 public static void SetRect(float x, float y, float width, float height)
 {
     ImGuizmoNative.ImGuizmo_SetRect(x, y, width, height);
 }
Example #16
0
        public static void SetDrawlist()
        {
            ImDrawList *drawlist = null;

            ImGuizmoNative.ImGuizmo_SetDrawlist(drawlist);
        }
Example #17
0
        public static void SetOrthographic(bool isOrthographic)
        {
            byte native_isOrthographic = isOrthographic ? (byte)1 : (byte)0;

            ImGuizmoNative.ImGuizmo_SetOrthographic(native_isOrthographic);
        }
Example #18
0
        public static bool IsOver(int op)
        {
            byte ret = ImGuizmoNative.ImGuizmo_IsOver_OPERATION((OPERATION)op);

            return(ret != 0);
        }
Example #19
0
 public static void SetID(int id)
 {
     ImGuizmoNative.ImGuizmo_SetID(id);
 }
Example #20
0
 public static void SetGizmoSizeClipSpace(float value)
 {
     ImGuizmoNative.ImGuizmo_SetGizmoSizeClipSpace(value);
 }
Example #21
0
        public static void SetDrawlist(ImDrawListPtr drawlist)
        {
            ImDrawList *native_drawlist = drawlist.NativePtr;

            ImGuizmoNative.ImGuizmo_SetDrawlist(native_drawlist);
        }