From c274ac05690b34ba05b41d6e7864e6a663c73c1a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 10 Mar 2021 00:53:08 +0000 Subject: Push RailLinks functionality into new base classes Network and NetworkOf<> --- game/network/network.impl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 game/network/network.impl.h (limited to 'game/network/network.impl.h') 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 +#include + +template +void +NetworkOf::render(const Shader & shader) const +{ + shader.setModel(Location {}, Shader::Program::StaticPos); + texture->Bind(); + links.apply(&T::render, shader); +} -- cgit v1.2.3