![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
State for the Bresenham's line algorithm. More...
#include <gf/Geometry.h>
Public Member Functions | |
Bresenham (Vector2i p0, Vector2i p1) | |
Constructor. More... | |
bool | step (Vector2i &res) |
Generate a new point on the line. More... | |
State for the Bresenham's line algorithm.
Constructor.
p0 | The first point of the line |
p1 | The last point of the line |
bool gf::Bresenham::step | ( | Vector2i & | res | ) |
Generate a new point on the line.
res | The resulting point if one was generated |