Advertisement
Guest User

Untitled

a guest
Jan 16th, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1.      std::sort(psdv->begin(), psdv->end(), [](const ParentSpriteToDraw *ps, const ParentSpriteToDraw *ps2) {
  2.         return ps->xmin + ps->xmax + ps->ymin + ps->ymax + ps->zmin + ps->zmax <
  3.                         ps2->xmin + ps2->xmax + ps2->ymin + ps2->ymax + ps2->zmin + ps2->zmax;
  4.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement