axmol/tests/cpp-tests/Classes
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
..
ActionManagerTest fix: add testcase for issue #14050 fix 2016-06-28 17:08:56 -07:00
ActionsEaseTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ActionsProgressTest Fixes jsval_to_std_string could not convert number to string. (#16504) 2016-09-05 10:02:05 +08:00
ActionsTest new actions ResizeBy and ResizeTo (#16275) 2016-08-16 16:55:31 +08:00
AllocatorTest
BillBoardTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
Box2DTest
Box2DTestBed Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
BugsTest Adds more info regarding bug 15776 (#16315) 2016-08-05 14:04:39 +08:00
Camera3DTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
ChipmunkTest Squashed commit of the following: 2016-02-29 13:53:00 -08:00
ClickAndMoveTest
ClippingNodeTest Replace String::createWithFormat() with StringUtils::format() 2015-10-16 15:02:14 +09:00
CocosDenshionTest
ConfigurationTest
ConsoleTest use std::srand() instead 2016-07-11 11:17:28 +08:00
CurlTest Remove AssetsManager dependence with CRUL. 2015-09-17 16:52:31 +08:00
CurrentLanguageTest
DataVisitorTest
DownloaderTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
DrawPrimitivesTest test: add test case for Github issue #11942 2016-07-06 17:21:58 -07:00
EffectsAdvancedTest
EffectsTest Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
ExtensionsTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
FileUtilsTest fix bug that FileUitls::removeDirectory() can not work on all platforms except iOS and Mac 2016-07-07 17:43:19 +08:00
FontTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
InputTest
IntervalTest
JNITest Add tizen support (#15518) 2016-04-28 09:49:55 +08:00
LabelTest Adds test case for showing border of TTF label, it will be easier to find out wrong offset of Label. 2016-10-14 17:14:15 +08:00
LayerTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
LightTest
MaterialSystemTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
MenuTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
MotionStreakTest test: add test case for Github issue #12226 2016-07-06 16:37:15 -07:00
MutiTouchTest
NavMeshTest
NewAudioEngineTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
NewEventDispatcherTest Features: add events for window resize, focus, and unfocus (#16578) 2016-09-20 20:32:33 -07:00
NewRendererTest fix: TriangleCommands with custom uniforms can be batched (#16329) 2016-08-07 14:51:02 -07:00
NodeTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
OpenURLTest
ParallaxTest
Particle3DTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ParticleTest Added Particle Emitter Pause option, and tests (#15836) 2016-06-15 18:31:10 +08:00
Physics3DTest avoid to trigger touch event multiple times 2015-08-07 15:09:01 +08:00
PhysicsTest Fix spelling for `getPolygonCenter` function 2016-07-19 08:24:22 +09:00
ReleasePoolTest
RenderTextureTest Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
RotateWorldTest ignoreAnchorPointForPosition() -> set ~ from missing files 2016-04-25 20:43:42 +09:00
Scene3DTest Correct the Skybox fov (#16655) 2016-10-17 13:46:26 +08:00
SceneTest
SchedulerTest Remove redundant semicolons (#16558) 2016-09-12 09:45:34 +08:00
ShaderTest Fix some minor typos in local variable names 2016-06-29 11:04:11 +09:00
SpineTest Adds Spine binary-file format support (#16629) 2016-10-11 10:56:14 -07:00
Sprite3DTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
SpriteFrameCacheTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
SpritePolygonTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
SpriteTest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
TerrainTest add terrain test with light map 2015-08-03 14:02:46 +08:00
TextInputTest Fix password style text in UTF-16 (#15620) 2016-05-23 09:48:15 +08:00
Texture2dTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
TextureCacheTest
TexturePackerEncryptionTest
TileMapTest fix: staggered hex maps returns correct tile (#16552) 2016-09-13 21:47:36 -07:00
TouchesTest Roll back disable force GC change on windows platform, this cause lua binding can not respond mouse click 2015-12-22 18:41:44 +08:00
TransitionsTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
UITest Sprite scale9 (#16702) 2016-10-26 18:45:40 -07:00
UnitTest fixes compile error for win32 (#16351) 2016-08-11 15:54:51 +08:00
UserDefaultTest
VRTest Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VibrateTest
ZwoptexTest
AppDelegate.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
AppDelegate.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
BaseTest.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
BaseTest.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VisibleRect.cpp Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
VisibleRect.h
controller.cpp fix: collection of vr fixes (#15948) 2016-06-24 16:55:28 +08:00
controller.h Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
testBasic.cpp
testBasic.h
testResource.h
tests.h fix: collection of vr fixes (#15948) 2016-06-24 16:55:28 +08:00