Esempio n. 1
0
        public static void Draw(SpriteBatch spriteBatch)
        {
            //llamo a la función Draw de los bangs
            foreach (var bang in chordPlaying)
            {
                bang.Value.Draw(spriteBatch);
            }

            slowerArpeggiations.Draw(spriteBatch);
        }
        public static void Draw(SpriteBatch spriteBatch) // a la función Draw le paso un SpriteBatch, así no tengo que hacer Begin a un nuevo SpriteBatch dentro de esta función, sino que puedo usar un SpriteBatch que ya haya comenzado.
        {
            //llamo a la función Draw de los checkboxes y bangs
            foreach (var checkbox in _chordType)
            {
                checkbox.Draw(spriteBatch);
            }

            foreach (var checkbox in _chordInversion)
            {
                checkbox.Draw(spriteBatch);
            }

            foreach (var bang in _chordTypePresets)
            {
                bang.Value.Draw(spriteBatch);
            }

            _onlyRootPosition.Draw(spriteBatch);
        }
 public static void Draw(SpriteBatch spriteBatch) // a la función Draw le paso un SpriteBatch, así no tengo que hacer Begin a un nuevo SpriteBatch dentro de esta función, sino que puedo usar un SpriteBatch que ya haya comenzado.
 {
     _allowAudio.Draw(spriteBatch);               //llamo a la función "Draw" del checkbox
 }