summaryrefslogtreecommitdiffstats
path: root/src/extras/defaults/qspritegrid_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Minor fixes for QSprite* classesMichael Brasser2019-08-301-1/+1
| | | | | | | | * Fix off-by-one errors * Allow non-integer cell sizes Change-Id: I081cb5050a6805cbc9183fb2a7a1ee07b5594187 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Introduce QSpriteGridMike Krus2017-07-081-0/+82
Takes a texture and a number of rows and columns. Uses a current index to compute a texture transform to map texture coordinates to a cell in the grid. Abstract base class to use in SpriteSheet which supports non regular grid sprite sheets (like a general atlas). Change-Id: Ia48bea22e2f687d8ae3ef1db4e41ae3c539e54d2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>