Exemplo n.º 1
0
 public void Draw(double currentBeat, Matrix view, Matrix projection)
 {
     if (noteTexture == null)
     {
         noteTexture = new BeatMarkerTexture(this);
     }
     noteTexture.Draw(currentBeat, view, projection);
 }
Exemplo n.º 2
0
        public void Draw(double currentBeat, Matrix view, Matrix projection)
        {
            // Don't draw if this was hit
            if (HitResult.WasHit)
            {
                return;
            }

            if (Type == NoteType.Step)
            {
                //if (noteTexture == null)
                //    noteTexture = new StepNoteTexture(this);
                noteTexture.Draw(currentBeat, view, projection);
            }
            else if (Type == NoteType.Motion)
            {
                //if (noteTexture == null)
                //    noteTexture = new MotionTexture(this);
                noteTexture.Draw(currentBeat, view, projection);
            }
        }