vector< pair<int,culooks::window*> > culooks::Windows;
pthread_t culooks::glThreadId;
+culooks::comarg culooks::comArg;
int culooks::windowid = 0;
Win->initialized = false;
Windows.push_back( pair<int,culooks::window*>(0, Win) );
-
+
if (windowid == 0) {
- comarg comArg;
comArg.argc = argc;
comArg.argv = argv;
pthread_create(&glThreadId, 0, &drawing::glutThread, &comArg);
}
-
mywid = windowid;
windowid++;
}
Windows[mywid].second->bgcolor[2] = blue;
Windows[mywid].second->bgcolor[3] = alpha;
}
+
+void culooks::setWireColor(const float& r, const float& g, const float& b, const float& a)
+{
+ for (int icube=0; icube<Windows[mywid].second->cubes.size(); icube++)
+ Windows[mywid].second->cubes[icube].setWireColor(r, g, b, a);
+}