コード例 #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        protected override void UpdateMesh(MeshType pType, Mesh pMesh, float pAmount = 1)
        {
            if (pType == MeshType.Edge)
            {
                MeshUtil.BuildBorderMesh(pMesh, vWidth, vHeight, EdgeThick);
                return;
            }

            float inset = (pType != MeshType.Background ? EdgeThick * 2 : 0);

            MeshUtil.BuildRectangleMesh(pMesh, vWidth - inset, vHeight - inset, pAmount);
        }
コード例 #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        protected override void UpdateMesh(MeshType pType, Mesh pMesh, float pAmount = 1)
        {
            if (pType == MeshType.Edge)
            {
                MeshUtil.BuildBorderMesh(pMesh, vMeshW, vMeshH, EdgeThick);
                return;
            }

            float inset = (pType != MeshType.Background ? EdgeThick * 2 : 0);

            MeshUtil.BuildRectangleMesh(pMesh, Math.Max(0, vMeshW - inset),
                                        Math.Max(0, vMeshH - inset), pAmount);
        }