Commit Graph

345 Commits

Author SHA1 Message Date
minggo d3853e3f8b [ci skip] 2014-05-16 14:11:26 +08:00
Ricardo Quesada 9d1ab1ba07 uniform sampler CC_Texture0 MUST NOT be defined on shaders
since it is a built-in.
Built-in uniforms MUST NOT be defined on shaders.
Basically all CC_ uniforms must be defined by cocos2d-x
2014-05-15 16:47:54 -07:00
minggo e6fe882963 [ci skip] 2014-05-15 15:50:12 +08:00
Ricardo Quesada 839170c147 Improvments on the shader2 tests 2014-05-14 13:09:33 -07:00
minggo 89bb56e829 [ci skip] 2014-05-14 09:59:38 +08:00
minggo ac22dc236a [ci skip] 2014-05-13 18:45:41 +08:00
minggo 4bb9fb2396 [ci skip] 2014-05-13 13:56:42 +08:00
minggo cbf2629bf0 [ci skip] 2014-05-12 16:54:18 +08:00
minggo f5055548ac [ci skip] 2014-05-12 14:00:11 +08:00
minggo 8ceb26532a [ci skip] 2014-05-12 13:43:47 +08:00
Ricardo Quesada 91d1883e15 updated changelog 2014-05-11 11:19:11 -07:00
minggo 8a74f83ad0 [ci skip] 2014-05-08 18:46:34 +08:00
minggo 0ae859e3e1 [ci skip] 2014-05-08 18:00:01 +08:00
minggo 5291bbc377 [ci skip] 2014-05-08 17:25:41 +08:00
minggo 2571767907 [ci skip] 2014-05-08 17:13:21 +08:00
minggo b22fe211de [ci skip] 2014-05-08 15:42:05 +08:00
minggo 4defe28f1f [ci skip] 2014-05-08 13:47:04 +08:00
James Chen 37cb91fdc0 Update CHANGELOG [ci skip] 2014-05-08 10:52:15 +08:00
James Chen c6fd98d5f1 Update CHANGELOG [ci skip] 2014-05-07 16:27:35 +08:00
minggo 1caa7ece9a [ci skip] 2014-05-06 11:56:00 +08:00
minggo 07df728919 [ci skip] 2014-05-06 11:51:34 +08:00
minggo 9634da6ce7 [ci skip] 2014-05-06 11:47:53 +08:00
Ricardo Quesada 0e6dd9afe5 Particles can be created without texture
Needed for complex particles like in EarthWarrior3D
2014-05-05 15:50:08 -07:00
James Chen 8cbcf17163 issue #4674: Re-added deleted source files. 2014-05-04 14:37:55 +08:00
James Chen 066a6a3577 Update CHANGELOG [ci skip] 2014-03-04 22:11:50 +08:00
Ricardo Quesada c386f88e32 Merge branch 'develop' into visit_draw_improved
Conflicts:
	CHANGELOG
	cocos/gui/UILayout.h
