#pragma once #include #include #include "igeometrystore.h" #include "math/AABB.h" #include "math/Matrix4.h" namespace render { class IRenderableObject { public: using Ptr = std::shared_ptr; virtual ~IRenderableObject() {} // Returns true if this object is not empty and should be rendered virtual bool isVisible() = 0; // Returns true if this object has a non-identity transformation matrix virtual bool isOriented() = 0; // The model view matrix used to render this object virtual const Matrix4& getObjectTransform() = 0; // The object bounds in local coordinates virtual const AABB& getObjectBounds() = 0; // Emitted when the object bounds have changed, // because it has been either moved or resized. virtual sigc::signal& signal_boundsChanged() = 0; // Returns the key to access the vertex data in the renderer's geometry store virtual IGeometryStore::Slot getStorageLocation() = 0; // Returns true if this surface produces shadows when lit virtual bool isShadowCasting() = 0; }; }