print 'GraphicsMagick must be installed!'
Exit(1)
-if not conf.CheckLibWithHeader('png12','png.h','c++','',1):
+if not conf.CheckLibWithHeader('png14','png.h','c++','',1):
print 'libpng12 must be installed!'
Exit(1)
{
srand(982);
+ ////////////////////////////////////////////////
+ _PERFORM_ = false;
+ ////////////////////////////////////////////////
+
instance = this;
for(int i=0;i<20000;i++){
glEnable(GL_POINT_SMOOTH);
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
- for(int i=0;i<10000;i++){
+ for(int i=0; i < 10000; i++){
thingies.push_back(new Thingy());
thingies.back()->z = ((rnd[i+7] - .5) * 100000000);
}
-
-
movecount = 0;
toggleFullScreen();
hideMouse();
-
- ifstream infile("media/move.txt");
- while( infile.good() ) {
- int p;
- infile >> p;
- move.push_back(p);
+ if (!_PERFORM_) {
+ ifstream infile("media/move2.txt");
+ while( infile.good() ) {
+ int p;
+ infile >> p;
+ move.push_back(p);
+ }
+ cout << move.size() << endl;
}
-
- cout << move.size() << endl;
-
}
{
vector<Thingy*>::iterator it;
- int MPOS = move[movecount];
-
if (movecount < move.size() - 10) {
movecount++;
}
}
-
-// int MPOS = mouseX();
-// capture.push_back(mouseX());
+ int MPOS = 0;
+ if (_PERFORM_) {
+ MPOS = mouseX();
+ capture.push_back(mouseX());
+ } else {
+ MPOS = move[movecount];
+ }
for(int i=0; i<thingies.size(); i++)
void Global::mouseDown()
{
- int c = 0;
- cout << "++++++++" << endl;
- for(int i = 0; i < capture.size(); i++)
- {
- cout << capture[i] << endl;
+ if (_PERFORM_) {
+ int c = 0;
+ cout << "++++++++" << endl;
+ for(int i = 0; i < capture.size(); i++)
+ {
+ cout << capture[i] << endl;
+ }
}
-// cout << capture.size() << endl;
-
+// cout << capture.size() << endl;
/*
rnd.clear();
for(int i=0;i<1000;i++){