You.i Engine
CYIPath::Segment Class Reference

Detailed Description

A class representing one segment of a path.

Segments are added to a CYIPath when using the MoveTo(), LineTo(), CubicTo() or Close() methods.

#include <graphics/YiPath.h>

Public Member Functions

 Segment (YI_PATH_CMD nType, uint32_t nCountHint)
 
virtual ~Segment ()
 
int32_t GetPointCount ()
 
const glm::vec2 & GetPoint (uint32_t nIndex) const
 
YI_PATH_CMD GetType ()
 
bool AddPoint (const glm::vec2 &vPoint)
 

Constructor & Destructor Documentation

CYIPath::Segment::Segment ( YI_PATH_CMD  nType,
uint32_t  nCountHint 
)
virtual CYIPath::Segment::~Segment ( )
virtual

Member Function Documentation

bool CYIPath::Segment::AddPoint ( const glm::vec2 &  vPoint)

Adds a point to the segment.

const glm::vec2& CYIPath::Segment::GetPoint ( uint32_t  nIndex) const

Returns the point stored at the index nIndex.

int32_t CYIPath::Segment::GetPointCount ( )

Returns the number of points contained in this segment.

YI_PATH_CMD CYIPath::Segment::GetType ( )

Returns the type of the segment.

See also
YI_PATH_CMD

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