From 6a1df3dfbae98a05e74c646cc216fbc19ffdb6d6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Jan 2024 13:04:31 +0000 Subject: Template Ray on position type --- ui/gameMainSelector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui/gameMainSelector.h') diff --git a/ui/gameMainSelector.h b/ui/gameMainSelector.h index 88db34b..cc30707 100644 --- a/ui/gameMainSelector.h +++ b/ui/gameMainSelector.h @@ -10,7 +10,7 @@ #include class SceneShader; -class Ray; +template class Ray; class UIShader; class Camera; @@ -20,8 +20,8 @@ public: public: virtual ~Component() = default; - virtual bool click(const SDL_MouseButtonEvent &, const Ray &); - virtual bool move(const SDL_MouseMotionEvent &, const Ray &); + virtual bool click(const SDL_MouseButtonEvent &, const Ray &); + virtual bool move(const SDL_MouseMotionEvent &, const Ray &); virtual bool handleInput(const SDL_Event &, const Position & pos); virtual void render(const UIShader & shader, const Position & pos) const; virtual void render(const SceneShader &) const; @@ -34,7 +34,7 @@ public: bool handleInput(const SDL_Event & e, const Position &) override; - void defaultClick(const Ray & ray); + void defaultClick(const Ray & ray); std::unique_ptr target; -- cgit v1.2.3