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; };