Interface for components to provide generic geometric data, potentially for occlusion culling and other systems. More...
#include <VisibleGeometryBus.h>
Inherits AZ::ComponentBus.
Public Member Functions | |
virtual void | GetVisibleGeometry (const AZ::Aabb &bounds, VisibleGeometryContainer &geometryContainer) const =0 |
Static Public Member Functions | |
static void | Reflect (AZ::ReflectContext *context) |
Interface for components to provide generic geometric data, potentially for occlusion culling and other systems.
|
pure virtual |
This function should be implemented by components to add VisibleGeometry items to the VisibleGeometryContainer.
bounds | is a bounding volume in world space used for sampling geometric data. If bounds is invalid it should be ignored. |
geometryContainer | is a container of all of the geometry added by the connected entity. It is passed by reference to give multiple components on an entity an opportunity to add their geometry. It is the caller's responsibility to manage and clear the container between calls. The container should not be cleared within the function, which might destroy a prior components contribution. |