From 09fd0e205e25d5f0c9cf5b3ebad3509893118cae Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Mon, 3 Sep 2012 19:21:37 +0200 Subject: Fix --- src/graphics/engine/engine.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/graphics/engine/engine.h b/src/graphics/engine/engine.h index b3a576a..705c83a 100644 --- a/src/graphics/engine/engine.h +++ b/src/graphics/engine/engine.h @@ -807,6 +807,9 @@ public: float min, float max, Gfx::EngineTextureMapping mode, float pos, float factor, float tl, float ts, float tt); + //! Detects the target object that is selected with the mouse + /** Returns the rank of the object or -1. */ + int DetectObject(Math::Point mouse); //! Creates a shadow for the given object bool CreateShadow(int objRank); @@ -1197,10 +1200,6 @@ protected: //! Compute and return the 2D box on screen of any object bool GetBBox2D(int objRank, Math::Point& min, Math::Point& max); - //! Detects the target object that is selected with the mouse - /** Returns the rank of the object or -1. */ - int DetectObject(Math::Point mouse); - //! Detects whether the mouse is in a triangle. bool DetectTriangle(Math::Point mouse, Gfx::VertexTex2* triangle, int objRank, float& dist); -- cgit v1.2.3-1-g7c22