]> git.quilime.com - stars.git/commitdiff
Some updates master
authorGabriel Dunne <gdunne@quilime.com>
Sat, 27 Apr 2013 03:30:57 +0000 (20:30 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Sat, 27 Apr 2013 03:30:57 +0000 (20:30 -0700)
intern/Global.cpp

index 85e6e09f3488c4912818ad18ee3a8e21c25869b0..a261a8902c824c1df9db19b8cf4e2fdab694ca75 100755 (executable)
@@ -10,33 +10,31 @@ Global *Global::instance;
 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;
@@ -61,10 +59,11 @@ void Global::loop()
     }
     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++)
         {
@@ -79,7 +78,7 @@ void Global::loop()
     int MPOS = 0;
     if (_PERFORM_) {
         MPOS = mouseX();
-        capture.push_back(mouseX());
+        capture.push_back(MPOS);
     } else {
         MPOS = move[movecount];
     }