axmol/tests/cpp-tests
Ricardo Quesada 323ea7c0d4 Sprite scale9 (#16702)
* Adds slice9 support for Sprite.

how to use it:

// points coords
sprite->setCenterRect(Rect(x,y,w,h));

// normalized coords
sprite->setCenterRectNormalized(Rect(x,y,w,h));
starts scale9sprite in sprite

more slice 9 changes

sprite 9 slice works?

kind of works

correct anchor point

slice 9 works, at least with non-rotated atlases

streched works ok

better Y invert code.

cleaner, compatible with the previous code

yay, scaling workings...

need a better api now

sets scale correctly

yay! works as expected!

more fixes and tests

better test for box

setContentSize() changes size in non-9-slice mode sprites as well

setCenterRect() -> setCenterRectNormalized()

yet another test

adds setPositionNormalized()

adds setCenterRect() tests

remove devel team from xcode

tests: add one more tests

fun test!

improved test

yet another test for slice 9

* fixes anchorPoint issues

* adds documentation

* fix: using top-left coordinate for setRect

* sprite: fixes related to scale9 and tiled

* Sprite: slice 9 fixes

works Ok with rotated frames
uses `setCapInsets` instead of `setCenterRect` to be more familiar
with `UIScale9Sprite`

* fixes js and lua bindings for Autopolygon
2016-10-26 18:45:40 -07:00
..
Classes Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
Resources Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
proj.android merge v3.13.1 back to v3 2016-09-15 10:08:28 +08:00
proj.android-studio merge v3.13.1 back to v3 2016-09-15 10:08:28 +08:00
proj.ios Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
proj.linux
proj.mac Squashed commit of the following: 2015-08-13 00:14:10 -07:00
proj.tizen Add tizen support (#15518) 2016-04-28 09:49:55 +08:00
proj.win8.1-universal fix: collection of vr fixes (#15948) 2016-06-24 16:55:28 +08:00
proj.win10 fix: collection of vr fixes (#15948) 2016-06-24 16:55:28 +08:00
proj.win32 feat: upgrades to GLFW v3.2 2016-06-29 16:11:30 -07:00
.cocos-project.json
CMakeLists.txt fix: collection of vr fixes (#15948) 2016-06-24 16:55:28 +08:00