diff options
Diffstat (limited to 'game/network/network.impl.h')
-rw-r--r-- | game/network/network.impl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/game/network/network.impl.h b/game/network/network.impl.h new file mode 100644 index 0000000..ddb1ae5 --- /dev/null +++ b/game/network/network.impl.h @@ -0,0 +1,12 @@ +#include "network.h" +#include <gfx/gl/shader.h> +#include <gfx/models/texture.h> + +template<typename T> +void +NetworkOf<T>::render(const Shader & shader) const +{ + shader.setModel(Location {}, Shader::Program::StaticPos); + texture->Bind(); + links.apply(&T::render, shader); +} |