// MidiVizStarField
// Lew Hill II

#ifndef _MIDI_VIZ_STAR_FIELD_
#define _MIDI_VIZ_STAR_FIELD_

#include <GL/gl.h>
#include "MidiEvent.h"
#include "NoteColorLookupTable.h"
#include <math.h>

#define NUM_STARS 500

class MidiVizStarField{

 public:
  
  MidiVizStarField();
  void init();
  void draw();
  void frame();

  void processMidiEvent(MidiEvent event);
  
  void setPosition(float x, float y, float z ){
    position[0] = x;
      position[1] = y;
      position[2] = z;
  }
  
  void setRotation(float x, float y, float z){
    rotation[0] = x;
    rotation[1] = y;
    rotation[2] = z;
  }

  void setScale(float x, float y, float z){
    scale[0] = x;
    scale[1] = y;
    scale[2] = z;
    
  }

  void drawbox(GLdouble x0, GLdouble x1, GLdouble y0, GLdouble y1,
             GLdouble z0, GLdouble z1, GLenum type );

 private:

  float noteSettings[12];
  float attNoteColors[12][3];
  float starField[NUM_STARS][3];
  int starNote[NUM_STARS];

  float direction[3];
  float position[3];
  float rotation[3];
  float scale[3];
  NoteColorLookupTable color_table; 
  
  float accel;
  float vel;




};


#endif

