Graphics/AbstractViewer: Add Project/Unproject methods
This commit is contained in:
@@ -40,6 +40,9 @@ namespace Nz
|
||||
virtual float GetZFar() const = 0;
|
||||
virtual float GetZNear() const = 0;
|
||||
|
||||
Nz::Vector3f Project(const Nz::Vector3f& worldPosition) const;
|
||||
Nz::Vector3f Unproject(const Nz::Vector3f& screenPos) const;
|
||||
|
||||
AbstractViewer& operator=(const AbstractViewer&) = default;
|
||||
AbstractViewer& operator=(AbstractViewer&&) noexcept = default;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user