From 82f6fca06ff33c16781ee4c51693329be87a139f Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 9 May 2013 12:40:59 +0200 Subject: [PATCH] Add (optional) uv coordinates to SGPickCallback --- simgear/scene/util/SGPickCallback.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/simgear/scene/util/SGPickCallback.hxx b/simgear/scene/util/SGPickCallback.hxx index 33ab28ad..838d5b2e 100644 --- a/simgear/scene/util/SGPickCallback.hxx +++ b/simgear/scene/util/SGPickCallback.hxx @@ -44,6 +44,7 @@ public: struct Info { SGVec3d wgs84; SGVec3d local; + SGVec2d uv; }; SGPickCallback(Priority priority = PriorityOther) : @@ -76,6 +77,13 @@ public: virtual std::string getCursor() const { return std::string(); } + /** + * Whether the uv coordinates of the picking action should be calculated upon + * an intersection. + */ + virtual bool needsUV() const + { return false; } + private: Priority _priority; }; -- 2.39.5