ray hit with drawable
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
namespace OpenVulkano::Scene
|
||||
{
|
||||
class Drawable;
|
||||
|
||||
struct RayHit
|
||||
{
|
||||
@@ -22,6 +23,13 @@ namespace OpenVulkano::Scene
|
||||
bool operator!=(const RayHit& other) const = default;
|
||||
};
|
||||
|
||||
struct DrawableRayHit : RayHit
|
||||
{
|
||||
DrawableRayHit() = default;
|
||||
DrawableRayHit(const RayHit& hit) : RayHit(hit) {};
|
||||
Drawable* drawable = nullptr;
|
||||
};
|
||||
|
||||
class Ray
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user