- move SuperFastHash to its own set of files, instead of having this tied to the console.

- replace swapvalues with std::swap globally.
- added some additions to utility code from Raze, mainly to reduce file content differences.
- reduced some unused utilities
This commit is contained in:
Christoph Oelckers 2020-04-11 12:31:02 +02:00
commit b0ecb02d6b
40 changed files with 327 additions and 268 deletions

View file

@ -65,7 +65,7 @@ namespace swrenderer
float t = -tleft.X;
tleft.X = -tright.X;
tright.X = t;
swapvalues(tleft.Y, tright.Y);
std::swap(tleft.Y, tright.Y);
}
float fsx1, fsz1, fsx2, fsz2;

View file

@ -399,7 +399,7 @@ namespace swrenderer
double t = -rx1;
rx1 = -rx2;
rx2 = t;
swapvalues(ry1, ry2);
std::swap(ry1, ry2);
}
auto viewport = Thread->Viewport.get();