Added Screen space reflections and Editor UI refactoring
This commit is contained in:
30
Nuake/src/Resource/UUID.h
Normal file
30
Nuake/src/Resource/UUID.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <xhash>
|
||||
|
||||
namespace Nuake {
|
||||
|
||||
class UUID
|
||||
{
|
||||
public:
|
||||
UUID();
|
||||
UUID(uint64_t uuid);
|
||||
UUID(const UUID&) = default;
|
||||
|
||||
operator uint64_t() const { return m_UUID; }
|
||||
private:
|
||||
uint64_t m_UUID;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
namespace std {
|
||||
template<>
|
||||
struct hash<Nuake::UUID>
|
||||
{
|
||||
std::size_t operator()(const Nuake::UUID& uuid) const
|
||||
{
|
||||
return hash<uint64_t>()((uint64_t)uuid);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user