Global::Global()
{
srand(982);
- glEnable(GL_LINE_SMOOTH);
- glEnable(GL_POINT_SMOOTH);
- glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
////////////////////////////////////////////////
_PERFORM_ = false;
////////////////////////////////////////////////
instance = this;
-
-
for (int i = 0; i < 20000; i++ ){
rnd.push_back(randomFloat());
}
+
+ glEnable(GL_LINE_SMOOTH);
+ glEnable(GL_POINT_SMOOTH);
+ glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
+
for ( int i=0; i < 10000; i++){
thingies.push_back(new Thingy());
thingies.back()->z = ((rnd[i+7] - .5) * 1000000000);
}
- movecount = 0;
-
-
+ movecount = 0;
toggleFullScreen();
hideMouse();
if ( !_PERFORM_ ) {
- ifstream infile("20-min_1440x1050.txt");
+ ifstream infile("media/20-min_1440x1050.txt");
while( infile.good() ) {
int p;
infile >> p;
}
else {
rnd.clear();
- for (int i = 0; i < 20000; i++ ){
+ for(int i = 0; i < 20000; i++){
rnd.push_back(randomFloat());
}
vector<Thingy*>::iterator it;
+
int cnt = 0;
for(it=thingies.begin();it!=thingies.end();it++)
{
int MPOS = 0;
if (_PERFORM_) {
MPOS = mouseX();
- capture.push_back(mouseX());
+ capture.push_back(MPOS);
} else {
MPOS = move[movecount];
}