axmol/cocos
j-jorge 6bbf01537d Allow to unbind asynchronous texture loading callback with a custom key. (#17206)
* Allow to unbind asynchronous texture loading callback with a custom key.

In order to unbind the callback passed to
`cocos2d::TextureCache::addImageAsync(path, callback)`, one has to
call `cocos2d::TextureCache::unbindImageAsync(path)`. In the cases
where the loading of the same texture is requested from several sources
simultaneously, then none of the source can unbind its own callback
unambiguously.

This commit adds an overload of the `addImageAsync` function taking an extra
argument identifying the callback, thus allowing to unbind it unambiguously
in cases where the loading of path is requested by several sources
simultaneously.

* Add a test case for TextureCache::addImageAsync with a custom key.
2017-02-04 09:38:54 +08:00
..
2d Fix typo in Sprite (strech -> stretch) (#17241) 2017-01-23 09:25:56 +08:00
3d Fix warnings about implicit conversion loses integer precision (#17220) 2017-01-19 09:41:57 +08:00
audio Merge branch 'v3.14' into merge-v314 2017-01-04 09:49:22 +08:00
base Fixed Scheduler bug occured when unschedule target during update. (#17203) 2017-01-18 16:32:36 +08:00
deprecated Remove unnecessary inline keywords (#16562) 2016-09-12 09:44:21 +08:00
editor-support Fix minor typos in function parameters (#17157) 2017-01-11 05:34:57 -08:00
math vec4 operator < seems error (#17072) 2016-12-29 15:26:25 +08:00
navmesh No CC_UNUSED_PARAM (#16812) 2016-11-16 09:48:37 +08:00
network Refactor WebSocket to support SSL (wss) (#17172) 2017-01-19 13:55:14 +08:00
physics Fix typos in docs (#17132) 2017-01-11 09:31:45 +08:00
physics3d No CC_UNUSED_PARAM (#16812) 2016-11-16 09:48:37 +08:00
platform Fix implicit conversion warning (#17242) 2017-01-23 09:24:36 +08:00
renderer Allow to unbind asynchronous texture loading callback with a custom key. (#17206) 2017-02-04 09:38:54 +08:00
scripting [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically 2017-01-23 01:32:57 +00:00
storage Update copyright to 2016. (#16311) 2016-08-05 09:42:15 +08:00
ui Fix typo in Sprite (strech -> stretch) (#17241) 2017-01-23 09:25:56 +08:00
vr Fix typos in docs (#17132) 2017-01-11 09:31:45 +08:00
Android.mk Refactor WebSocket to support SSL (wss) (#17172) 2017-01-19 13:55:14 +08:00
CMakeLists.txt Refactor WebSocket to support SSL (wss) (#17172) 2017-01-19 13:55:14 +08:00
cc_dummy.c Squashed commit of the following: 2016-03-02 16:51:54 -08:00
cocos2d.cpp Merge v3.14.1 (#17231) 2017-01-20 09:59:30 +08:00
cocos2d.h Merge v3.14.1 (#17231) 2017-01-20 09:59:30 +08:00