Lines Matching refs:cell
180 void executeOps (sglr::Context& context, const IVec4& cell, const vector<StencilOp>& ops);
205 void StencilCase::executeOps (sglr::Context& context, const IVec4& cell, const vector<StencilOp>& ops)
208 float x0 = 2.0f*((float)cell.x() / (float)context.getWidth())-1.0f;
209 float y0 = 2.0f*((float)cell.y() / (float)context.getHeight())-1.0f;
210 float x1 = x0 + 2.0f*((float)cell.z() / (float)context.getWidth());
211 float y1 = y0 + 2.0f*((float)cell.w() / (float)context.getHeight());
223 context.scissor(cell.x(), cell.y(), cell.z(), cell.w());
231 context.scissor(cell.x(), cell.y(), cell.z(), cell.w());