|
|
@@ -9,11 +9,24 @@
|
|
|
#pragma once
|
|
|
|
|
|
#include <string>
|
|
|
-#include <unordered_map>
|
|
|
+#include <utility>
|
|
|
|
|
|
#include "game/math/math_fwd.hpp"
|
|
|
|
|
|
-namespace graphics { namespace textures {
|
|
|
- enum class format { RGB, RGBA };
|
|
|
- unsigned int init(format, math::vec2i, unsigned char *);
|
|
|
-}}
|
|
|
+namespace std {
|
|
|
+ template <typename T, typename S> struct hash<std::pair<T, S>> {
|
|
|
+ std::size_t operator()(std::pair<T, S> const & pair) const {
|
|
|
+ return std::hash<T>()(pair.first) ^ std::hash<S>()(pair.second);
|
|
|
+ }
|
|
|
+ };
|
|
|
+}
|
|
|
+
|
|
|
+namespace graphics {
|
|
|
+ namespace textures {
|
|
|
+ enum class format { RGB, RGBA };
|
|
|
+ unsigned int init(format, math::vec2i, unsigned char *);
|
|
|
+ }
|
|
|
+ namespace shaders {
|
|
|
+ unsigned int init(unsigned int, std::string const &);
|
|
|
+ }
|
|
|
+}
|