diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2020-12-22 08:59:37 -0500 |
|---|---|---|
| committer | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2020-12-22 08:59:37 -0500 |
| commit | 4e4194cf41ffc7a3b9106f1ddb32818045fcfd3a (patch) | |
| tree | 016358eb7019f9df99f1dc6d515f48d162b04d0e /ZAP2/ZTexture.cpp | |
| parent | 5c55bebde211a779efa654e8b097413bfd1fb3bd (diff) | |
Removed unfinished code
Diffstat (limited to 'ZAP2/ZTexture.cpp')
| -rw-r--r-- | ZAP2/ZTexture.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ZAP2/ZTexture.cpp b/ZAP2/ZTexture.cpp index 02d4e01..6375a82 100644 --- a/ZAP2/ZTexture.cpp +++ b/ZAP2/ZTexture.cpp @@ -724,33 +724,8 @@ ZResourceType ZTexture::GetResourceType() return ZResourceType::Texture; } -uint64_t murmur64(uint64_t h) -{ - h ^= h >> 33; - h *= 0xff51afd7ed558ccdL; - h ^= h >> 33; - h *= 0xc4ceb9fe1a85ec53L; - h ^= h >> 33; - return h; -} - void ZTexture::CalcHash() { - hash = 0; - - for (int y = 0; y < height; y++) - { - for (int x = 0; x < width; x++) - { - uint8_t r = bmpRgb[(((y * width) + x) * 3) + 0]; - uint8_t g = bmpRgb[(((y * width) + x) * 3) + 1]; - uint8_t b = bmpRgb[(((y * width) + x) * 3) + 2]; - - hash = murmur64(hash + r); - hash = murmur64(hash + g); - hash = murmur64(hash + b); - } - } } std::string ZTexture::GetExternalExtension() |
