12 Commits

Author SHA1 Message Date
Viktor Lidholt
f3e51d9f05 Adds test case for drawAtlas in games 2015-07-23 14:39:39 -07:00
Viktor Lidholt
765881f264 Merge pull request #223 from vlidholt/master
Adds custom play button with texture to demo game
2015-07-23 13:30:25 -07:00
Viktor Lidholt
9a834384f1 Adds custom play button with texture to demo game 2015-07-23 13:27:17 -07:00
Eric Seidel
8998132d94 Add C++ based support for drawAtlas
This is supposed to make Viktor's game faster, but it's not clear
to me that it actually does.  I've left the code
using the dart version of drawAtlas for now until Viktor can
verify that it looks correct.

I also added a wrapper for SkFilterQuality in the process of
debugging SkCanvas.drawAtlas since all drawAtlas examples
in Skia use FilterQuality.low.  The bug which blocked me for
so long turned out to be that SkCanvas.drawAtlas doesn't
draw anything if antialiasing is turned on.

Issue #138.

R=abarth@google.com
2015-07-23 09:25:10 -07:00
Viktor Lidholt
34e1268f1f Adds scoring and level up in game demo 2015-07-22 10:37:28 -07:00
Viktor Lidholt
6a6567d776 Fixes formatting and removes redundant code in sprites 2015-07-22 08:59:14 -07:00
Viktor Lidholt
271812259b Fixes issues in demo game and adds heads up display 2015-07-21 16:45:53 -07:00
Viktor Lidholt
b26bae8a45 Fixes issues with invalidating matrix for SpriteBox 2015-07-21 16:42:51 -07:00
Viktor Lidholt
6c510fb558 Minor formatting fixes 2015-07-21 13:30:30 -07:00
Viktor Lidholt
1b4923a2a6 Adds main screen to game and graphics for game UI 2015-07-21 11:30:17 -07:00
Viktor Lidholt
88afaefbaf Updates sprite widget to handle changes to renderbox 2015-07-21 11:26:57 -07:00
Collin Jackson
633b65010c After running filter-branch, move root directory into sky/ 2015-07-16 11:54:25 -07:00