summaryrefslogtreecommitdiffstats
path: root/src/graphics/engine
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-03 19:21:37 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-03 19:21:37 +0200
commit09fd0e205e25d5f0c9cf5b3ebad3509893118cae (patch)
treef9154dde6867ce4a901b422bd8682405541160a2 /src/graphics/engine
parent01fd19d2cd471e69cca8baff6d662e219e42c864 (diff)
downloadcolobot-09fd0e205e25d5f0c9cf5b3ebad3509893118cae.tar.gz
colobot-09fd0e205e25d5f0c9cf5b3ebad3509893118cae.tar.bz2
colobot-09fd0e205e25d5f0c9cf5b3ebad3509893118cae.zip
Fix
Diffstat (limited to 'src/graphics/engine')
-rw-r--r--src/graphics/engine/engine.h7
1 files 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);