Пример #1
0
        public void RefreshGizmos()
        {
            switch (displayGizmo)
            {
            case DisplayGizmo.Texture:
                if (textureGizmo == null)
                {
                    textureGizmo = new MatrixTextureGizmo();
                }
                textureGizmo.SetMatrix(matrix, centerCell: centerCell, filterMode: filterMode);
                break;

            case DisplayGizmo.Height:
                if (heightGizmo == null)
                {
                    heightGizmo = new MatrixHeightGizmo();
                }
                heightGizmo.SetMatrix(matrix);
                break;

            case DisplayGizmo.FacetedHeight:
                if (heightGizmo == null)
                {
                    heightGizmo = new MatrixHeightGizmo();
                }
                heightGizmo.SetMatrix(matrix, faceted: true);
                break;
            }
        }
Пример #2
0
        public static void DrawNow(Matrix matrix, Vector2D worldOffset, Vector2D worldSize)
        {
            MatrixTextureGizmo gizmo = new MatrixTextureGizmo();

            gizmo.SetMatrix(matrix);
            gizmo.SetOffsetSize(worldOffset, worldSize);
            gizmo.Draw();
        }