Graphics/AbstractViewer: Add Project & Unproject methods

This commit is contained in:
SirLynix
2023-03-14 18:07:03 +01:00
parent a414afec24
commit 88b6ff63b7
2 changed files with 42 additions and 1 deletions

View File

@@ -29,6 +29,10 @@ namespace Nz
virtual ViewerInstance& GetViewerInstance() = 0;
virtual const ViewerInstance& GetViewerInstance() const = 0;
virtual const Recti& GetViewport() const = 0;
Vector3f Project(const Vector3f& worldPos);
Vector3f Unproject(const Vector3f& screenPos);
};
}