71 float margin = 50.0f);
82 const std::vector<std::pair<int, ViewRect>>&
nodeRects,
84 float margin = 50.0f);
ComponentTypeID GetComponentTypeID_Static()
Static helpers for AABB-based viewport culling.
static std::vector< int > FilterVisibleNodes(const std::vector< std::pair< int, ViewRect > > &nodeRects, const ViewRect &viewport, float margin=50.0f)
Filters a list of (id, rect) pairs and returns only the visible IDs.
static bool IsNodeVisible(float nodeX, float nodeY, float nodeW, float nodeH, const ViewRect &viewport, float margin=50.0f)
Tests whether a single node rectangle overlaps the viewport.
< Provides AssetID and INVALID_ASSET_ID
An axis-aligned rectangle used to describe the viewport or a node bounds.