- //
- // mock_renderer.h
- // engine
- //
- // Created by Sam Jaffe on 6/2/19.
- // Copyright © 2019 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include "game/graphics/renderer.hpp"
- #include "game/util/identity.hpp"
- template <typename T> inline identity<T> cast(unsigned int id) {
- return *reinterpret_cast<identity<T> *>(&id);
- }
|