ray hit with drawable
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user