Changeset 318 for trunk/VUT/Ogre
- Timestamp:
- 10/11/05 19:25:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreOcclusionQueriesQueryManager.cpp
r316 r318 7 7 8 8 namespace Ogre { 9 10 //-----------------------------------------------------------------------11 bool nodeinfo_eq(const GtpVisibility::NodeInfo &a, const GtpVisibility::NodeInfo &b)12 {13 return a.GetSource() == b.GetSource();14 }15 bool nodeinfo_lt(const GtpVisibility::NodeInfo &a, const GtpVisibility::NodeInfo &b)16 {17 return a.GetSource() < b.GetSource();18 }19 bool meshinfo_eq(const GtpVisibility::MeshInfo &a, const GtpVisibility::MeshInfo &b)20 {21 return a.GetSource() == b.GetSource();22 }23 bool meshinfo_lt(const GtpVisibility::MeshInfo &a, const GtpVisibility::MeshInfo &b)24 {25 return a.GetSource() < b.GetSource();26 }27 bool patchinfo_eq(const GtpVisibility::PatchInfo &a, const GtpVisibility::PatchInfo &b)28 {29 return a.GetSource() == b.GetSource();30 }31 bool patchinfo_lt(const GtpVisibility::PatchInfo &a, const GtpVisibility::PatchInfo &b)32 {33 return a.GetSource() < b.GetSource();34 }35 9 36 10 //----------------------------------------------------------------------- … … 408 382 GtpVisibility::NodeInfoContainer *visibleNodes) 409 383 { 410 s ort(visibleNodes->begin(), visibleNodes->end(), nodeinfo_lt);384 stable_sort(visibleNodes->begin(), visibleNodes->end()/*, nodeinfo_lt*/); 411 385 412 386 GtpVisibility::NodeInfoContainer::iterator visibleNodesIt, … … 429 403 430 404 // physically delete duplicates 431 visibleNodes->erase(std::unique(visibleNodes->begin(), visibleNodes->end() , nodeinfo_eq),405 visibleNodes->erase(std::unique(visibleNodes->begin(), visibleNodes->end()), 432 406 visibleNodes->end()); 433 407 } … … 436 410 GtpVisibility::MeshInfoContainer *visibleGeometry) 437 411 { 438 s ort(visibleGeometry->begin(), visibleGeometry->end(), meshinfo_lt);412 stable_sort(visibleGeometry->begin(), visibleGeometry->end()); 439 413 440 414 GtpVisibility::MeshInfoContainer::iterator visibleGeomIt, … … 457 431 458 432 // physically delete duplicates 459 visibleGeometry->erase(std::unique(visibleGeometry->begin(), visibleGeometry->end() , meshinfo_eq),433 visibleGeometry->erase(std::unique(visibleGeometry->begin(), visibleGeometry->end()), 460 434 visibleGeometry->end()); 461 435 } … … 464 438 GtpVisibility::PatchInfoContainer *visiblePatches) 465 439 { 466 s ort(visiblePatches->begin(), visiblePatches->end(), patchinfo_lt);440 stable_sort(visiblePatches->begin(), visiblePatches->end()); 467 441 468 442 GtpVisibility::PatchInfoContainer::iterator visiblePatchIt, … … 485 459 486 460 // physically delete duplicates 487 visiblePatches->erase(std::unique(visiblePatches->begin(), visiblePatches->end() , patchinfo_eq),461 visiblePatches->erase(std::unique(visiblePatches->begin(), visiblePatches->end()), 488 462 visiblePatches->end()); 489 463 }
Note: See TracChangeset
for help on using the changeset viewer.