From: Thomas Geymayer Date: Thu, 9 May 2013 10:40:59 +0000 (+0200) Subject: Add (optional) uv coordinates to SGPickCallback X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82f6fca06ff33c16781ee4c51693329be87a139f;p=simgear.git Add (optional) uv coordinates to SGPickCallback --- 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; };