summaryrefslogtreecommitdiffstats
path: root/src/quick3d/quick3dextras/items/quick3dspritesheet_p.h
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-06-27 10:36:59 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-07-08 09:08:37 +0000
commit55844801dc09da2d05e6f581ce7ad3d4d334b5c1 (patch)
treee6c9a3469a0897b89e6b92d944e7f851bfcc5c2e /src/quick3d/quick3dextras/items/quick3dspritesheet_p.h
parentb21eef8788de6e93da79441a459bcbcba0f3085e (diff)
Introduce QSpriteGrid
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>
Diffstat (limited to 'src/quick3d/quick3dextras/items/quick3dspritesheet_p.h')
0 files changed, 0 insertions, 0 deletions