Moved common code into function.

This commit is contained in:
David Williams
2015-03-21 16:22:23 +01:00
parent 778238d11d
commit b027cf1a0c
3 changed files with 15 additions and 37 deletions

View File

@ -280,7 +280,8 @@ namespace PolyVox
/// Assignment operator
PagedVolume& operator=(const PagedVolume& rhs);
private:
private:
bool canReuseLastAccessedChunk(int32_t iChunkX, int32_t iChunkY, int32_t iChunkZ) const;
Chunk* getChunk(int32_t uChunkX, int32_t uChunkY, int32_t uChunkZ) const;
// Storing these properties individually has proved to be faster than keeping