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) |
| Point * | get () |
| Point * | next () |
| 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()
|
inline |
Member Function Documentation
◆ add()
|
inline |
◆ ItemList()
|
inline |
◆ render()
| bool Graphics::PointList::render | ( | Surface & | surface | ) |
Render each point.
- Parameters
-
surface
- Return values
-
bool true if all points have been rendered, false if surface is full
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.9.1