예제 #1
0
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 );
}
예제 #2
0
void Work::finish()
{
    push_current( nullptr );
}
예제 #3
0
 ThreadGLContext(const Current& cur = Current())
 {
     push_current( &cur ); 
 }