void Work::state(const std::string& tag, float_t alpha) { WorkItem item; item.mode = mode_; item.tag = tag; item.alpha = alpha; //item.tick = batb.env.tick(); // TODO: use world tick!! push_current( &item ); }
void Work::finish() { push_current( nullptr ); }
ThreadGLContext(const Current& cur = Current()) { push_current( &cur ); }