コード例 #1
0
        private void comboInterpType_SelectionChangeCommitted(object sender, EventArgs e)
        {
            switch (comboInterpType.SelectedText)
            {
            case "Linear Interpolation":
                interpType = PerlinNoise.InterpolationType.LinearInterp;
                break;

            case "Cosine Interpolation":
                interpType = PerlinNoise.InterpolationType.CosineInterp;
                break;

            case "Cubic Interpolation":
                interpType = PerlinNoise.InterpolationType.CubicInterp;
                break;

            default:
                //MessageBox.Show("Test");

                break;
            }
        }
コード例 #2
0
ファイル: Main Form.cs プロジェクト: OceanOSdev/PerlinNoise
        private void comboInterpType_SelectionChangeCommitted(object sender, EventArgs e)
        {
            switch (comboInterpType.SelectedText)
            {
                case "Linear Interpolation":
                    interpType = PerlinNoise.InterpolationType.LinearInterp;
                    break;
                case "Cosine Interpolation":
                    interpType = PerlinNoise.InterpolationType.CosineInterp;
                    break;
                case "Cubic Interpolation":
                    interpType = PerlinNoise.InterpolationType.CubicInterp;
                    break;
                default:
                    //MessageBox.Show("Test");

                    break;
            }
        }