示例#1
0
        private void btnSimplePointSprite_Click(object sender, EventArgs e)
        {
            FormSimplePointSpriteSettings settings = new FormSimplePointSpriteSettings();

            if (settings.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                float fontSize       = settings.FontSize;
                bool  foreshortening = settings.Foreshortening;
                var   type           = settings.FragmentShaderType;
                (new FormSimplePointSprite(fontSize, foreshortening, type)).Show();
            }
        }
示例#2
0
 private void btnSimplePointSprite_Click(object sender, EventArgs e)
 {
     FormSimplePointSpriteSettings settings = new FormSimplePointSpriteSettings();
     if (settings.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         float fontSize = settings.FontSize;
         bool foreshortening = settings.Foreshortening;
         var type = settings.FragmentShaderType;
         (new FormSimplePointSprite(fontSize, foreshortening, type)).Show();
     }
 }