Exemple #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;
            }
        }
Exemple #2
0
        public static void DrawNow(Matrix matrix, Vector3 worldOffset, Vector3 worldSize)
        {
            MatrixHeightGizmo gizmo = new MatrixHeightGizmo();

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