MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / TriScoreSorter

Class TriScoreSorter

Source/Graphics/model.cpp:2401–2406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2399};
2400
2401class TriScoreSorter {
2402 public:
2403 bool operator()(const TriData &a, const TriData &b) {
2404 return a.score > b.score;
2405 }
2406};
2407
2408void Model::SortTrianglesBackToFront(const vec3 &camera) {
2409 std::vector<TriData> tris(faces.size() / 3);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected