void scheduleGL(std::tr1::function<void()> customCode, ZPos z) { code.insert(std::make_pair(z, customCode)); }