Graphics/AbstractViewer: Add Project/Unproject methods

This commit is contained in:
Lynix
2018-05-27 21:45:06 +02:00
parent b782fd8431
commit af34567ae7
3 changed files with 41 additions and 1 deletions

View File

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