159 Commits

Author SHA1 Message Date
badlogic
2eb85acff9 [cocos2dx] Segfault when copying old scratch buffer contents to resized buffer. Closes #1295. 2019-03-07 19:00:17 +01:00
badlogic
65409ae048 [cocos2dx] Fixes #1229, tint black calculation was incorrect. 2018-12-17 15:04:16 +01:00
badlogic
bd3d9ee36a Merge branch '3.7-beta' into 3.7-beta-cpp 2018-12-04 16:38:26 +01:00
badlogic
9d54f47114 [cocos2dx] Closes #1216. Cocos2dx may draw a SkeletonAnimation node before its update method is called. The skeleton is thus rendered in the setup pose for the first frame. 2018-12-04 16:33:14 +01:00
badlogic
bb1bdd7046 Merge branch '3.7-beta' into 3.7-beta-cpp 2018-10-26 17:12:08 +02:00
sp-stefano-lanza
7183e3b0bd Feature/new skeleton culling (#1196)
* Fix culling of skeleton and clean up code

* Optionally draw the bounding rectangle of skeletons

* Add Visual Studio compiler support

* Fix indentation

* Fix indentation

* Fix indentation

* Revert some indentation changes
2018-10-16 15:46:49 +02:00
badlogic
7fba618e88 [cpp] Fixed bug in handling of dark colors on load. 2018-08-13 17:21:24 +02:00
badlogic
f033239b54 [cocos2dx] Fixes tint black. 2018-08-13 16:56:05 +02:00
badlogic
a6dcbc61e3 [cocos2dx] Fix for tint black in 3.7 branch. 2018-08-13 16:47:36 +02:00
badlogic
bd778ba417 Merge branch '3.6' into 3.7-beta 2018-08-13 16:36:38 +02:00
badlogic
ce536558e5 [cocos2dx] Tint black did not work, didn't multiple dark color with skeleton/attachment color. Closes #1158. 2018-08-13 16:34:06 +02:00
badlogic
5a78663bfa [cocos2dx] Resolved merge conflict that got accidentially commited. 2018-08-10 11:57:11 +02:00
badlogic
253bda4ee4 Merge branch '3.7-beta' into 3.7-beta-cpp 2018-08-10 11:54:49 +02:00
badlogic
d3e37284fc Merge branch '3.6' into 3.7-beta 2018-08-10 11:14:01 +02:00
badlogic
a578be88e0 [cocos2dx][c] Fixed call to spVertexAttachment_computeWorldVertices, as well as count calcalculation. 2018-08-10 11:11:15 +02:00
badlogic
c405dcd165 [cocos2dx][cpp] More changes to computeWorldVertices. 2018-08-09 15:27:26 +02:00
badlogic
f12728f0d2 Merge branch '3.7-beta' into 3.7-beta-cpp 2018-08-09 15:18:15 +02:00
badlogic
4005ff2ad4 Merge branch '3.6' into 3.7-beta 2018-08-09 15:02:55 +02:00
badlogic
9a428a02b8 [c] Fixes #1148, revert changes to spVertexAttachment_computeWorldVertices. Vertex size must be a multiple of 4, which explains why #1148 failed. 2018-08-09 14:59:09 +02:00
badlogic
cb22d5dab9 Merge branch '3.7-beta' into 3.7-beta-cpp 2018-07-18 15:20:05 +02:00
badlogic
218d3b4737 [cpp][sfml][cocos2dx] skip rendering of skeletons/slots/attachment with alpha equal 0. 2018-07-18 14:27:57 +02:00
badlogic
22c1e32164 Merge branch '3.7-beta' into 3.7-beta-cpp 2018-07-18 14:14:39 +02:00
badlogic
6e83e6aed1 [c][cpp][sfml][cocos2d-x] Skip rendering of skeleton/slot/attachment early if alpha is 0. See #1145 2018-07-18 12:04:11 +02:00
badlogic
f315f36956 [cocos2dx] Fixed batchers, MSVC projects. 2018-06-05 14:36:20 +02:00
badlogic
7e68a48189 [cocos2dx] More fixes to two color batching. 2018-06-05 13:30:00 +02:00
badlogic
162ce9f5aa Fixed meshes. 2018-05-30 18:31:36 +02:00
badlogic
878a6e6435 Refactored C++ runtime, added cocos2d-x cpp runtime. 2018-05-30 17:31:11 +02:00
badlogic
7647c345e3 [cocos2dx] Initializing skeleton setup poses and world transform on construction to avoid flicked in first frame. Closes #1098 2018-04-12 10:42:34 +02:00
badlogic
eecde9e871 [cocos2d-x] Closes #1075, added SkeletonRenderer:setSlotsRange and SkeletonRenderer::createWithSkeleton. Allows rendering parts of a single skeleton, mixed with other nodes. See SkeletonRendererSeparator.cpp for an example. 2018-02-06 15:16:23 +01:00
badlogic
999e836ba0 [cocos2dx] Closes #1062, proper handling of batch boundaries. 2018-01-12 13:44:58 +01:00
Greg Rynkowski
97dd5ab8df Fix typo in the SkeletonAnimation::createWithFile (#1045) 2017-12-07 15:47:32 +01:00
badlogic
f40efe6066 Revert "fix warnings (#1034)"
This reverts commit 5948e5a62f0d9fb5a526c200dc70a81d286b1e38.
2017-12-06 15:35:02 +01:00
minggo
5948e5a62f fix warnings (#1034) 2017-11-21 11:17:39 +01:00
Jare Guo
041b6ddb00 [cocos2dx] allow load custom atlas texture in _spAtlasPage_createTexture for CocosCreator (#1018) 2017-10-13 09:50:03 +02:00
badlogic
8650c668e9 [cocos2dx] Removed hard coded scratch buffer size, replaced with dynamic allocation. Also made it a global scratch buffer, instead of a per instance buffer. Saves 4kb per SkeletonRenderer instance. Closes #1015. 2017-10-10 15:37:27 +02:00
badlogic
f9245031a6 [cocos2d-x] Ported new tint black shader. See #1003. 2017-09-30 09:43:19 +02:00
badlogic
cdc335d41b [cocos2dx] Didn't invoke GL program state setup in initialize and setTwoColorTint. See #989 2017-09-28 17:00:05 +02:00
badlogic
c1538b113b [cocos2d-x] Added ETC1 support, thanks @halx99. Closes #989 2017-09-25 11:44:28 +02:00
badlogic
083e696220 [cocos2d-x] Closes #984. 2017-09-11 15:24:56 +02:00
zzya
5947520c9b fix clipping issue (#966)
* modify for clip

* fix clipping issue
2017-08-15 20:27:26 +02:00
badlogic
f7bb981852 [cocos2d-x] Call Node::update in SkeletonRenderer. Closes #960 2017-08-03 11:22:47 +02:00
zzya
687d774082 modify for clip (#955) 2017-07-28 11:58:10 +02:00
badlogic
6e7c6ebc07 [cocos2d-x] Not submitting geometry when final opacity of attachment is 0 2017-07-17 14:26:06 +02:00
badlogic
7488383b15 [cocos2dx] Added support for vertex effects. See #898 2017-06-26 15:00:59 +02:00
badlogic
1af2089157 [cocos2dx] Fixed tinting and cascaded colors. Closes #902, closes #901 2017-05-17 11:03:34 +02:00
badlogic
676b740269 [c] Added stride to spSkeletonClipping_clipTriangles. [cocos2dx] Added clipping. 2017-04-30 19:13:11 +02:00
badlogic
d52ac2afd4 [c][sfml] Added clipping. [cocos2dx] Added stub for clipping and assets. [c] Fixed handling of indices short -> unsigned short 2017-04-28 14:31:18 +02:00
badlogic
26c1bfe8b4 [cocos2dx] Fixed #877, support for ETC1. Note that ETC1 is not supported when two color tinting is enabled! 2017-04-18 10:31:57 +02:00
badlogic
137f95a20f [cocos2dx] Added debug meshes rendering. 2017-04-18 10:26:25 +02:00
badlogic
0be704dc66 [cocos2d-objc] Added batcher, incomplete 2017-03-02 08:47:15 +01:00