Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
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...
 

Detailed Description

Definition at line 36 of file Render.h.

Member Function Documentation

size_t SDashedLine::GetEndIndex ( size_t  i)
inline

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

Definition at line 49 of file Render.h.

Member Data Documentation

std::vector<CVector2D> SDashedLine::m_Points

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

Definition at line 39 of file Render.h.

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.

Definition at line 46 of file Render.h.


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