Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Introduce QSpriteSheet | Mike Krus | 2017-07-08 | 1 | -16/+68 |
| | | | | | | | | | | | a generalised non-regular grid sprite sheet. Sprites are defined by a list of QSpriteSheetItem, essentially QRect for now (may introduce rotation later) Uses wrapper class to expose qml property list. Change-Id: I5a8d6804c32d59c27e1dc823c61d56bb169ca498 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> | ||||
* | Introduce QSpriteGrid | Mike Krus | 2017-07-08 | 5 | -0/+213 |
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> |