Applied default Visual Studio formatting to most files. This is a quick fix for the tabs vs spaces issue that messes up the formatting in any editor (esp. Linux) which handles tabs/spaces differently to Visual Studio. Some parts of the formatting look a bit worse but overall it should be better (or at least more consistent).
I didn't apply the changes to a few macro-heavy files as Visual Studio removes all indentation from macros, whereas the indentation can be handy to see nesting.
This commit is contained in:
@ -141,19 +141,19 @@ namespace PolyVox
|
||||
|
||||
/*inline uint32_t convertCoordinates(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos)
|
||||
{
|
||||
uint64_t answer = 0;
|
||||
answer = morton256_z[(uZPos >> 16) & 0xFF] | // we start by shifting the third byte, since we only look at the first 21 bits
|
||||
morton256_y[(uYPos >> 16) & 0xFF] |
|
||||
morton256_x[(uXPos >> 16) & 0xFF];
|
||||
answer = answer << 48 |
|
||||
morton256_z[(uZPos >> 8) & 0xFF] | // shifting second byte
|
||||
morton256_y[(uYPos >> 8) & 0xFF] |
|
||||
morton256_x[(uXPos >> 8) & 0xFF];
|
||||
answer = answer << 24 |
|
||||
morton256_z[(uZPos)& 0xFF] | // first byte
|
||||
morton256_y[(uYPos)& 0xFF] |
|
||||
morton256_x[(uXPos)& 0xFF];
|
||||
return answer;
|
||||
uint64_t answer = 0;
|
||||
answer = morton256_z[(uZPos >> 16) & 0xFF] | // we start by shifting the third byte, since we only look at the first 21 bits
|
||||
morton256_y[(uYPos >> 16) & 0xFF] |
|
||||
morton256_x[(uXPos >> 16) & 0xFF];
|
||||
answer = answer << 48 |
|
||||
morton256_z[(uZPos >> 8) & 0xFF] | // shifting second byte
|
||||
morton256_y[(uYPos >> 8) & 0xFF] |
|
||||
morton256_x[(uXPos >> 8) & 0xFF];
|
||||
answer = answer << 24 |
|
||||
morton256_z[(uZPos)& 0xFF] | // first byte
|
||||
morton256_y[(uYPos)& 0xFF] |
|
||||
morton256_x[(uXPos)& 0xFF];
|
||||
return answer;
|
||||
}*/
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user