RH
93352ff06f
V4 bmfont improved api ( #20406 )
...
* Merged improved BM font API from Cocos2d-x V3. Code based on #20309 and #20300
* Added missing test resources.
2020-01-18 20:40:17 +08:00
Arnold
2fdb65e2c6
set attribute ( #20417 )
2020-01-18 20:40:09 +08:00
minggo
3ffb04f84a
fix flicker of fast tilemap ( #20387 )
2019-11-30 16:58:55 +08:00
codetypes
4310342862
missing implementation for TiledGrid3DAction::create ( #20370 )
2019-11-26 23:40:44 +08:00
halx99
d193246f09
Use toString instead asString
2019-11-25 18:02:13 +08:00
halx99
5f1dc7c748
Use toString instead.
2019-11-25 17:06:01 +08:00
halx99
3fcb8883c2
Remove tinyxml2 dep, done.
2019-11-25 01:35:26 +08:00
HALX99
7723fabb78
Merge pull request #13 from cocos2d/v4
...
sync V4
2019-11-23 20:20:02 -08:00
coulsonwang
c048d6b6bd
no need to update color ( #20363 )
2019-11-23 10:04:23 +08:00
codetypes
b9df4bd63b
format spelling ( #20360 )
2019-11-22 16:07:43 +08:00
HALX99
c08e2cda4d
Merge branch 'v4' into v4
2019-11-22 10:29:11 +08:00
halx99
78ed4e230b
TextureFormatEXT
2019-11-22 03:36:01 +08:00
halx99
5d5e6fcfec
Remove comment.
2019-11-20 18:44:45 +08:00
halx99
0caf671edd
Fix merge error.
2019-11-20 18:35:48 +08:00
halx99
e647820c9c
Merge from official-v4.
2019-11-20 18:27:56 +08:00
halx99
e7906acfa4
v4-meta-multi-textures support Single Texture2D with multi GPU texture handlers.
2019-11-20 18:19:24 +08:00
coulsonwang
912ba30e49
remove duplicated PrgramState instance in the derived class of Node ( #20350 )
2019-11-20 11:04:42 +08:00
coulsonwang
b2940949dd
implement setProgramState for SpriteBatchNode ( #20344 )
2019-11-18 15:04:47 +08:00
Arnold
587bcabf44
fix asan reported errors ( #20332 )
2019-11-15 13:39:23 +08:00
coulsonwang
292e4c3b4d
fix effect test ( #20286 )
2019-11-06 16:25:30 +08:00
minggo
01ff6ddd66
delete useless files and clean codes ( #20279 )
2019-11-06 14:24:06 +08:00
coulsonwang
a0d7751510
rename to make function name more clear
2019-10-28 16:47:27 +08:00
coulsonwang
eb23e1ffde
needs update texture info
2019-10-28 16:05:05 +08:00
coulsonwang
2d42aa1d21
fix memory leak ( #20258 )
2019-10-28 15:04:03 +08:00
minggo
7f796936ee
Revert "fix RotateTo animation when angle is bigger than 360 ( #20009 ) ( #20211 )" ( #20257 )
...
This reverts commit 8a64e6f983
.
2019-10-28 09:53:07 +08:00
coulsonwang
2501f53b9b
add CameraTest ( #20253 )
...
* nodeTest
* fix
2019-10-25 18:22:35 +08:00
minggo
c9af873e2e
fix some warnings ( #20247 )
2019-10-25 16:40:30 +08:00
minggo
be038d9ffc
fix some warnings ( #20236 )
2019-10-25 09:27:54 +08:00
minggo
6b1e55f419
Remove experimental namespace ( #20229 )
2019-10-23 14:58:31 +08:00
minggo
d29adb3180
sync #19914 ( #20215 )
2019-10-17 11:14:04 +08:00
minggo
99e984dde5
fix crash when plist filename hasn't suffix ( #19999 ) ( #20212 )
2019-10-17 11:12:37 +08:00
minggo
24b04e561b
sync #20007 to v4 ( #20210 )
...
* sync #20007 to v4
* Fixing a bug in Node::enumerateChildren (#20045 )
This patch fixes an issue that if both // (recursive enumeration)
and .. (starting from parent node) are specified,
Node::enumerateChildren does not honor the latter and starts searching
from current node rather than parent node.
2019-10-17 11:12:25 +08:00
minggo
8a64e6f983
fix RotateTo animation when angle is bigger than 360 ( #20009 ) ( #20211 )
2019-10-16 16:31:35 +08:00
coulsonwang
67ae2e756e
fix ProgramState and Program performance ( #20189 )
...
* fix ProgramState and Program performance
* fix review
* fix
* add autorelease
2019-10-15 09:40:59 +08:00
coulsonwang
c7020fbb5f
fix C4244 warning ( #20173 )
2019-10-09 17:50:32 +08:00
coulsonwang
49a3b5b228
fix auto test fails ( #20183 )
...
needs an integer position
2019-10-08 15:06:47 +08:00
rh101
4ac3f94774
V4 RenderTexture PMA flag fix ( #20153 )
...
* This is to ensure the RenderTexture internal texture2D PMA flag is set to the correct value.
[CCSprite.cpp] Blending mode needs to be set based on the PMA flag of the texture if using Sprite::initWithTexture().
* [CCSprite.cpp] Removed redundant code related to blending mode and opacityModifyRGB when creating a sprite with a texture.
2019-09-26 16:11:23 +08:00
coulsonwang
6de088ab98
fix C4244 warning ( #20162 )
...
* fix C4244 warning
* fix warning C4244
* fix compile error
2019-09-25 14:32:26 +08:00
coulsonwang
03a4ddf764
fix warning ( #20146 )
...
* fix warning
fix warning
* remove integer type constructor for Vec2
2019-09-24 11:31:35 +08:00
coulsonwang
816289ccf5
fix clipping node issue ( #20100 )
...
Children are not correctly clipped.
2019-09-05 09:17:43 +08:00
coulsonwang
73ad115702
fix FastTMXLayer ( #20065 )
2019-08-29 22:30:03 +08:00
coulsonwang
c4e6ede197
move VertexLayout to ProgramState ( #20029 )
...
* move VertexLayout to ProgramState
* fix lua
2019-08-15 16:51:49 +08:00
minggo
8913c30fc0
fix compile warnings ( #20028 )
2019-08-13 18:19:32 +08:00
minggo
ba2f9ac165
sync #19996 and #19972 : refactor DrawNode ( #20021 )
...
* sync #19996 and #19972 : refactor DrawNode
* fix compiling error
2019-08-13 17:28:53 +08:00
coulsonwang
320b9b4e67
Feature/sprite optimized ( #19998 )
...
Optimize sprite creation speed
2019-08-06 09:37:49 +08:00
rh101
e574e4984f
Added support for saving non-premultiplied alpha images from RenderTexture. ( #19990 )
2019-07-26 17:09:00 +08:00
minggo
0d121d7913
remove void in function declaration ( #19954 )
2019-07-22 09:38:46 +08:00
minggo
c283d4b939
sync 19759: fix: FastTMXLayer does not reflect opacity and anchor point ( #19950 )
2019-07-22 09:38:01 +08:00
minggo
6e0c4872c5
refactor CCScene ( #19767 ) ( #19944 )
...
* refactor-CCScene
prefer in-class initialization
* in-class initialization of pointer to nullptr
2019-07-22 09:36:38 +08:00
minggo
e47d6b664f
sync 19649 and fix conflict ( #19931 )
2019-07-19 13:43:20 +08:00
minggo
ad54a24cf0
sync 19634 and fix conflict ( #19930 )
2019-07-19 11:57:11 +08:00
minggo
e93d4cb1d6
fix outdated documentation [ci skip] ( #19618 ) ( #19929 )
2019-07-19 10:19:13 +08:00
coulsonwang
7b7cf55efb
remove vertex step mode ( #19921 )
2019-07-17 13:59:37 +08:00
minggo
96534de260
fix warnings ( #19891 )
2019-07-03 10:43:10 +08:00
coulsonwang
7a94e66a14
Feature/fix alpha test ( #19824 )
2019-06-18 00:25:26 -07:00
coulsonwang
7486fe89dc
fix flip issue ( #19831 )
...
* fix flip
* fix flip issue
2019-06-18 00:20:29 -07:00
Arnold
7851f212bf
Rename backend::Texture2D ( #19821 )
...
* compile on windows
* compile on mac
* rename to Texture2DBackend
* compile on mac
2019-06-12 00:01:15 -07:00
coulsonwang
9dc04bf228
remove opengl codes ( #19797 )
2019-06-05 02:58:33 -07:00
coulsonwang
10b2799051
Feature/fix mipmap issues ( #19753 )
...
* fix mipmap
* fix mipmap issues
* remove unneeded code
* fix
* remove Texture2D::PixelFormat, add backend::PixelFormat
* fix lua compile error
* reset *.tps files
* fix compile error
* fix compile error
2019-06-02 18:39:51 -07:00
coulsonwang
a67f729610
fix drawNode ( #19773 )
2019-05-29 19:06:43 -07:00
coulsonwang
a61e408189
set render target flag correcttly ( #19730 )
2019-05-21 18:53:15 -07:00
coulsonwang
97431b1197
[ParticleSpriteFrameTest] remove getName() in Texture2D ( #19740 )
2019-05-21 18:49:11 -07:00
coulsonwang
2deea28f49
fix scissor rectangle setting
2019-05-16 13:48:44 +08:00
coulsonwang
2d02e23fbd
Feature/update device info ( #19712 )
...
* update DeviceInfo
* remove unneeded code
* fix indentation
* add FeatureSet enum for metal
* revert code
2019-05-15 18:26:00 -07:00
Arnold
98d5f37a30
fix lua-tests errors ( #19646 )
...
* enable test case
* save
* generate enum classes
* save
* autobindg backend interface
* safe
* fix typos
* fix setUniform
* enable draw primitives and fast tmx tiled map
* save all
* update
* fix compile error on mac
* fix locations
* fix locations
* deduce vertexlayout
* clean
* compile on mac
* fix resource path
* save
* update bindings-generator
* remove unused code
* rename ccbackend to ccb
* remove todo
2019-05-05 00:26:34 -07:00
coulsonwang
7ee0b65bb6
[Feature] fix spirte, label test when EGL context lost ( #19612 )
...
* [BugFix] fix compile error
* [Feature] fix spirte, label test when EGL context lost
* [Feature] map uniform location
* [Feature] remove unneeded codes
* [Feature] add BufferManager
* [Feature] fix compile error
* [Feature] add files
* [Feature] remove unneeded codes
* [Feature] no need to release opengl resource
* [Feature] update BufferManager
* 1. reCreate frame buffer when needed.
2. initial texture when come back to foreground
* [Feature] add Program and Buffer event listener
* [FixTerrain] need check location had used before
* fix compile error
* add updateTextureDescrptor function for TextureMTL, since TextureMTL creation was move to Texture2D constructor.
* [FixDrawNode] record buffer data when needed
* [FixShaderTest] add nullptr judgement
* [FixShaderText] no need to reCreate ProgramState when come back to foreground
* [FixRenderTexture] retain the render texture image
* [Feature] optimize buffer memory
* fix compile error
* fix CI test fail
2019-04-29 18:51:45 -07:00
John
c259918d03
Optimize cases where loop variable is unecessarily copied in a range-for loop. ( #19637 ) ( #19640 )
...
Pass by const reference when appropriate.
2019-04-27 18:20:22 -07:00
John
22a43fbc83
rewrite parseIntegerList with better performance ( #19629 )
2019-04-21 18:51:23 -07:00
minggo
fd792813d2
Optimize calls to std::string::find() and friends ( #19624 )
2019-04-21 18:44:19 -07:00
minggo
f7f0c48cae
Checking, does the touch is within the height of the line, not the height of the sprite? ( #19394 ) ( #19594 )
2019-04-10 18:32:09 -07:00
minggo
1f7c0c9408
If path to file is tool long crash is possible. ( #19593 )
...
* If path to file is tool long crash is possible.
If path to file is tool long crash is possible, because of chart buffer overflow.
* Incorrect replacement. Using iterator is better.
* Style fix
* Correct naming
2019-04-10 18:31:50 -07:00
minggo
0a9e66a16c
Font atlas texture initialization delayed ( #19592 )
2019-04-10 18:31:29 -07:00
Arnold
3bf5e84926
[bugfix] cpp-test small bugs ( #19574 )
2019-04-04 01:13:17 -07:00
Arnold
9a56e6923f
[bugfix] motionstreak & DrawNode3D on GL ( #19564 )
2019-04-03 02:27:15 -07:00
coulsonwang
4f81cd7356
[BugFix] EVENT_PROJECTION_CHANGED means trigger an event when projection type is changed instead of when projection matrix is changed. ( #19568 )
2019-04-02 18:30:49 -07:00
Arnold
d6614cc0da
[bugfix] fix label effects ( #19554 )
2019-04-01 23:56:29 -07:00
coulsonwang
15b8014c0b
[BugFix] set layout ( #19558 )
2019-03-27 18:22:28 -07:00
Arnold
6c4c80d977
set terrain winding to CW ( #19549 )
2019-03-27 13:59:10 +08:00
Arnold
aa54a6c576
enable shader tests ( #19546 )
2019-03-25 22:45:03 -07:00
coulsonwang
4f63cc5459
[Feature] fix CaptureNode ( #19539 )
2019-03-24 19:23:55 -07:00
Arnold
e1675ae67b
Enable navmesh ( #19530 )
...
* enable flags
* impl debug draw
* run tests
* remove comments
* fix mac compile error
* review fix
2019-03-20 14:34:35 +08:00
minggo
cb9cf672a1
Merge pull request #19517 from PatriceJiang/3d-material-test-cases
...
Enable material system test cases
2019-03-19 09:46:46 +08:00
minggo
8452b55b82
Merge pull request #19513 from Mee-gu/feature/AddDeviceInfo
...
Feature/add device info
2019-03-19 09:24:18 +08:00
Arnold
d75c2f3c5e
add uniform callback
2019-03-15 14:44:28 +08:00
Arnold
069800b98c
enable test case
2019-03-15 14:41:59 +08:00
minggo
629eebd031
Merge pull request #19498 from PatriceJiang/texture_setTexParams
...
Texture2D::TexParams fields use backend enum types
2019-03-15 10:43:52 +08:00
coulsonwang
b2387f13de
[Feature] add DeviceInfo for querying implementation limits.
2019-03-14 15:58:55 +08:00
minggo
63fde51dc8
Merge pull request #19508 from Mee-gu/feature/UpdateParticle3D
...
[BugFix] fix particle3D
2019-03-13 18:01:25 +08:00
minggo
f5380f8efe
Merge pull request #19506 from minggo/rectangleclipping
...
ClippingRectangleNode works
2019-03-13 15:50:31 +08:00
coulsonwang
8e6416bf87
[BugFix] fix particle3D
2019-03-13 15:12:36 +08:00
minggo
1d9bde0520
ClippingRectangleNode works
2019-03-13 14:27:47 +08:00
minggo
7ebea45168
fix some todo
2019-03-13 14:11:40 +08:00
minggo
2795427a38
fix todo in CCGrid.cpp
2019-03-13 11:25:46 +08:00
Arnold
1d0107c087
alias backend::SamplerDescriptor
2019-03-13 10:54:26 +08:00
coulsonwang
a8e54b9b53
[Feature] update attribute setting
2019-03-12 21:05:03 +08:00
Arnold
62c6eae7c3
change Texture2D::TexParams fields type
2019-03-12 16:53:28 +08:00
Arnold
475b6e63a5
[bugfix] ClippingNode & CameraBackgroundBrush render order ( #19496 )
...
* add groupcommand as a barrier to reorder clipping node renderring
* add comments
2019-03-12 15:41:32 +08:00
Arnold
64f3f1d356
ProgressTimer cache uniforms ( #19482 )
...
* cache uniform
* release fix
* reorder vertex attributes
2019-03-11 10:15:33 +08:00
Arnold
3a55fa3dd6
[3d] add CameraBackgroundBrush ( #19454 )
2019-03-04 09:14:45 +08:00
Arnold
7fd82997ef
[3d] terrain impl & test case ( #19442 )
2019-02-27 17:16:25 +08:00