Graphics::PointList Class Reference

Small list of points for drawing. More...

#include <Renderer.h>

Inheritance diagram for Graphics::PointList:
Collaboration diagram for Graphics::PointList:

Public Member Functions

 PointList (const Rect &bounds, const Brush &brush, uint8_t capacity)
 
void add (int16_t x, int16_t y)
 
bool render (Surface &surface)
 Render each point. More...
 
 ItemList (uint8_t capacity)
 
- Public Member Functions inherited from Graphics::ItemList< Point >
 ItemList (uint8_t capacity)
 
void add (Point value)
 
Pointget ()
 
Pointnext ()
 
void reset ()
 
 operator bool () const
 

Detailed Description

Small list of points for drawing.

Algorithms generate multiple points within a loop so buffering them in a list simplifies logic considerably.

Constructor & Destructor Documentation

◆ PointList()

Graphics::PointList::PointList ( const Rect bounds,
const Brush brush,
uint8_t  capacity 
)
inline

Member Function Documentation

◆ add()

void Graphics::PointList::add ( int16_t  x,
int16_t  y 
)
inline

◆ ItemList()

◆ render()

bool Graphics::PointList::render ( Surface surface)

Render each point.

Parameters
surface
Return values
booltrue if all points have been rendered, false if surface is full

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