00001 #ifndef _VUMAP_H_
00002 #define _VUMAP_H_
00003
00004 #include <iostream>
00005 #include <vuSimpleTypes.h>
00006
00007 using namespace std;
00008
00014 class vuMap {
00015 public:
00017 vuMap();
00018
00019 virtual ~vuMap();
00020
00025 void createRamp(word start, word startval, word end, word endval);
00026
00028 void createIdentity();
00029
00030
00031
00034 word operator[](word index) const
00035 {return m_Map[index]; }
00038 word& operator[](word index)
00039 {return m_Map[index]; }
00040
00041 friend ostream& operator<<(ostream& os, const vuMap& map);
00042
00043 friend istream& operator>>(istream& is, vuMap& map);
00044
00045 protected:
00047 word m_Map[1<<16];
00048 };
00049
00050 #endif