Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
SDashedLine Struct Reference

#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< CVector2Dm_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...
 

Member Function Documentation

◆ GetEndIndex()

size_t SDashedLine::GetEndIndex ( size_t  i)
inline

Returns the (exclusive) end point index (i.e. index within m_Points) of dash n.

Member Data Documentation

◆ m_Points

std::vector<CVector2D> SDashedLine::m_Points

Packed array of consecutive dashes' points. Use m_StartIndices to navigate it.

◆ m_StartIndices

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.


The documentation for this struct was generated from the following file: