From f848ad0e672d913c36fcb86533cbc11a9cf9d9ea Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 3 Nov 2022 18:25:28 +0000 Subject: Rename Shader to SceneShader --- game/network/network.h | 4 ++-- game/network/network.impl.h | 6 +++--- game/network/rail.cpp | 2 +- game/network/rail.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'game/network') diff --git a/game/network/network.h b/game/network/network.h index 4a2f56a..e7a65b5 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -12,7 +12,7 @@ #include class Texture; -class Shader; +class SceneShader; class Ray; template using GenDef = std::tuple...>; @@ -96,7 +96,7 @@ public: float findNodeDirection(Node::AnyCPtr) const override; - void render(const Shader &) const override; + void render(const SceneShader &) const override; protected: Link::CCollection addJoins(); diff --git a/game/network/network.impl.h b/game/network/network.impl.h index 597e3aa..5f60c80 100644 --- a/game/network/network.impl.h +++ b/game/network/network.impl.h @@ -1,13 +1,13 @@ #include "network.h" -#include +#include #include template void -NetworkOf::render(const Shader & shader) const +NetworkOf::render(const SceneShader & shader) const { if constexpr (std::is_base_of_v) { - shader.setModel(Location {}, Shader::Program::StaticPos); + shader.setModel(Location {}, SceneShader::Program::StaticPos); texture->bind(); links.apply(&Renderable::render, shader); } diff --git a/game/network/rail.cpp b/game/network/rail.cpp index 2efa87a..2f09d88 100644 --- a/game/network/rail.cpp +++ b/game/network/rail.cpp @@ -94,7 +94,7 @@ RailLink::defaultMesh(const std::span vertices) } void -RailLink::render(const Shader &) const +RailLink::render(const SceneShader &) const { mesh->Draw(); } diff --git a/game/network/rail.h b/game/network/rail.h index 6850463..8edc363 100644 --- a/game/network/rail.h +++ b/game/network/rail.h @@ -11,7 +11,7 @@ #include #include -class Shader; +class SceneShader; class Vertex; struct Arc; @@ -26,7 +26,7 @@ public: using StraightLink = RailLinkStraight; using CurveLink = RailLinkCurve; - void render(const Shader &) const override; + void render(const SceneShader &) const override; NO_COPY(RailLink); NO_MOVE(RailLink); -- cgit v1.2.3