#include <SkPerspIter.h>
Public Member Functions | |
SkPerspIter (const SkMatrix &m, SkScalar x, SkScalar y, int count) | |
const SkFixed * | getXY () const |
int | next () |
Definition at line 22 of file SkPerspIter.h.
Iterate a line through the matrix [x,y] ... [x+count-1, y].
m | The matrix we will be iterating a line through | |
x | The initial X coordinate to be mapped through the matrix | |
y | The initial Y coordinate to be mapped through the matrix | |
count | The number of points (x,y) (x+1,y) (x+2,y) ... we will eventually map |
const SkFixed* SkPerspIter::getXY | ( | ) | const [inline] |
Return the buffer of [x,y] fixed point values we will be filling. This always returns the same value, so it can be saved across calls to next().
Definition at line 36 of file SkPerspIter.h.
int SkPerspIter::next | ( | ) |
Return the number of [x,y] pairs that have been filled in the getXY() buffer. When this returns 0, the iterator is finished.