2014-03-03 11:27:42 -08:00
James Chen aeecee86a4 Update CHANGELOG [ci skip] 2014-03-03 17:14:16 +08:00
James Chen e0178ae886 Update CHANGELOG [ci skip] 2014-03-03 10:08:47 +08:00
Ricardo Quesada cdc19eea1c Nodes: setAdditionalTransform() receives a pointer
and not a const reference.
If the pointer is `NULL`, then it won't use the additionalTransform
2014-03-01 08:26:54 -08:00
Ricardo Quesada 3bacd45240 indentation fix in CHANGELOG 2014-02-28 21:47:11 -08:00
Ricardo Quesada 5a2697816f Updates CHANGELOG 2014-02-28 16:41:37 -08:00
James Chen 2995f91b59 Update CHANGELOG [ci skip] 2014-02-28 16:38:05 +08:00
James Chen 7bfd180743 Update CHANGELOG [ci skip] 2014-02-28 10:19:37 +08:00
James Chen 5454a2db62 Update CHANGELOG [ci skip] 2014-02-27 21:56:31 +08:00
James Chen cd35bc17e8 Update CHANGELOG [ci skip] 2014-02-27 21:53:31 +08:00
James Chen c994b4ac72 Update CHANGELOG [ci skip] 2014-02-27 10:09:56 +08:00
James Chen c86aeda15e Update CHANGELOG [ci skip] 2014-02-26 11:59:08 +08:00
James Chen f97f109fbc Update CHANGELOG [ci skip] 2014-02-26 11:44:05 +08:00
James Chen 67361fc834 Update CHANGELOG [ci skip] 2014-02-26 11:41:20 +08:00
James Chen 364a6f8ef6 Update CHANGELOG [ci skip] 2014-02-25 18:32:18 +08:00
James Chen 304ccb73f1 Update CHANGELOG [ci skip] 2014-02-25 12:59:30 +08:00
James Chen 1823e890ac Update CHANGELOG [ci skip] 2014-02-25 11:18:02 +08:00
James Chen 3a652fcaf5 Update CHANGELOG [ci skip] 2014-02-24 22:25:55 +08:00
James Chen e310734af1 Update CHANGELOG [ci skip] 2014-02-24 21:50:17 +08:00
James Chen 618104d056 Update CHANGELOG [ci skip] 2014-02-24 20:14:55 +08:00
James Chen 8437e5f08b Update CHANGELOG [ci skip] 2014-02-24 17:02:38 +08:00
Ricardo Quesada 04460750b8 culling working for both 2d and 3d projections 2014-02-23 01:09:52 -08:00
James Chen e133556268 Update CHANGELOG [ci skip] 2014-02-21 19:18:24 +08:00
James Chen 7493f6aeea Update CHANGELOG [ci skip] 2014-02-21 16:25:06 +08:00
James Chen 3c82c1a0b0 Update CHANGELOG [ci skip] 2014-02-21 16:21:29 +08:00
James Chen dc64504043 Update CHANGELOG [ci skip] 2014-02-21 13:53:32 +08:00
James Chen 30c479220f Update CHANGELOG [ci skip] 2014-02-21 11:39:07 +08:00
James Chen 32383a7cfd Update CHANGELOG [ci skip] 2014-02-20 20:46:14 +08:00
James Chen 36611f9770 Update CHANGELOG [ci skip] 2014-02-20 19:35:05 +08:00
James Chen 6e07af03ae Update CHANGELOG [ci skip] 2014-02-20 15:58:55 +08:00
James Chen c0a075ee11 Update CHANGELOG [ci skip] 2014-02-20 15:48:22 +08:00
James Chen 47fd9aed26 Update CHANGELOG [ci skip] 2014-02-20 15:46:46 +08:00
James Chen 609b937b39 Update CHANGELOG [ci skip] 2014-02-18 15:59:56 +08:00
James Chen cae938bd4e Update CHANGELOG [ci skip] 2014-02-17 12:56:28 +08:00
James Chen 5ba38b1320 Update CHANGELOG [ci skip] 2014-02-14 11:20:34 +08:00
Éloi Rivard 8adca38efa Linux javascript bindings support.
- Adds Linux javascript test.
- Adds Linux javascript template.
- Adds Travis CI test.
2014-02-13 01:42:14 +01:00
James Chen 130c326811 Update CHANGELOG [ci skip] 2014-02-12 17:42:45 +08:00
James Chen 3028d75600 Update CHANGELOG [ci skip] 2014-02-11 14:32:22 +08:00
Ricardo Quesada 907446d8d0 Merge branch 'develop' of https://github.com/cocos2d/cocos2d-x into gl_vertices 2014-02-09 19:32:35 -08:00
Ricardo Quesada 24f655f9b1 Better 'vertices drawn' 2014-02-09 19:31:45 -08:00
James Chen a1aa4b9b8a Update CHANGELOG [ci skip] 2014-02-10 11:05:09 +08:00
James Chen 092784d7c5 Update CHANGELOG [ci skip] 2014-02-10 09:55:54 +08:00
Ricardo Quesada 560abe77c8 better Console support
* Arguments are passed as std::string
* Adds `resolution` and `projection` command
* `texture` and `fileutils` supports the `flush` argument
2014-02-08 12:46:44 -08:00
Ricardo Quesada 862500f99a Renames EGLView -> GLView 2014-01-30 15:40:56 -08:00
Ricardo Quesada 4ed2e0d9d2 Merge branch 'develop' into glview_improvements
Conflicts:
	CHANGELOG
	cocos/2d/platform/linux/CCApplication.cpp
	samples/Cpp/AssetsManagerTest/Classes/AppDelegate.cpp
	samples/Cpp/HelloCpp/Classes/AppDelegate.cpp
	samples/Cpp/HelloCpp/Classes/AppMacros.h
	samples/Cpp/HelloCpp/proj.ios/AppController.mm
	samples/Cpp/HelloCpp/proj.mac/main.cpp
	samples/Cpp/SimpleGame/Classes/AppDelegate.cpp
	samples/Cpp/SimpleGame/proj.ios/AppController.mm
	samples/Cpp/SimpleGame/proj.mac/main.cpp
	samples/Cpp/TestCpp/Classes/AppDelegate.h
	samples/Javascript/CocosDragonJS/Classes/AppDelegate.cpp
	samples/Javascript/CocosDragonJS/proj.ios/AppController.mm
	samples/Javascript/CocosDragonJS/proj.mac/main.cpp
	samples/Javascript/CrystalCraze/Classes/AppDelegate.cpp
	samples/Javascript/CrystalCraze/proj.ios/AppController.mm
	samples/Javascript/CrystalCraze/proj.mac/main.cpp
	samples/Javascript/MoonWarriors/Classes/AppDelegate.cpp
	samples/Javascript/MoonWarriors/proj.ios/AppController.mm
	samples/Javascript/MoonWarriors/proj.mac/main.cpp
	samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp
	samples/Javascript/WatermelonWithMe/proj.ios/AppController.mm
	samples/Javascript/WatermelonWithMe/proj.mac/main.cpp
	samples/Lua/HelloLua/Classes/AppDelegate.cpp
	samples/Lua/HelloLua/proj.ios/AppController.mm
	samples/Lua/HelloLua/proj.mac/main.cpp
