ray hit with drawable

This commit is contained in:
ohyzha
2024-11-04 18:23:10 +02:00
parent 7febb370a8
commit 4c9f0ab2ee

View File

@@ -12,6 +12,7 @@
namespace OpenVulkano::Scene namespace OpenVulkano::Scene
{ {
class Drawable;
struct RayHit struct RayHit
{ {
@@ -22,6 +23,13 @@ namespace OpenVulkano::Scene
bool operator!=(const RayHit& other) const = default; bool operator!=(const RayHit& other) const = default;
}; };
struct DrawableRayHit : RayHit
{
DrawableRayHit() = default;
DrawableRayHit(const RayHit& hit) : RayHit(hit) {};
Drawable* drawable = nullptr;
};
class Ray class Ray
{ {
public: public: