← API Reference Struct

asge::game::components::RenderInfo

Per-entity draw-order and screen-space controls for RenderSystem.

#include <RenderInfo.hpp>

Optional an entity with no RenderInfo of its own resolves as RenderInfo{} (layer 0, no y-sort, world space). m_InheritSortFromParent lets a Hierarchy subtree share its nearest ancestor's m_Layer, m_YSort and sort owner instead of sorting independently; m_ScreenSpace always propagates to descendants regardless. m_SortOffsetY shifts where the entity sorts relative to its bottom edge, for sprites whose ground contact is not at the bottom of the texture (e.g. transparent padding). See RenderSystem.cpp's ResolveRenderInfo for exactly how ancestors are walked.

Public Attributes

#int m_Layer {0}
#bool m_YSort {false}
#bool m_ScreenSpace {false}
#bool m_InheritSortFromParent {false}
#int m_LocalOrder {0}
#float m_SortOffsetY {0.0f}