2014-01-28 11:32:25 -08:00
James Chen 1c0eb3198d Update CHANGELOG [ci skip] 2014-01-28 17:36:07 +08:00
James Chen 41e261509b Update CHANGELOG [ci skip] 2014-01-28 16:33:01 +08:00
Ricardo Quesada 1f4ca2f0ad Works on Android 2014-01-27 13:05:58 -08:00
James Chen 09197b65b0 Update CHANGELOG [ci skip] 2014-01-27 16:39:52 +08:00
James Chen bbe156fe37 Update CHANGELOG [ci skip] 2014-01-27 16:12:31 +08:00
James Chen 0cc8050b73 Update CHANGELOG [ci skip] 2014-01-27 10:34:57 +08:00
minggo c8bd7bc3a8 update changelog 2014-01-27 10:28:11 +08:00
James Chen 208939ab2a Update CHANGELOG [ci skip] 2014-01-26 23:06:48 +08:00
James Chen bd10afab60 Update CHANGELOG [ci skip] 2014-01-26 22:07:55 +08:00
James Chen 2934a09a2e Update CHANGELOG [ci skip] 2014-01-26 14:47:34 +08:00
James Chen 243a995dc1 Update CHANGELOG [ci skip] 2014-01-26 14:43:29 +08:00
James Chen cb7e2b5ece Update CHANGELOG [ci skip] 2014-01-26 13:58:37 +08:00
James Chen aa8cfb5f04 Update CHANGELOG [ci skip] 2014-01-24 11:58:09 +08:00
James Chen 3d113e1709 Update CHANGELOG [ci skip] 2014-01-24 11:42:23 +08:00
James Chen afd11b43a4 Update CHANGELOG [ci skip] 2014-01-24 11:37:46 +08:00
James Chen dfbb68a9e1 Update CHANGELOG [ci skip] 2014-01-24 11:37:23 +08:00
James Chen 38ae628dea Update CHANGELOG [ci skip] 2014-01-23 18:03:31 +08:00
James Chen 1e39b59c8d Update CHANGELOG [ci skip] 2014-01-23 11:56:59 +08:00
James Chen 5ede8088c8 Update CHANGELOG [ci skip] 2014-01-23 11:26:24 +08:00
James Chen b4c2871496 Update CHANGELOG [ci skip] 2014-01-22 12:03:23 +08:00
James Chen d87bbdd7bb Update CHANGELOG [ci skip] 2014-01-22 11:41:57 +08:00
James Chen 7712ab7406 Update CHANGELOG [ci skip] 2014-01-21 17:56:24 +08:00
James Chen 87c3f533ea Update CHANGELOG [ci skip] 2014-01-20 12:05:06 +08:00
Ricardo Quesada 5fcbf42356 GlobalZOrder is used for render priority...
...and not vertexZ

