Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::sort(psdv->begin(), psdv->end(), [](const ParentSpriteToDraw *ps, const ParentSpriteToDraw *ps2) {
- return ps->xmin + ps->xmax + ps->ymin + ps->ymax + ps->zmin + ps->zmax <
- ps2->xmin + ps2->xmax + ps2->ymin + ps2->ymax + ps2->zmin + ps2->zmax;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement