Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
vec3hash.h
1
#pragma once
2
3
#include <functional>
4
#include <glm/glm.hpp>
5
6
namespace
std {
7
template
<>
struct
hash<glm::ivec3>
8
{
9
std::size_t operator()(
const
glm::ivec3 &v)
const
{
10
return
(v.x ^ (v.y << 8) ^ (v.z << 16)) * 31;
11
}
12
};
13
}
src
utils
vec3hash.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6