Node::setGlobalZOrder() is used to change that.

Node::setZOrder() -> Node::setLocalZOrder();
2014-01-18 11:38:06 -08:00
Ricardo Quesada 069a4fb170 Renderer: Don't sort z=0 Commands
If Command has z==0, then those elements won't be sorted.
Only Z !=0 will be sorted, and it will use `sort` instead of `stable_sort`
for z!=0, since it is faster
2014-01-17 23:10:04 -08:00
James Chen 08bb3b1060 Update CHANGELOG [ci skip] 2014-01-18 10:55:15 +08:00
Ricardo Quesada 8931d968c0 Renderer uses a float as a key
Instead of using a 64-bit int key with viewport, opaque and depth,
it only uses a 32-bit float with only the depth.
Saves time in:
 - No need to convert the 32-bit float into 24-bit int
 - keys are shorter
2014-01-17 16:08:29 -08:00
James Chen 54d587153b Update CHANGELOG [ci skip] 2014-01-17 11:55:20 +08:00
Ricardo Quesada cb9761125b Renderer: When not using VAOs, call...
... glBufferData() to update the contents, and not glBufferSubData()
since the performance is better
2014-01-16 15:02:39 -08:00
Ricardo Quesada ce633b44ab Adds GL::activeTexture()
`GL::activeTexture()` is the cached version of `glActiveTexture`
All code must use it.
2014-01-16 13:44:18 -08:00
James Chen 74870aaf92 Update CHANGELOG [ci skip] 2014-01-16 17:21:07 +08:00
James Chen 191fc763f6 Update CHANGELOG [ci skip] 2014-01-16 16:12:15 +08:00
James Chen 93beb44150 Update CHANGELOG [ci skip] 2014-01-16 15:35:46 +08:00
James Chen 778292738f Update CHANGELOG [ci skip] 2014-01-16 12:03:42 +08:00
James Chen f5c93fc9e6 Update CHANGELOG [ci skip] 2014-01-16 11:55:42 +08:00
James Chen c6445b0640 Update CHANGELOG [ci skip] 2014-01-16 10:41:04 +08:00
Ricardo Quesada 9b490a9124 Sprite: removed _hasChildren
_hasChildren has been replaced with !_children.empty()
2014-01-15 18:37:07 -08:00
Ricardo Quesada ae84650713 Updates CHANGELOG 2014-01-15 16:09:38 -08:00
Ricardo Quesada f8dc8f0b38 Renderer performance fixes
QuadCommand no longer stores a copy of the quads.
Instead it just stores a reference and the MV matrix.
Later, the Renderer when it copies the Quads to the queue, it will
convert the Quads to world coordinates
2014-01-15 14:35:26 -08:00
Ricardo Quesada 4278f024b8 Console::log(format, va_args) is private
log(format, va_args) -> static _log(format, va_args)
in order to prevent possible resolution errors with overloaded
functions.
2014-01-15 11:17:21 -08:00
Ricardo Quesada c267c479db Performance Test fixes
* SpritePerfTest: 3 new tests added
* SpritePerfTest: random() always use the same seed
* SpritePerfTest: Fixed tests 8 and 9 on retina display machines
* Console: Added 3 new commands: 'config', 'fileutils dump', 'textures'
2014-01-14 17:22:45 -08:00
James Chen 428afae8e9 Update CHANGELOG [ci skip] 2014-01-14 21:52:04 +08:00
James Chen 245fa2efe0 Update CHANGELOG [ci skip] 2014-01-10 15:19:32 +08:00
James Chen ffdfcfbefb Update CHANGELOG [ci skip] 2014-01-09 17:13:34 +08:00
James Chen 43a9c84cc2 Update CHANGELOG [ci skip] 2014-01-09 15:26:54 +08:00
James Chen 29cbd2bcc8 Update CHANGELOG [ci skip] 2014-01-09 11:29:36 +08:00
James Chen 8f12490df6 Update CHANGELOG [ci skip] 2014-01-09 10:52:19 +08:00
James Chen df18e86d86 Updates CHANGELOG [ci skip] 2014-01-08 10:57:27 +08:00
minggo e0b2d16a54 update changelog 2014-01-07 12:48:55 +08:00
Ricardo Quesada 11ad6cd974 Adds release date to CHANGELOG 2014-01-06 14:24:24 -08:00
James Chen 83028deca6 Update CHANGELOG [ci skip] 2014-01-04 12:02:11 +08:00
James Chen 233e0ab457 Update CHANGELOG [ci skip] 2014-01-04 11:50:35 +08:00
minggo 1caae52140 [ci skip] 2014-01-03 12:58:57 +08:00
minggo 93d724f408 [ci skip] 2014-01-03 10:41:26 +08:00
James Chen 1beb992157 Update CHANGELOG [ci skip] 2014-01-02 20:09:43 +08:00
James Chen 5bd580c175 Update CHANGELOG [ci skip] 2014-01-02 16:25:06 +08:00
James Chen 13cf67747a Update CHANGELOG [ci skip] 2014-01-02 09:58:05 +08:00
James Chen aff08adc66 Update CHANGELOG [ci skip] 2014-01-01 21:55:58 +08:00
James Chen e0af959cb4 Update CHANGELOG [ci skip] 2013-12-30 13:37:52 +08:00
James Chen b534442cf1 Update CHANGELOG [ci skip] 2013-12-30 10:15:10 +08:00
James Chen 6562608855 Update CHANGELOG [ci skip] 2013-12-27 20:12:52 +08:00
James Chen 2db35c5126 Update CHANGELOG [ci skip] 2013-12-27 16:32:24 +08:00
James Chen 48d3e8e334 Update CHANGELOG [ci skip] 2013-12-27 10:09:49 +08:00
James Chen dafaff0d83 Update CHANGELOG [ci skip] 2013-12-26 10:52:01 +08:00
James Chen d08cb63a82 Update CHANGELOG [ci skip] 2013-12-24 18:19:32 +08:00
James Chen 91ef6ea1e5 Update CHANGELOG [ci skip] 2013-12-24 15:57:39 +08:00
James Chen f573f1092c Update CHANGELOG [ci skip] 2013-12-24 14:27:25 +08:00
James Chen 5a6275f3cc Update CHANGELOG [ci skip] 2013-12-24 14:04:55 +08:00
James Chen e8f946c973 Update CHANGELOG [ci skip] 2013-12-20 21:06:05 +08:00
James Chen 8b6a6489fe Update CHANGELOG [ci skip] 2013-12-20 20:11:14 +08:00
James Chen 4fe74c84bc Update CHANGELOG [ci skip] 2013-12-20 16:15:02 +08:00
James Chen a40e47d227 Update CHANGELOG [ci skip] 2013-12-19 20:57:57 +08:00
James Chen 3a1ffca890 Update CHANGELOG [ci skip] 2013-12-16 17:46:38 +08:00
minggo d2ded2d780 [ci skip] 2013-12-16 15:28:47 +08:00
James Chen 229aa5433c Update CHANGELOG [ci skip] 2013-12-02 17:27:28 +08:00
minggo e4883fb105 [ci skip] 2013-12-02 10:19:39 +08:00
minggo d3076a1415 [ci skip] 2013-11-28 16:09:21 +08:00
James Chen 749fc5d95b Update CHANGELOG [ci skip] 2013-11-27 14:31:05 +08:00
James Chen c63698b488 Update CHANGELOG [ci skip] 2013-11-27 14:23:24 +08:00
James Chen 94c41ea51e Update CHANGELOG [ci skip] 2013-11-27 11:03:16 +08:00