Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/tests/test_Terrain.h
Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | for (const ResizeTestCase& testCase : testCases) | ||||
<< " found=" << GetVertex(terrain, iTile * PATCH_SIZE, | << " found=" << GetVertex(terrain, iTile * PATCH_SIZE, | ||||
jTile * PATCH_SIZE) | jTile * PATCH_SIZE) | ||||
<< " expected=" << testCase.expectedPatches[jTile][iTile]; | << " expected=" << testCase.expectedPatches[jTile][iTile]; | ||||
TS_FAIL(ss.str()); | TS_FAIL(ss.str()); | ||||
ss.str(std::string()); | ss.str(std::string()); | ||||
ss << "Terrain (" << terrain.GetPatchesPerSide() | ss << "Terrain (" << terrain.GetPatchesPerSide() | ||||
<< "x" << terrain.GetPatchesPerSide() << "):"; | << "x" << terrain.GetPatchesPerSide() << "):"; | ||||
TS_WARN(ss.str()); | TS_WARN(ss.str()); | ||||
for (ssize_t jTile = 0; jTile < expectedSize; ++jTile) | for (ssize_t jj = 0; jj < expectedSize; ++jj) | ||||
{ | { | ||||
ss.str(std::string()); | ss.str(std::string()); | ||||
ss << "["; | ss << "["; | ||||
for (ssize_t iTile = 0; iTile < expectedSize; ++iTile) | for (ssize_t ii = 0; ii < expectedSize; ++ii) | ||||
wraitii: would prefer ii and jj, you completely lose the "i,j" coordinate system there | |||||
{ | { | ||||
if (iTile) | if (ii) | ||||
ss << ", "; | ss << ", "; | ||||
ss << GetVertex(terrain, iTile * PATCH_SIZE, | ss << GetVertex(terrain, ii * PATCH_SIZE, | ||||
jTile * PATCH_SIZE); | jj * PATCH_SIZE); | ||||
} | } | ||||
ss << "]"; | ss << "]"; | ||||
TS_WARN(ss.str()); | TS_WARN(ss.str()); | ||||
} | } | ||||
return; | return; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
}; | }; |
Wildfire Games · Phabricator
would prefer ii and jj, you completely lose the "i,j" coordinate system there