public void Draw(double currentBeat, Matrix view, Matrix projection) { if (noteTexture == null) { noteTexture = new BeatMarkerTexture(this); } noteTexture.Draw(currentBeat, view, projection); }
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); } }