Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include <Render.h>
Public Member Functions | |
size_t | GetEndIndex (size_t i) |
Returns the (exclusive) end point index (i.e. index within m_Points) of dash n. More... | |
Public Attributes | |
std::vector< CVector2D > | m_Points |
Packed array of consecutive dashes' points. Use m_StartIndices to navigate it. More... | |
std::vector< size_t > | m_StartIndices |
Start indices in m_Points of each dash. More... | |
|
inline |
Returns the (exclusive) end point index (i.e. index within m_Points) of dash n.
std::vector<CVector2D> SDashedLine::m_Points |
Packed array of consecutive dashes' points. Use m_StartIndices to navigate it.
std::vector<size_t> SDashedLine::m_StartIndices |
Start indices in m_Points of each dash.
Dash n starts at point m_StartIndices[n] and ends at the point with index m_StartIndices[n+1] - 1, or at the end of the m_Points vector. Use the GetEndIndex(n) convenience method to abstract away the difference and get the (exclusive) end index of dash n.