Ejemplo n.º 1
0
 void scheduleGL(std::tr1::function<void()> glBlock, ZPos z)
 {
     // TODO: Document this case: Clipped-away GL blocks are *not* being run.
     if (clipRectStack.clippedWorldAway())
         return;
     
     int complementOfBlockIndex = ~(int)glBlocks.size();
     glBlocks.push_back(glBlock);
     
     DrawOp op;
     op.verticesOrBlockIndex = complementOfBlockIndex;
     op.renderState.transform = &currentTransform();
     if (const ClipRect* cr = clipRectStack.maybeEffectiveRect())
         op.renderState.clipRect = *cr;
     op.z = z;
     ops.push_back(op);
 }