This commit is contained in:
kaile.yin 2014-07-23 15:24:36 +08:00
commit bdad6d9b67
250 changed files with 11537 additions and 8471 deletions

3
.gitignore vendored
View File

@ -136,4 +136,5 @@ project.properties
/external/version.json
/templates/lua-template-runtime/runtime
/v*-deps-*.zip
/v*-lua-runtime-*.zip
/v*-lua-runtime-*.zip
/tools/fbx-conv/

View File

@ -25,7 +25,7 @@ Developers:
longlene
Improve android project creation script
simpliplant
reneklacan
Hardware keyboard support
liuyq
@ -530,6 +530,7 @@ Developers:
Casting variables to their own type, and print warning info if no corresponding lua callback function instead of crash.
fix of WebSocket url parse error for 'ws://domain.com/websocket' pattern.
Fixed a bug that Websocket doesn't support send/receive data which larger than 4096 bytes.
Show detail class & function name in error message of lua-binding
musikov
Fixing a bug that missing precision when getting strokeColor and fontFillColor
@ -797,6 +798,7 @@ Developers:
Adds support for get response when Activity's onActivityResult is triggered
Improve Android projects
Android jni error clear & more readable log
Add support of software PVRTC v1 decompression
youknowone
Adds iOS-like elastic bounceback support for cocos2d::extension::ScrollView
@ -919,6 +921,10 @@ Developers:
CaiCQ
Fix a but that LabelTTF may lost chinese characters on linux
chenguangqi
Fixed a compiling error on Android
Fixed an error when importing project using Eclipse on Android
Retired Core Developers:
WenSheng Yang

View File

@ -1,6 +1,12 @@
cocos2d-x-3.3 ??
[NEW] CCImage: support of software PVRTC v1 decompression
[FIX] Label: can not set charmap after it is created
[FIX] Scale9Sprite: new added sprite will be hidden
[FIX] UIListView: can not insert an item in specific position, it is added at bottom
[FIX] TextField: can not use backspace to delete a character
[FIX] Others: can not import java library shift by engine correctly when using Eclispe on Android
cocos2d-x-3.2 Jul.17 2014
[NEW] Node: added getChildByName method for get a node that can be cast to Type T

View File

@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Desktop
# Visual Studio 2012
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
@ -11,8 +11,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\external\
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpp-tests", "..\tests\cpp-tests\proj.win32\cpp-tests.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosBuilder", "..\cocos\editor-support\cocosbuilder\proj.win32\libCocosBuilder.vcxproj", "{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosStudio", "..\cocos\editor-support\cocostudio\proj.win32\libCocosStudio.vcxproj", "{B57CF53F-2E49-4031-9822-047CC0E6BDE2}"
@ -21,18 +19,21 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libNetwork", "..\cocos\netw
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "..\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libLocalStorage", "..\cocos\storage\local-storage\proj.win32\libLocalStorage.vcxproj", "{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "..\cocos\scripting\lua-bindings\proj.win32\liblua.vcxproj", "{DDC3E27F-004D-4DD4-9DD3-931A013D2159}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lua-tests", "..\tests\lua-tests\project\proj.win32\lua-tests.win32.vcxproj", "{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libGUI", "..\cocos\ui\proj.win32\libGUI.vcxproj", "{7E06E92C-537A-442B-9E4A-4761C84F8A1A}"
ProjectSection(ProjectDependencies) = postProject
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpp-empty-test", "..\tests\cpp-empty-test\proj.win32\cpp-empty-test.vcxproj", "{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lua-empty-test", "..\tests\lua-empty-test\project\proj.win32\lua-empty-test.vcxproj", "{13E55395-94A2-4CD9-BFC2-1A051F80C17D}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpp-tests", "..\tests\cpp-tests\proj.win32\cpp-tests.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@ -59,10 +60,6 @@ Global
{21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32
{21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32
{21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32
{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.ActiveCfg = Debug|Win32
{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.Build.0 = Debug|Win32
{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.ActiveCfg = Release|Win32
@ -79,10 +76,6 @@ Global
{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Debug|Win32.Build.0 = Debug|Win32
{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.ActiveCfg = Release|Win32
{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.Build.0 = Release|Win32
{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.ActiveCfg = Debug|Win32
{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.Build.0 = Debug|Win32
{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.ActiveCfg = Release|Win32
{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.Build.0 = Release|Win32
{DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.ActiveCfg = Debug|Win32
{DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.Build.0 = Debug|Win32
{DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.ActiveCfg = Release|Win32
@ -103,6 +96,10 @@ Global
{13E55395-94A2-4CD9-BFC2-1A051F80C17D}.Debug|Win32.Build.0 = Debug|Win32
{13E55395-94A2-4CD9-BFC2-1A051F80C17D}.Release|Win32.ActiveCfg = Release|Win32
{13E55395-94A2-4CD9-BFC2-1A051F80C17D}.Release|Win32.Build.0 = Release|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

File diff suppressed because it is too large Load Diff

View File

@ -135,7 +135,7 @@
15E66FC8192D957100C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
15E66FD6192DC8C700C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
1A0EE2A118CDF6DA004CD58F /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
1A0EE2A218CDF6DA004CD58F /* libcocos2dx Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.a */; };
1A0EE2A218CDF6DA004CD58F /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
1A0EE2A418CDF6DA004CD58F /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
1A0EE2A518CDF6DA004CD58F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EDCC747E17C455FD007B692C /* IOKit.framework */; };
1A0EE2A618CDF6DA004CD58F /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9F808C177E98A600D9A1CB /* libcurl.dylib */; };
@ -157,7 +157,7 @@
1A0EE2D018CDF733004CD58F /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35618CD9A890087CE3A /* QuartzCore.framework */; };
1A0EE2D118CDF733004CD58F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35418CD9A820087CE3A /* OpenGL.framework */; };
1A0EE2D218CDF733004CD58F /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
1A0EE2D318CDF733004CD58F /* libcocos2dx Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.a */; };
1A0EE2D318CDF733004CD58F /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
1A0EE2D418CDF733004CD58F /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */; };
1A0EE2D518CDF733004CD58F /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
1A0EE2D618CDF733004CD58F /* libluabindings Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA27E18CD90A50087CE3A /* libluabindings Mac.a */; };
@ -233,7 +233,7 @@
1A9F808D177E98A600D9A1CB /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9F808C177E98A600D9A1CB /* libcurl.dylib */; };
1AAF534B180E2F4E000584C8 /* libbox2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB61807A4F9005B8026 /* libbox2d Mac.a */; };
1AAF534C180E2F4E000584C8 /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
1AAF534D180E2F4E000584C8 /* libcocos2dx Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.a */; };
1AAF534D180E2F4E000584C8 /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
1AAF534E180E2F4E000584C8 /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */; };
1AAF534F180E2F4E000584C8 /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
1AAF53FE180E39D4000584C8 /* libbox2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC41807A4F9005B8026 /* libbox2d iOS.a */; };
@ -243,7 +243,7 @@
1AAF5402180E39D4000584C8 /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */; };
1ABCA28718CD91510087CE3A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64822165F391E007D4F18 /* Cocoa.framework */; };
1ABCA2C218CD92420087CE3A /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
1ABCA2C318CD92420087CE3A /* libcocos2dx Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.a */; };
1ABCA2C318CD92420087CE3A /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
1ABCA2C418CD92420087CE3A /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */; };
1ABCA2C518CD92420087CE3A /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
1ABCA2C618CD92420087CE3A /* libluabindings Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA27E18CD90A50087CE3A /* libluabindings Mac.a */; };
@ -915,8 +915,42 @@
A07A52BF1783AF210073F6A7 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B91783AE900073F6A7 /* OpenGLES.framework */; };
A07A52C01783AF250073F6A7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B71783AE6D0073F6A7 /* UIKit.framework */; };
A07A52C31783B02C0073F6A7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52C11783B01F0073F6A7 /* AVFoundation.framework */; };
B24024DB1978DE1000FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
B24024DD1978EC0700FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
B24024E31978ED5200FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
B24024E51978ED5F00FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
B244F3171976878E00ED1926 /* libcocosNetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libcocosNetwork Mac.a */; };
B2507B6B192589AF00FA4972 /* Shaders3D in Resources */ = {isa = PBXBuildFile; fileRef = B2507B6A192589AF00FA4972 /* Shaders3D */; };
B2507B6C192589AF00FA4972 /* Shaders3D in Resources */ = {isa = PBXBuildFile; fileRef = B2507B6A192589AF00FA4972 /* Shaders3D */; };
B27AEE0719768950008BD575 /* libcocosNetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libcocosNetwork Mac.a */; };
B27AEE0A1976896B008BD575 /* libcocosNetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libcocosNetwork Mac.a */; };
B2C59AC8197782B900B452DF /* libcocosBuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosBuilder iOS.a */; };
B2C59AC9197782B900B452DF /* libcocosGUI iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libcocosGUI iOS.a */; };
B2C59ACA197782B900B452DF /* libcocosStudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocosStudio iOS.a */; };
B2C59AD619779CEB00B452DF /* libcocosBuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosBuilder iOS.a */; };
B2C59AD719779CEB00B452DF /* libcocosGUI iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libcocosGUI iOS.a */; };
B2C59AD819779CEB00B452DF /* libcocosNetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libcocosNetwork iOS.a */; };
B2C59AD919779CEB00B452DF /* libcocosSpine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libcocosSpine iOS.a */; };
B2C59ADA19779CEB00B452DF /* libcocosStudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocosStudio iOS.a */; };
B2C59AE519779D5D00B452DF /* libcocosBuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosBuilder iOS.a */; };
B2C59AE619779D5D00B452DF /* libcocosGUI iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libcocosGUI iOS.a */; };
B2C59AE719779D5D00B452DF /* libcocosNetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libcocosNetwork iOS.a */; };
B2C59AE819779D5D00B452DF /* libcocosSpine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libcocosSpine iOS.a */; };
B2C59AE919779D5D00B452DF /* libcocosStudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocosStudio iOS.a */; };
B2CC5045197766F70041958E /* libcocosNetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libcocosNetwork iOS.a */; };
B2CC507B19776D8B0041958E /* libcocosSpine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libcocosSpine iOS.a */; };
B2DB479A197668D500411E16 /* libcocosGUI Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */; };
B2DB480919766E4800411E16 /* libcocosBuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */; };
B2DB480E197670F500411E16 /* libcocosBuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */; };
B2DB480F197670F500411E16 /* libcocosGUI Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */; };
B2DB48141976711A00411E16 /* libcocosBuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */; };
B2DB48151976711A00411E16 /* libcocosGUI Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */; };
B2DB48C319767D3D00411E16 /* libcocosStudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */; };
B2DB48C619767DAC00411E16 /* libcocosStudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */; };
B2DB48C919767EB700411E16 /* libcocosStudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */; };
B2DB493A197681E500411E16 /* libcocosSpine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libcocosSpine Mac.a */; };
B2DB49401976826000411E16 /* libcocosSpine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libcocosSpine Mac.a */; };
B2DB49431976826E00411E16 /* libcocosSpine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libcocosSpine Mac.a */; };
C04F935A1941B05400E9FEAB /* TileMapTest2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C04F93581941B05400E9FEAB /* TileMapTest2.cpp */; };
C04F935B1941B05400E9FEAB /* TileMapTest2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C04F93581941B05400E9FEAB /* TileMapTest2.cpp */; };
C08689C118D370C90093E810 /* background.caf in Resources */ = {isa = PBXBuildFile; fileRef = C08689C018D370C90093E810 /* background.caf */; };
@ -1383,8 +1417,331 @@
remoteGlobalIDString = A07A517F1783A1D20073F6A7;
remoteInfo = "Test cpp iOS";
};
B244F3101976878700ED1926 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB498D197686CB00411E16;
remoteInfo = "cocosNetwork Mac";
};
B244F3151976878700ED1926 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B2DB49C4197686CB00411E16;
remoteInfo = "cocosNetwork Mac";
};
B27AEE031976894C008BD575 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB498D197686CB00411E16;
remoteInfo = "cocosNetwork Mac";
};
B27AEE0819768965008BD575 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB498D197686CB00411E16;
remoteInfo = "cocosNetwork Mac";
};
B2C59ABD197782AC00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA2C19775E92004493CC;
remoteInfo = "cocosGUI iOS";
};
B2C59ABF197782AC00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA6719775EBB004493CC;
remoteInfo = "cocosStudio iOS";
};
B2C59AC1197782AC00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA6F19775ECE004493CC;
remoteInfo = "cocosBuilder iOS";
};
B2C59ACC19779CDF00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA2C19775E92004493CC;
remoteInfo = "cocosGUI iOS";
};
B2C59ACE19779CDF00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA6719775EBB004493CC;
remoteInfo = "cocosStudio iOS";
};
B2C59AD019779CDF00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA6F19775ECE004493CC;
remoteInfo = "cocosBuilder iOS";
};
B2C59AD219779CDF00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA7719775EE1004493CC;
remoteInfo = "cocosSpine iOS";
};
B2C59AD419779CDF00B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA7F19775EF3004493CC;
remoteInfo = "cocosNetwork iOS";
};
B2C59ADB19779D5400B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA2C19775E92004493CC;
remoteInfo = "cocosGUI iOS";
};
B2C59ADD19779D5400B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA6719775EBB004493CC;
remoteInfo = "cocosStudio iOS";
};
B2C59ADF19779D5400B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA6F19775ECE004493CC;
remoteInfo = "cocosBuilder iOS";
};
B2C59AE119779D5400B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA7719775EE1004493CC;
remoteInfo = "cocosSpine iOS";
};
B2C59AE319779D5400B452DF /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA7F19775EF3004493CC;
remoteInfo = "cocosNetwork iOS";
};
B2CC5038197763A20041958E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B24EEA6619775E92004493CC;
remoteInfo = "cocosGUI iOS";
};
B2CC503A197763A20041958E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B24EEA6E19775EBB004493CC;
remoteInfo = "cocosStudio iOS";
};
B2CC503C197763A20041958E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B24EEA7619775ECE004493CC;
remoteInfo = "cocosBuilder iOS";
};
B2CC503E197763A20041958E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B24EEA7E19775EE1004493CC;
remoteInfo = "cocosSpine iOS";
};
B2CC5040197763A20041958E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B24EEA8619775EF3004493CC;
remoteInfo = "cocosNetwork iOS";
};
B2CC5043197766EB0041958E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA7F19775EF3004493CC;
remoteInfo = "cocosNetwork iOS";
};
B2CC507919776D830041958E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B24EEA7719775EE1004493CC;
remoteInfo = "cocosSpine iOS";
};
B2DB4793197668CA00411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B245F10019766132001920FD;
remoteInfo = "cocosGUI Mac";
};
B2DB4798197668CA00411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B245F13A19766132001920FD;
remoteInfo = "cocosGUI Mac";
};
B2DB480419766E3C00411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB479B197669A100411E16;
remoteInfo = "cocosBuilder Mac";
};
B2DB480719766E3C00411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B2DB47D2197669A100411E16;
remoteInfo = "cocosBuilder Mac";
};
B2DB480A197670ED00411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B245F10019766132001920FD;
remoteInfo = "cocosGUI Mac";
};
B2DB480C197670ED00411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB479B197669A100411E16;
remoteInfo = "cocosBuilder Mac";
};
B2DB48101976711200411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B245F10019766132001920FD;
remoteInfo = "cocosGUI Mac";
};
B2DB48121976711200411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB479B197669A100411E16;
remoteInfo = "cocosBuilder Mac";
};
B2DB48BE19767D3600411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB48161976716E00411E16;
remoteInfo = "cocosStudio Mac";
};
B2DB48C119767D3600411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B2DB484D1976716E00411E16;
remoteInfo = "cocosStudio Mac";
};
B2DB48C419767DA500411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB48161976716E00411E16;
remoteInfo = "cocosStudio Mac";
};
B2DB48C719767EAF00411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB48161976716E00411E16;
remoteInfo = "cocosStudio Mac";
};
B2DB49351976819900411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB48CA19767F1F00411E16;
remoteInfo = "cocosSpine Mac";
};
B2DB49381976819900411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = B2DB490119767F1F00411E16;
remoteInfo = "cocosSpine Mac";
};
B2DB493E1976825800411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB48CA19767F1F00411E16;
remoteInfo = "cocosSpine Mac";
};
B2DB49411976826900411E16 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = B2DB48CA19767F1F00411E16;
remoteInfo = "cocosSpine Mac";
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
B24024D81978DE0800FDE433 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
B24024DB1978DE1000FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B24024DC1978EBFE00FDE433 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 12;
dstPath = "";
dstSubfolderSpec = 10;
files = (
B24024DD1978EC0700FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B24024E21978ED4B00FDE433 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
B24024E31978ED5200FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
B24024E41978ED5800FDE433 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
B24024E51978ED5F00FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
1503FAA918DA8B6C00F6518C /* ftp.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = ftp.lua; path = ../external/lua/luasocket/ftp.lua; sourceTree = "<group>"; };
1503FAAA18DA8B6C00F6518C /* headers.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = headers.lua; path = ../external/lua/luasocket/headers.lua; sourceTree = "<group>"; };
@ -3212,7 +3569,7 @@
buildActionMask = 2147483647;
files = (
1A0EE2A118CDF6DA004CD58F /* libchipmunk Mac.a in Frameworks */,
1A0EE2A218CDF6DA004CD58F /* libcocos2dx Mac.a in Frameworks */,
1A0EE2A218CDF6DA004CD58F /* libcocos2dx Mac.dylib in Frameworks */,
1A0EE2A418CDF6DA004CD58F /* libCocosDenshion Mac.a in Frameworks */,
1A0EE2A518CDF6DA004CD58F /* IOKit.framework in Frameworks */,
1A0EE2A618CDF6DA004CD58F /* libcurl.dylib in Frameworks */,
@ -3231,6 +3588,11 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B27AEE0A1976896B008BD575 /* libcocosNetwork Mac.a in Frameworks */,
B2DB49431976826E00411E16 /* libcocosSpine Mac.a in Frameworks */,
B2DB48C919767EB700411E16 /* libcocosStudio Mac.a in Frameworks */,
B2DB480E197670F500411E16 /* libcocosBuilder Mac.a in Frameworks */,
B2DB480F197670F500411E16 /* libcocosGUI Mac.a in Frameworks */,
1A0EE2C918CDF733004CD58F /* libcurl.dylib in Frameworks */,
1A0EE2CA18CDF733004CD58F /* libz.dylib in Frameworks */,
1A0EE2CB18CDF733004CD58F /* IOKit.framework in Frameworks */,
@ -3241,7 +3603,7 @@
1A0EE2D018CDF733004CD58F /* QuartzCore.framework in Frameworks */,
1A0EE2D118CDF733004CD58F /* OpenGL.framework in Frameworks */,
1A0EE2D218CDF733004CD58F /* libchipmunk Mac.a in Frameworks */,
1A0EE2D318CDF733004CD58F /* libcocos2dx Mac.a in Frameworks */,
1A0EE2D318CDF733004CD58F /* libcocos2dx Mac.dylib in Frameworks */,
1A0EE2D418CDF733004CD58F /* libcocos2dx-extensions Mac.a in Frameworks */,
1A0EE2D518CDF733004CD58F /* libCocosDenshion Mac.a in Frameworks */,
1A0EE2D618CDF733004CD58F /* libluabindings Mac.a in Frameworks */,
@ -3273,6 +3635,11 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B2C59AD619779CEB00B452DF /* libcocosBuilder iOS.a in Frameworks */,
B2C59AD719779CEB00B452DF /* libcocosGUI iOS.a in Frameworks */,
B2C59AD819779CEB00B452DF /* libcocosNetwork iOS.a in Frameworks */,
B2C59AD919779CEB00B452DF /* libcocosSpine iOS.a in Frameworks */,
B2C59ADA19779CEB00B452DF /* libcocosStudio iOS.a in Frameworks */,
15AECE25195D467D00907DB0 /* MediaPlayer.framework in Frameworks */,
1A0EE42C18CDF799004CD58F /* libz.dylib in Frameworks */,
1A0EE42D18CDF799004CD58F /* CoreMotion.framework in Frameworks */,
@ -3296,6 +3663,11 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B27AEE0719768950008BD575 /* libcocosNetwork Mac.a in Frameworks */,
B2DB49401976826000411E16 /* libcocosSpine Mac.a in Frameworks */,
B2DB48C319767D3D00411E16 /* libcocosStudio Mac.a in Frameworks */,
B2DB48141976711A00411E16 /* libcocosBuilder Mac.a in Frameworks */,
B2DB48151976711A00411E16 /* libcocosGUI Mac.a in Frameworks */,
1ABCA36218CD9AC60087CE3A /* libcurl.dylib in Frameworks */,
1ABCA36118CD9AC00087CE3A /* libz.dylib in Frameworks */,
1ABCA35F18CD9AAE0087CE3A /* IOKit.framework in Frameworks */,
@ -3306,7 +3678,7 @@
1ABCA35718CD9A890087CE3A /* QuartzCore.framework in Frameworks */,
1ABCA35518CD9A820087CE3A /* OpenGL.framework in Frameworks */,
1ABCA2C218CD92420087CE3A /* libchipmunk Mac.a in Frameworks */,
1ABCA2C318CD92420087CE3A /* libcocos2dx Mac.a in Frameworks */,
1ABCA2C318CD92420087CE3A /* libcocos2dx Mac.dylib in Frameworks */,
1ABCA2C418CD92420087CE3A /* libcocos2dx-extensions Mac.a in Frameworks */,
1ABCA2C518CD92420087CE3A /* libCocosDenshion Mac.a in Frameworks */,
1ABCA2C618CD92420087CE3A /* libluabindings Mac.a in Frameworks */,
@ -3318,6 +3690,11 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B2C59AE519779D5D00B452DF /* libcocosBuilder iOS.a in Frameworks */,
B2C59AE619779D5D00B452DF /* libcocosGUI iOS.a in Frameworks */,
B2C59AE719779D5D00B452DF /* libcocosNetwork iOS.a in Frameworks */,
B2C59AE819779D5D00B452DF /* libcocosSpine iOS.a in Frameworks */,
B2C59AE919779D5D00B452DF /* libcocosStudio iOS.a in Frameworks */,
15AECE0B195C0F8A00907DB0 /* MediaPlayer.framework in Frameworks */,
1ABCA3B018CDA06D0087CE3A /* libz.dylib in Frameworks */,
1ABCA3AA18CD9F1A0087CE3A /* CoreMotion.framework in Frameworks */,
@ -3341,9 +3718,14 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B244F3171976878E00ED1926 /* libcocosNetwork Mac.a in Frameworks */,
B2DB493A197681E500411E16 /* libcocosSpine Mac.a in Frameworks */,
B2DB48C619767DAC00411E16 /* libcocosStudio Mac.a in Frameworks */,
B2DB480919766E4800411E16 /* libcocosBuilder Mac.a in Frameworks */,
B2DB479A197668D500411E16 /* libcocosGUI Mac.a in Frameworks */,
1AAF534B180E2F4E000584C8 /* libbox2d Mac.a in Frameworks */,
1AAF534C180E2F4E000584C8 /* libchipmunk Mac.a in Frameworks */,
1AAF534D180E2F4E000584C8 /* libcocos2dx Mac.a in Frameworks */,
1AAF534D180E2F4E000584C8 /* libcocos2dx Mac.dylib in Frameworks */,
1AAF534E180E2F4E000584C8 /* libcocos2dx-extensions Mac.a in Frameworks */,
1AAF534F180E2F4E000584C8 /* libCocosDenshion Mac.a in Frameworks */,
EDCC747F17C455FD007B692C /* IOKit.framework in Frameworks */,
@ -3384,6 +3766,11 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B2C59AC8197782B900B452DF /* libcocosBuilder iOS.a in Frameworks */,
B2C59AC9197782B900B452DF /* libcocosGUI iOS.a in Frameworks */,
B2C59ACA197782B900B452DF /* libcocosStudio iOS.a in Frameworks */,
B2CC507B19776D8B0041958E /* libcocosSpine iOS.a in Frameworks */,
B2CC5045197766F70041958E /* libcocosNetwork iOS.a in Frameworks */,
3EA0FB66191B933000B170C8 /* MediaPlayer.framework in Frameworks */,
1AAF53FE180E39D4000584C8 /* libbox2d iOS.a in Frameworks */,
1AAF53FF180E39D4000584C8 /* libchipmunk iOS.a in Frameworks */,
@ -7347,8 +7734,13 @@
46A15F9D1807A4F8005B8026 /* Products */ = {
isa = PBXGroup;
children = (
46A15FB01807A4F9005B8026 /* libcocos2dx Mac.a */,
46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */,
46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */,
B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */,
B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */,
B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */,
B2DB49391976819900411E16 /* libcocosSpine Mac.a */,
B244F3161976878700ED1926 /* libcocosNetwork Mac.a */,
46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */,
46A15FB61807A4F9005B8026 /* libbox2d Mac.a */,
46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */,
@ -7357,6 +7749,11 @@
46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */,
46A15FC41807A4F9005B8026 /* libbox2d iOS.a */,
46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */,
B2CC5039197763A20041958E /* libcocosGUI iOS.a */,
B2CC503B197763A20041958E /* libcocosStudio iOS.a */,
B2CC503D197763A20041958E /* libcocosBuilder iOS.a */,
B2CC503F197763A20041958E /* libcocosSpine iOS.a */,
B2CC5041197763A20041958E /* libcocosNetwork iOS.a */,
);
name = Products;
sourceTree = "<group>";
@ -7393,6 +7790,7 @@
1A0EE1D118CDF6DA004CD58F /* Resources */,
1A0EE1F618CDF6DA004CD58F /* Sources */,
1A0EE29F18CDF6DA004CD58F /* Frameworks */,
B24024D81978DE0800FDE433 /* CopyFiles */,
);
buildRules = (
);
@ -7413,10 +7811,16 @@
1A0EE2C318CDF733004CD58F /* Sources */,
1A0EE2C818CDF733004CD58F /* Frameworks */,
1A0EE2D818CDF733004CD58F /* Resources */,
B24024E21978ED4B00FDE433 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
B27AEE0919768965008BD575 /* PBXTargetDependency */,
B2DB49421976826900411E16 /* PBXTargetDependency */,
B2DB48C819767EAF00411E16 /* PBXTargetDependency */,
B2DB480B197670ED00411E16 /* PBXTargetDependency */,
B2DB480D197670ED00411E16 /* PBXTargetDependency */,
1A0EE2B918CDF733004CD58F /* PBXTargetDependency */,
1A0EE2BB18CDF733004CD58F /* PBXTargetDependency */,
1A0EE2BD18CDF733004CD58F /* PBXTargetDependency */,
@ -7459,6 +7863,11 @@
buildRules = (
);
dependencies = (
B2C59ACD19779CDF00B452DF /* PBXTargetDependency */,
B2C59ACF19779CDF00B452DF /* PBXTargetDependency */,
B2C59AD119779CDF00B452DF /* PBXTargetDependency */,
B2C59AD319779CDF00B452DF /* PBXTargetDependency */,
B2C59AD519779CDF00B452DF /* PBXTargetDependency */,
1A0EE41A18CDF799004CD58F /* PBXTargetDependency */,
1A0EE41C18CDF799004CD58F /* PBXTargetDependency */,
1A0EE41E18CDF799004CD58F /* PBXTargetDependency */,
@ -7477,10 +7886,16 @@
1ABCA28218CD91510087CE3A /* Sources */,
1ABCA28318CD91510087CE3A /* Frameworks */,
1ABCA28418CD91510087CE3A /* Resources */,
B24024E41978ED5800FDE433 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
B27AEE041976894C008BD575 /* PBXTargetDependency */,
B2DB493F1976825800411E16 /* PBXTargetDependency */,
B2DB48BF19767D3600411E16 /* PBXTargetDependency */,
B2DB48111976711200411E16 /* PBXTargetDependency */,
B2DB48131976711200411E16 /* PBXTargetDependency */,
1ABCA2C118CD92280087CE3A /* PBXTargetDependency */,
1ABCA2B918CD92230087CE3A /* PBXTargetDependency */,
1ABCA2BB18CD92230087CE3A /* PBXTargetDependency */,
@ -7503,6 +7918,11 @@
buildRules = (
);
dependencies = (
B2C59ADC19779D5400B452DF /* PBXTargetDependency */,
B2C59ADE19779D5400B452DF /* PBXTargetDependency */,
B2C59AE019779D5400B452DF /* PBXTargetDependency */,
B2C59AE219779D5400B452DF /* PBXTargetDependency */,
B2C59AE419779D5400B452DF /* PBXTargetDependency */,
1ABCA2F818CD93850087CE3A /* PBXTargetDependency */,
1ABCA2FA18CD93850087CE3A /* PBXTargetDependency */,
1ABCA2FC18CD93850087CE3A /* PBXTargetDependency */,
@ -7521,10 +7941,16 @@
1D60588D0D05DD3D006BFB54 /* Resources */,
1D60588E0D05DD3D006BFB54 /* Sources */,
1D60588F0D05DD3D006BFB54 /* Frameworks */,
B24024DC1978EBFE00FDE433 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
B244F3111976878700ED1926 /* PBXTargetDependency */,
B2DB49361976819900411E16 /* PBXTargetDependency */,
B2DB48C519767DA500411E16 /* PBXTargetDependency */,
B2DB480519766E3C00411E16 /* PBXTargetDependency */,
B2DB4794197668CA00411E16 /* PBXTargetDependency */,
1AAF5342180E2F41000584C8 /* PBXTargetDependency */,
1AAF5344180E2F41000584C8 /* PBXTargetDependency */,
1AAF5346180E2F41000584C8 /* PBXTargetDependency */,
@ -7568,6 +7994,11 @@
buildRules = (
);
dependencies = (
B2C59ABE197782AC00B452DF /* PBXTargetDependency */,
B2C59AC0197782AC00B452DF /* PBXTargetDependency */,
B2C59AC2197782AC00B452DF /* PBXTargetDependency */,
B2CC507A19776D830041958E /* PBXTargetDependency */,
B2CC5044197766EB0041958E /* PBXTargetDependency */,
1AAF53F5180E39C6000584C8 /* PBXTargetDependency */,
1AAF53F7180E39C6000584C8 /* PBXTargetDependency */,
1AAF53F9180E39C6000584C8 /* PBXTargetDependency */,
@ -7644,10 +8075,10 @@
remoteRef = 1ABCA27F18CD90A50087CE3A /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
46A15FB01807A4F9005B8026 /* libcocos2dx Mac.a */ = {
46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocos2dx Mac.a";
path = "libcocos2dx Mac.dylib";
remoteRef = 46A15FAF1807A4F9005B8026 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
@ -7714,6 +8145,76 @@
remoteRef = 46A15FC51807A4F9005B8026 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B244F3161976878700ED1926 /* libcocosNetwork Mac.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosNetwork Mac.a";
remoteRef = B244F3151976878700ED1926 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2CC5039197763A20041958E /* libcocosGUI iOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosGUI iOS.a";
remoteRef = B2CC5038197763A20041958E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2CC503B197763A20041958E /* libcocosStudio iOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosStudio iOS.a";
remoteRef = B2CC503A197763A20041958E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2CC503D197763A20041958E /* libcocosBuilder iOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosBuilder iOS.a";
remoteRef = B2CC503C197763A20041958E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2CC503F197763A20041958E /* libcocosSpine iOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosSpine iOS.a";
remoteRef = B2CC503E197763A20041958E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2CC5041197763A20041958E /* libcocosNetwork iOS.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosNetwork iOS.a";
remoteRef = B2CC5040197763A20041958E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosGUI Mac.a";
remoteRef = B2DB4798197668CA00411E16 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosBuilder Mac.a";
remoteRef = B2DB480719766E3C00411E16 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosStudio Mac.a";
remoteRef = B2DB48C119767D3600411E16 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
B2DB49391976819900411E16 /* libcocosSpine Mac.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libcocosSpine Mac.a";
remoteRef = B2DB49381976819900411E16 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
@ -8865,6 +9366,156 @@
target = A07A517F1783A1D20073F6A7 /* cpp-tests iOS */;
targetProxy = A07A526C1783AB980073F6A7 /* PBXContainerItemProxy */;
};
B244F3111976878700ED1926 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosNetwork Mac";
targetProxy = B244F3101976878700ED1926 /* PBXContainerItemProxy */;
};
B27AEE041976894C008BD575 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosNetwork Mac";
targetProxy = B27AEE031976894C008BD575 /* PBXContainerItemProxy */;
};
B27AEE0919768965008BD575 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosNetwork Mac";
targetProxy = B27AEE0819768965008BD575 /* PBXContainerItemProxy */;
};
B2C59ABE197782AC00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosGUI iOS";
targetProxy = B2C59ABD197782AC00B452DF /* PBXContainerItemProxy */;
};
B2C59AC0197782AC00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosStudio iOS";
targetProxy = B2C59ABF197782AC00B452DF /* PBXContainerItemProxy */;
};
B2C59AC2197782AC00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosBuilder iOS";
targetProxy = B2C59AC1197782AC00B452DF /* PBXContainerItemProxy */;
};
B2C59ACD19779CDF00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosGUI iOS";
targetProxy = B2C59ACC19779CDF00B452DF /* PBXContainerItemProxy */;
};
B2C59ACF19779CDF00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosStudio iOS";
targetProxy = B2C59ACE19779CDF00B452DF /* PBXContainerItemProxy */;
};
B2C59AD119779CDF00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosBuilder iOS";
targetProxy = B2C59AD019779CDF00B452DF /* PBXContainerItemProxy */;
};
B2C59AD319779CDF00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosSpine iOS";
targetProxy = B2C59AD219779CDF00B452DF /* PBXContainerItemProxy */;
};
B2C59AD519779CDF00B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosNetwork iOS";
targetProxy = B2C59AD419779CDF00B452DF /* PBXContainerItemProxy */;
};
B2C59ADC19779D5400B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosGUI iOS";
targetProxy = B2C59ADB19779D5400B452DF /* PBXContainerItemProxy */;
};
B2C59ADE19779D5400B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosStudio iOS";
targetProxy = B2C59ADD19779D5400B452DF /* PBXContainerItemProxy */;
};
B2C59AE019779D5400B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosBuilder iOS";
targetProxy = B2C59ADF19779D5400B452DF /* PBXContainerItemProxy */;
};
B2C59AE219779D5400B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosSpine iOS";
targetProxy = B2C59AE119779D5400B452DF /* PBXContainerItemProxy */;
};
B2C59AE419779D5400B452DF /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosNetwork iOS";
targetProxy = B2C59AE319779D5400B452DF /* PBXContainerItemProxy */;
};
B2CC5044197766EB0041958E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosNetwork iOS";
targetProxy = B2CC5043197766EB0041958E /* PBXContainerItemProxy */;
};
B2CC507A19776D830041958E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosSpine iOS";
targetProxy = B2CC507919776D830041958E /* PBXContainerItemProxy */;
};
B2DB4794197668CA00411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosGUI Mac";
targetProxy = B2DB4793197668CA00411E16 /* PBXContainerItemProxy */;
};
B2DB480519766E3C00411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosBuilder Mac";
targetProxy = B2DB480419766E3C00411E16 /* PBXContainerItemProxy */;
};
B2DB480B197670ED00411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosGUI Mac";
targetProxy = B2DB480A197670ED00411E16 /* PBXContainerItemProxy */;
};
B2DB480D197670ED00411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosBuilder Mac";
targetProxy = B2DB480C197670ED00411E16 /* PBXContainerItemProxy */;
};
B2DB48111976711200411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosGUI Mac";
targetProxy = B2DB48101976711200411E16 /* PBXContainerItemProxy */;
};
B2DB48131976711200411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosBuilder Mac";
targetProxy = B2DB48121976711200411E16 /* PBXContainerItemProxy */;
};
B2DB48BF19767D3600411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosStudio Mac";
targetProxy = B2DB48BE19767D3600411E16 /* PBXContainerItemProxy */;
};
B2DB48C519767DA500411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosStudio Mac";
targetProxy = B2DB48C419767DA500411E16 /* PBXContainerItemProxy */;
};
B2DB48C819767EAF00411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosStudio Mac";
targetProxy = B2DB48C719767EAF00411E16 /* PBXContainerItemProxy */;
};
B2DB49361976819900411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosSpine Mac";
targetProxy = B2DB49351976819900411E16 /* PBXContainerItemProxy */;
};
B2DB493F1976825800411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosSpine Mac";
targetProxy = B2DB493E1976825800411E16 /* PBXContainerItemProxy */;
};
B2DB49421976826900411E16 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = "cocosSpine Mac";
targetProxy = B2DB49411976826900411E16 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
@ -8998,6 +9649,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/cpp-empty-test/proj.mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/mac $(SRCROOT)/../external/glfw3/include/mac";
};
name = Debug;
@ -9012,6 +9664,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/cpp-empty-test/proj.mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/mac $(SRCROOT)/../external/glfw3/include/mac";
VALIDATE_PRODUCT = YES;
};
@ -9026,6 +9679,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/lua-empty-test/project/proj.mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
OTHER_LDFLAGS = (
"-pagezero_size",
10000,
@ -9045,6 +9699,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/lua-empty-test/project/proj.mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
OTHER_LDFLAGS = (
"-pagezero_size",
10000,
@ -9131,6 +9786,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/lua-tests/project/proj.ios_mac/mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
OTHER_LDFLAGS = (
"-pagezero_size",
10000,
@ -9150,6 +9806,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/lua-tests/project/proj.ios_mac/mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
OTHER_LDFLAGS = (
"-pagezero_size",
10000,
@ -9203,6 +9860,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/cpp-tests/proj.mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/mac $(SRCROOT)/../external/glfw3/include/mac";
};
name = Debug;
@ -9216,6 +9874,7 @@
CC_TARGET_OS_MAC,
);
INFOPLIST_FILE = "$(SRCROOT)/../tests/cpp-tests/proj.mac/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/mac $(SRCROOT)/../external/glfw3/include/mac";
VALIDATE_PRODUCT = YES;
};

View File

@ -53,11 +53,19 @@ public:
*/
virtual std::string description() const;
/** returns a clone of action */
virtual Action* clone() const = 0;
/** returns a clone of action */
virtual Action* clone() const
{
CC_ASSERT(0);
return nullptr;
}
/** returns a new action that performs the exactly the reverse action */
virtual Action* reverse() const = 0;
virtual Action* reverse() const
{
CC_ASSERT(0);
return nullptr;
}
//! return true if the action has finished
virtual bool isDone() const;
@ -137,12 +145,20 @@ public:
//
// Overrides
//
virtual FiniteTimeAction* reverse() const override = 0;
virtual FiniteTimeAction* clone() const override = 0;
virtual FiniteTimeAction* reverse() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual FiniteTimeAction* clone() const override
{
CC_ASSERT(0);
return nullptr;
}
protected:
FiniteTimeAction()
: _duration(0)
: _duration(0)
{}
virtual ~FiniteTimeAction(){}
@ -180,7 +196,7 @@ public:
//
// Override
//
virtual Speed* clone() const override;
virtual Speed* clone() const override;
virtual Speed* reverse() const override;
virtual void startWithTarget(Node* target) override;
virtual void stop() override;
@ -231,8 +247,8 @@ public:
//
// Override
//
virtual Follow* clone() const override;
virtual Follow* reverse() const override;
virtual Follow* clone() const override;
virtual Follow* reverse() const override;
virtual void step(float dt) override;
virtual bool isDone() const override;
virtual void stop() override;
@ -285,7 +301,7 @@ protected:
float _rightBoundary;
float _topBoundary;
float _bottomBoundary;
Rect _worldRect;
Rect _worldRect;
private:
CC_DISALLOW_COPY_AND_ASSIGN(Follow);

View File

@ -49,8 +49,18 @@ public:
//
// Overrides
//
virtual ActionEase* clone() const override = 0;
virtual ActionEase* reverse() const override = 0;
virtual ActionEase* clone() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual ActionEase* reverse() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual void startWithTarget(Node *target) override;
virtual void stop() override;
virtual void update(float time) override;
@ -83,8 +93,16 @@ public:
//
// Overrides
//
virtual EaseRateAction* clone() const override = 0;
virtual EaseRateAction* reverse() const override = 0;
virtual EaseRateAction* clone() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual EaseRateAction* reverse() const override
{
CC_ASSERT(0);
return nullptr;
}
CC_CONSTRUCTOR_ACCESS:
EaseRateAction() {}
@ -111,8 +129,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseIn* clone() const override;
virtual EaseIn* reverse() const override;
virtual EaseIn* clone() const override;
virtual EaseIn* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseIn() {}
@ -134,8 +152,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseOut* clone() const override;
virtual EaseOut* reverse() const override;
virtual EaseOut* clone() const override;
virtual EaseOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseOut() {}
@ -157,8 +175,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseInOut* clone() const override;
virtual EaseInOut* reverse() const override;
virtual EaseInOut* clone() const override;
virtual EaseInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseInOut() {}
@ -180,8 +198,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseExponentialIn* clone() const override;
virtual ActionEase* reverse() const override;
virtual EaseExponentialIn* clone() const override;
virtual ActionEase* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseExponentialIn() {}
@ -203,8 +221,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseExponentialOut* clone() const override;
virtual ActionEase* reverse() const override;
virtual EaseExponentialOut* clone() const override;
virtual ActionEase* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseExponentialOut() {}
@ -226,8 +244,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseExponentialInOut* clone() const override;
virtual EaseExponentialInOut* reverse() const override;
virtual EaseExponentialInOut* clone() const override;
virtual EaseExponentialInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseExponentialInOut() {}
@ -249,8 +267,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseSineIn* clone() const override;
virtual ActionEase* reverse() const override;
virtual EaseSineIn* clone() const override;
virtual ActionEase* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseSineIn() {}
@ -272,8 +290,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseSineOut* clone() const override;
virtual ActionEase* reverse() const override;
virtual EaseSineOut* clone() const override;
virtual ActionEase* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseSineOut() {}
@ -295,8 +313,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseSineInOut* clone() const override;
virtual EaseSineInOut* reverse() const override;
virtual EaseSineInOut* clone() const override;
virtual EaseSineInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseSineInOut() {}
@ -323,8 +341,17 @@ public:
//
// Overrides
//
virtual EaseElastic* clone() const override = 0;
virtual EaseElastic* reverse() const override = 0;
virtual EaseElastic* clone() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual EaseElastic* reverse() const override
{
CC_ASSERT(0);
return nullptr;
}
CC_CONSTRUCTOR_ACCESS:
EaseElastic() {}
@ -355,8 +382,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseElasticIn* clone() const override;
virtual EaseElastic* reverse() const override;
virtual EaseElasticIn* clone() const override;
virtual EaseElastic* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseElasticIn() {}
@ -381,8 +408,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseElasticOut* clone() const override;
virtual EaseElastic* reverse() const override;
virtual EaseElasticOut* clone() const override;
virtual EaseElastic* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseElasticOut() {}
@ -407,8 +434,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseElasticInOut* clone() const override;
virtual EaseElasticInOut* reverse() const override;
virtual EaseElasticInOut* clone() const override;
virtual EaseElasticInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseElasticInOut() {}
@ -428,8 +455,17 @@ class CC_DLL EaseBounce : public ActionEase
public:
// Overrides
virtual EaseBounce* clone() const override = 0;
virtual EaseBounce* reverse() const override = 0;
virtual EaseBounce* clone() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual EaseBounce* reverse() const override
{
CC_ASSERT(0);
return nullptr;
}
CC_CONSTRUCTOR_ACCESS:
EaseBounce() {}
@ -453,8 +489,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseBounceIn* clone() const override;
virtual EaseBounce* reverse() const override;
virtual EaseBounceIn* clone() const override;
virtual EaseBounce* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseBounceIn() {}
@ -478,8 +514,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseBounceOut* clone() const override;
virtual EaseBounce* reverse() const override;
virtual EaseBounceOut* clone() const override;
virtual EaseBounce* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseBounceOut() {}
@ -503,8 +539,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseBounceInOut* clone() const override;
virtual EaseBounceInOut* reverse() const override;
virtual EaseBounceInOut* clone() const override;
virtual EaseBounceInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseBounceInOut() {}
@ -528,8 +564,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseBackIn* clone() const override;
virtual ActionEase* reverse() const override;
virtual EaseBackIn* clone() const override;
virtual ActionEase* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseBackIn() {}
@ -553,8 +589,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseBackOut* clone() const override;
virtual ActionEase* reverse() const override;
virtual EaseBackOut* clone() const override;
virtual ActionEase* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseBackOut() {}
@ -578,8 +614,8 @@ public:
// Overrides
virtual void update(float time) override;
virtual EaseBackInOut* clone() const override;
virtual EaseBackInOut* reverse() const override;
virtual EaseBackInOut* clone() const override;
virtual EaseBackInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseBackInOut() {}
@ -594,52 +630,52 @@ private:
@brief Ease Bezier
@ingroup Actions
*/
class EaseBezierAction : public cocos2d::ActionEase
class CC_DLL EaseBezierAction : public ActionEase
{
public:
/** creates the action */
static EaseBezierAction* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseBezierAction* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseBezierAction* clone() const override;
virtual EaseBezierAction* reverse() const override;
virtual void update(float time) override;
virtual EaseBezierAction* clone() const override;
virtual EaseBezierAction* reverse() const override;
virtual void setBezierParamer( float p0, float p1, float p2, float p3);
virtual void setBezierParamer( float p0, float p1, float p2, float p3);
CC_CONSTRUCTOR_ACCESS:
EaseBezierAction() {}
virtual ~EaseBezierAction() {}
EaseBezierAction() {}
virtual ~EaseBezierAction() {}
protected:
float _p0;
float _p1;
float _p2;
float _p3;
float _p0;
float _p1;
float _p2;
float _p3;
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseBezierAction);
CC_DISALLOW_COPY_AND_ASSIGN(EaseBezierAction);
};
/**
@brief Ease Quadratic In
@ingroup Actions
*/
class EaseQuadraticActionIn:public cocos2d::ActionEase
class CC_DLL EaseQuadraticActionIn : public ActionEase
{
public:
/** creates the action */
static EaseQuadraticActionIn* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuadraticActionIn* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuadraticActionIn* clone() const override;
virtual EaseQuadraticActionIn* reverse() const override;
virtual void update(float time) override;
virtual EaseQuadraticActionIn* clone() const override;
virtual EaseQuadraticActionIn* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuadraticActionIn() {}
virtual ~EaseQuadraticActionIn() {}
EaseQuadraticActionIn() {}
virtual ~EaseQuadraticActionIn() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuadraticActionIn);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuadraticActionIn);
};
@ -647,22 +683,22 @@ private:
@brief Ease Quadratic Out
@ingroup Actions
*/
class EaseQuadraticActionOut:public cocos2d::ActionEase
class CC_DLL EaseQuadraticActionOut : public ActionEase
{
public:
/** creates the action */
static EaseQuadraticActionOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuadraticActionOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuadraticActionOut* clone() const override;
virtual EaseQuadraticActionOut* reverse() const override;
virtual void update(float time) override;
virtual EaseQuadraticActionOut* clone() const override;
virtual EaseQuadraticActionOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuadraticActionOut() {}
virtual ~EaseQuadraticActionOut() {}
EaseQuadraticActionOut() {}
virtual ~EaseQuadraticActionOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuadraticActionOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuadraticActionOut);
};
@ -670,88 +706,88 @@ private:
@brief Ease Quadratic InOut
@ingroup Actions
*/
class EaseQuadraticActionInOut:public cocos2d::ActionEase
class CC_DLL EaseQuadraticActionInOut : public ActionEase
{
public:
/** creates the action */
static EaseQuadraticActionInOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuadraticActionInOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuadraticActionInOut* clone() const override;
virtual EaseQuadraticActionInOut* reverse() const override;
virtual void update(float time) override;
virtual EaseQuadraticActionInOut* clone() const override;
virtual EaseQuadraticActionInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuadraticActionInOut() {}
virtual ~EaseQuadraticActionInOut() {}
EaseQuadraticActionInOut() {}
virtual ~EaseQuadraticActionInOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuadraticActionInOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuadraticActionInOut);
};
/**
@brief Ease Quartic In
@ingroup Actions
*/
class EaseQuarticActionIn:public cocos2d::ActionEase
class CC_DLL EaseQuarticActionIn : public ActionEase
{
public:
/** creates the action */
static EaseQuarticActionIn* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuarticActionIn* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuarticActionIn* clone() const override;
virtual EaseQuarticActionIn* reverse() const override;
virtual void update(float time) override;
virtual EaseQuarticActionIn* clone() const override;
virtual EaseQuarticActionIn* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuarticActionIn() {}
virtual ~EaseQuarticActionIn() {}
EaseQuarticActionIn() {}
virtual ~EaseQuarticActionIn() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuarticActionIn);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuarticActionIn);
};
/**
@brief Ease Quartic Out
@ingroup Actions
*/
class EaseQuarticActionOut:public cocos2d::ActionEase
class CC_DLL EaseQuarticActionOut : public ActionEase
{
public:
/** creates the action */
static EaseQuarticActionOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuarticActionOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuarticActionOut* clone() const override;
virtual EaseQuarticActionOut* reverse() const override;
virtual void update(float time) override;
virtual EaseQuarticActionOut* clone() const override;
virtual EaseQuarticActionOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuarticActionOut() {}
virtual ~EaseQuarticActionOut() {}
EaseQuarticActionOut() {}
virtual ~EaseQuarticActionOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuarticActionOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuarticActionOut);
};
/**
@brief Ease Quartic InOut
@ingroup Actions
*/
class EaseQuarticActionInOut:public cocos2d::ActionEase
class CC_DLL EaseQuarticActionInOut : public ActionEase
{
public:
/** creates the action */
static EaseQuarticActionInOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuarticActionInOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuarticActionInOut* clone() const override;
virtual EaseQuarticActionInOut* reverse() const override;
virtual void update(float time) override;
virtual EaseQuarticActionInOut* clone() const override;
virtual EaseQuarticActionInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuarticActionInOut() {}
virtual ~EaseQuarticActionInOut() {}
EaseQuarticActionInOut() {}
virtual ~EaseQuarticActionInOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuarticActionInOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuarticActionInOut);
};
@ -759,198 +795,198 @@ private:
@brief Ease Quintic In
@ingroup Actions
*/
class EaseQuinticActionIn:public cocos2d::ActionEase
class CC_DLL EaseQuinticActionIn : public ActionEase
{
public:
/** creates the action */
static EaseQuinticActionIn* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuinticActionIn* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuinticActionIn* clone() const override;
virtual EaseQuinticActionIn* reverse() const override;
virtual void update(float time) override;
virtual EaseQuinticActionIn* clone() const override;
virtual EaseQuinticActionIn* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuinticActionIn() {}
virtual ~EaseQuinticActionIn() {}
EaseQuinticActionIn() {}
virtual ~EaseQuinticActionIn() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuinticActionIn);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuinticActionIn);
};
/**
@brief Ease Quintic Out
@ingroup Actions
*/
class EaseQuinticActionOut:public cocos2d::ActionEase
class CC_DLL EaseQuinticActionOut : public ActionEase
{
public:
/** creates the action */
static EaseQuinticActionOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuinticActionOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuinticActionOut* clone() const override;
virtual EaseQuinticActionOut* reverse() const override;
virtual void update(float time) override;
virtual EaseQuinticActionOut* clone() const override;
virtual EaseQuinticActionOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuinticActionOut() {}
virtual ~EaseQuinticActionOut() {}
EaseQuinticActionOut() {}
virtual ~EaseQuinticActionOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuinticActionOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuinticActionOut);
};
/**
@brief Ease Quintic InOut
@ingroup Actions
*/
class EaseQuinticActionInOut:public cocos2d::ActionEase
class CC_DLL EaseQuinticActionInOut : public ActionEase
{
public:
/** creates the action */
static EaseQuinticActionInOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseQuinticActionInOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseQuinticActionInOut* clone() const override;
virtual EaseQuinticActionInOut* reverse() const override;
virtual void update(float time) override;
virtual EaseQuinticActionInOut* clone() const override;
virtual EaseQuinticActionInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseQuinticActionInOut() {}
virtual ~EaseQuinticActionInOut() {}
EaseQuinticActionInOut() {}
virtual ~EaseQuinticActionInOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuinticActionInOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseQuinticActionInOut);
};
/**
@brief Ease Circle In
@ingroup Actions
*/
class EaseCircleActionIn:public cocos2d::ActionEase
class CC_DLL EaseCircleActionIn : public ActionEase
{
public:
/** creates the action */
static EaseCircleActionIn* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseCircleActionIn* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseCircleActionIn* clone() const override;
virtual EaseCircleActionIn* reverse() const override;
virtual void update(float time) override;
virtual EaseCircleActionIn* clone() const override;
virtual EaseCircleActionIn* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseCircleActionIn() {}
virtual ~EaseCircleActionIn() {}
EaseCircleActionIn() {}
virtual ~EaseCircleActionIn() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseCircleActionIn);
CC_DISALLOW_COPY_AND_ASSIGN(EaseCircleActionIn);
};
/**
@brief Ease Circle Out
@ingroup Actions
*/
class EaseCircleActionOut:public cocos2d::ActionEase
class CC_DLL EaseCircleActionOut : public ActionEase
{
public:
/** creates the action */
static EaseCircleActionOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseCircleActionOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseCircleActionOut* clone() const override;
virtual EaseCircleActionOut* reverse() const override;
virtual void update(float time) override;
virtual EaseCircleActionOut* clone() const override;
virtual EaseCircleActionOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseCircleActionOut() {}
virtual ~EaseCircleActionOut() {}
EaseCircleActionOut() {}
virtual ~EaseCircleActionOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseCircleActionOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseCircleActionOut);
};
/**
@brief Ease Circle InOut
@ingroup Actions
*/
class EaseCircleActionInOut:public cocos2d::ActionEase
class CC_DLL EaseCircleActionInOut:public ActionEase
{
public:
/** creates the action */
static EaseCircleActionInOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseCircleActionInOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseCircleActionInOut* clone() const override;
virtual EaseCircleActionInOut* reverse() const override;
virtual void update(float time) override;
virtual EaseCircleActionInOut* clone() const override;
virtual EaseCircleActionInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseCircleActionInOut() {}
virtual ~EaseCircleActionInOut() {}
EaseCircleActionInOut() {}
virtual ~EaseCircleActionInOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseCircleActionInOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseCircleActionInOut);
};
/**
@brief Ease Cubic In
@ingroup Actions
*/
class EaseCubicActionIn:public cocos2d::ActionEase
class CC_DLL EaseCubicActionIn:public ActionEase
{
public:
/** creates the action */
static EaseCubicActionIn* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseCubicActionIn* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseCubicActionIn* clone() const override;
virtual EaseCubicActionIn* reverse() const override;
virtual void update(float time) override;
virtual EaseCubicActionIn* clone() const override;
virtual EaseCubicActionIn* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseCubicActionIn() {}
virtual ~EaseCubicActionIn() {}
EaseCubicActionIn() {}
virtual ~EaseCubicActionIn() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseCubicActionIn);
CC_DISALLOW_COPY_AND_ASSIGN(EaseCubicActionIn);
};
/**
@brief Ease Cubic Out
@ingroup Actions
*/
class EaseCubicActionOut:public cocos2d::ActionEase
class CC_DLL EaseCubicActionOut : public ActionEase
{
public:
/** creates the action */
static EaseCubicActionOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseCubicActionOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseCubicActionOut* clone() const override;
virtual EaseCubicActionOut* reverse() const override;
virtual void update(float time) override;
virtual EaseCubicActionOut* clone() const override;
virtual EaseCubicActionOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseCubicActionOut() {}
virtual ~EaseCubicActionOut() {}
EaseCubicActionOut() {}
virtual ~EaseCubicActionOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseCubicActionOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseCubicActionOut);
};
/**
@brief Ease Cubic InOut
@ingroup Actions
*/
class EaseCubicActionInOut:public cocos2d::ActionEase
class CC_DLL EaseCubicActionInOut : public ActionEase
{
public:
/** creates the action */
static EaseCubicActionInOut* create(cocos2d::ActionInterval* action);
/** creates the action */
static EaseCubicActionInOut* create(ActionInterval* action);
virtual void update(float time) override;
virtual EaseCubicActionInOut* clone() const override;
virtual EaseCubicActionInOut* reverse() const override;
virtual void update(float time) override;
virtual EaseCubicActionInOut* clone() const override;
virtual EaseCubicActionInOut* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
EaseCubicActionInOut() {}
virtual ~EaseCubicActionInOut() {}
EaseCubicActionInOut() {}
virtual ~EaseCubicActionInOut() {}
private:
CC_DISALLOW_COPY_AND_ASSIGN(EaseCubicActionInOut);
CC_DISALLOW_COPY_AND_ASSIGN(EaseCubicActionInOut);
};
// end of actions group

View File

@ -48,7 +48,11 @@ public:
virtual GridBase* getGrid();
// overrides
virtual GridAction * clone() const override = 0;
virtual GridAction * clone() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual GridAction* reverse() const override;
virtual void startWithTarget(Node *target) override;
@ -109,7 +113,11 @@ public:
void setVertex(const Vec2& position, const Vec3& vertex);
// Overrides
virtual Grid3DAction * clone() const override = 0;
virtual Grid3DAction * clone() const override
{
CC_ASSERT(0);
return nullptr;
}
};
/** @brief Base class for TiledGrid3D actions */
@ -156,7 +164,11 @@ public:
virtual GridBase* getGrid();
// Override
virtual TiledGrid3DAction * clone() const override = 0;
virtual TiledGrid3DAction * clone() const override
{
CC_ASSERT(0);
return nullptr;
}
};
/** @brief AccelDeccelAmplitude action */
@ -174,8 +186,8 @@ public:
// Overrides
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
virtual AccelDeccelAmplitude* clone() const override;
virtual AccelDeccelAmplitude* reverse() const override;
virtual AccelDeccelAmplitude* clone() const override;
virtual AccelDeccelAmplitude* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
AccelDeccelAmplitude() {}
@ -207,8 +219,8 @@ public:
// Overrides
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
virtual AccelAmplitude* clone() const override;
virtual AccelAmplitude* reverse() const override;
virtual AccelAmplitude* clone() const override;
virtual AccelAmplitude* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
AccelAmplitude() {}
@ -239,8 +251,8 @@ public:
// overrides
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
virtual DeccelAmplitude* clone() const override;
virtual DeccelAmplitude* reverse() const override;
virtual DeccelAmplitude* clone() const override;
virtual DeccelAmplitude* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
DeccelAmplitude() {}
@ -270,8 +282,8 @@ public:
// Overrides
virtual void startWithTarget(Node *target) override;
virtual StopGrid* clone() const override;
virtual StopGrid* reverse() const override;
virtual StopGrid* clone() const override;
virtual StopGrid* reverse() const override;
protected:
StopGrid() {}
@ -294,8 +306,8 @@ public:
// Override
virtual void startWithTarget(Node *target) override;
virtual ReuseGrid* clone() const override;
virtual ReuseGrid* reverse() const override;
virtual ReuseGrid* clone() const override;
virtual ReuseGrid* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
ReuseGrid() {}

View File

@ -51,8 +51,18 @@ public:
//
// Overrides
//
virtual ActionInstant* clone() const override = 0;
virtual ActionInstant * reverse() const override = 0;
virtual ActionInstant* clone() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual ActionInstant * reverse() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual bool isDone() const override;
virtual void step(float dt) override;
virtual void update(float time) override;
@ -72,7 +82,7 @@ public:
//
virtual void update(float time) override;
virtual ActionInstant* reverse() const override;
virtual Show* clone() const override;
virtual Show* clone() const override;
protected:
Show(){}
@ -95,8 +105,8 @@ public:
// Overrides
//
virtual void update(float time) override;
virtual ActionInstant* reverse() const override;
virtual Hide* clone() const override;
virtual ActionInstant* reverse() const override;
virtual Hide* clone() const override;
protected:
Hide(){}
@ -118,8 +128,8 @@ public:
// Overrides
//
virtual void update(float time) override;
virtual ToggleVisibility* reverse() const override;
virtual ToggleVisibility* clone() const override;
virtual ToggleVisibility* reverse() const override;
virtual ToggleVisibility* clone() const override;
protected:
ToggleVisibility(){}
@ -135,25 +145,25 @@ private:
class CC_DLL RemoveSelf : public ActionInstant
{
public:
/** create the action */
static RemoveSelf * create(bool isNeedCleanUp = true);
/** create the action */
static RemoveSelf * create(bool isNeedCleanUp = true);
//
//
// Override
//
virtual void update(float time) override;
virtual RemoveSelf* clone() const override;
virtual RemoveSelf* reverse() const override;
virtual void update(float time) override;
virtual RemoveSelf* clone() const override;
virtual RemoveSelf* reverse() const override;
CC_CONSTRUCTOR_ACCESS:
RemoveSelf() : _isNeedCleanUp(true){}
virtual ~RemoveSelf(){}
/** init the action */
bool init(bool isNeedCleanUp);
/** init the action */
bool init(bool isNeedCleanUp);
protected:
bool _isNeedCleanUp;
bool _isNeedCleanUp;
private:
CC_DISALLOW_COPY_AND_ASSIGN(RemoveSelf);
@ -173,8 +183,8 @@ public:
// Overrides
//
virtual void update(float time) override;
virtual FlipX* reverse() const override;
virtual FlipX* clone() const override;
virtual FlipX* reverse() const override;
virtual FlipX* clone() const override;
CC_CONSTRUCTOR_ACCESS:
FlipX() :_flipX(false) {}
@ -204,8 +214,8 @@ public:
// Overrides
//
virtual void update(float time) override;
virtual FlipY* reverse() const override;
virtual FlipY* clone() const override;
virtual FlipY* reverse() const override;
virtual FlipY* clone() const override;
CC_CONSTRUCTOR_ACCESS:
FlipY() :_flipY(false) {}
@ -234,8 +244,8 @@ public:
// Overrides
//
virtual void update(float time) override;
virtual Place* reverse() const override;
virtual Place* clone() const override;
virtual Place* reverse() const override;
virtual Place* clone() const override;
CC_CONSTRUCTOR_ACCESS:
Place(){}
@ -257,18 +267,18 @@ private:
class CC_DLL CallFunc : public ActionInstant //<NSCopying>
{
public:
/** creates the action with the callback of type std::function<void()>.
This is the preferred way to create the callback.
/** creates the action with the callback of type std::function<void()>.
This is the preferred way to create the callback.
* When this funtion bound in js or lua ,the input param will be changed
* In js: var create(var func, var this, var [data]) or var create(var func)
* In lua:local create(local funcID)
*/
*/
static CallFunc * create(const std::function<void()>& func);
/** creates the action with the callback
typedef void (Ref::*SEL_CallFunc)();
@deprecated Use the std::function API instead.
@deprecated Use the std::function API instead.
* @js NA
* @lua NA
*/
@ -296,8 +306,8 @@ public:
// Overrides
//
virtual void update(float time) override;
virtual CallFunc* reverse() const override;
virtual CallFunc* clone() const override;
virtual CallFunc* reverse() const override;
virtual CallFunc* clone() const override;
CC_CONSTRUCTOR_ACCESS:
CallFunc()
@ -308,16 +318,16 @@ CC_CONSTRUCTOR_ACCESS:
}
virtual ~CallFunc();
/** initializes the action with the callback
/** initializes the action with the callback
typedef void (Ref::*SEL_CallFunc)();
@deprecated Use the std::function API instead.
*/
CC_DEPRECATED_ATTRIBUTE bool initWithTarget(Ref* target);
/** initializes the action with the std::function<void()>
/** initializes the action with the std::function<void()>
* @js NA
* @lua NA
*/
*/
bool initWithFunction(const std::function<void()>& func);
protected:
@ -331,7 +341,7 @@ protected:
};
/** function that will be called */
std::function<void()> _function;
std::function<void()> _function;
private:
CC_DISALLOW_COPY_AND_ASSIGN(CallFunc);
@ -345,8 +355,8 @@ class CC_DLL CallFuncN : public CallFunc
{
public:
/** creates the action with the callback of type std::function<void()>.
This is the preferred way to create the callback.
*/
This is the preferred way to create the callback.
*/
static CallFuncN * create(const std::function<void(Node*)>& func);
/** creates the action with the callback
@ -359,7 +369,7 @@ public:
//
// Overrides
//
virtual CallFuncN* clone() const override;
virtual CallFuncN* clone() const override;
virtual void execute() override;
CC_CONSTRUCTOR_ACCESS:
@ -399,7 +409,7 @@ public:
//
// Overrides
//
virtual __CCCallFuncND* clone() const override;
virtual __CCCallFuncND* clone() const override;
virtual void execute() override;
protected:
@ -435,7 +445,7 @@ public:
//
// Overrides
//
virtual __CCCallFuncO* clone() const override;
virtual __CCCallFuncO* clone() const override;
virtual void execute() override;
Ref* getObject() const;

View File

@ -77,8 +77,17 @@ public:
virtual bool isDone(void) const override;
virtual void step(float dt) override;
virtual void startWithTarget(Node *target) override;
virtual ActionInterval* reverse() const override = 0;
virtual ActionInterval *clone() const override = 0;
virtual ActionInterval* reverse() const override
{
CC_ASSERT(0);
return nullptr;
}
virtual ActionInterval *clone() const override
{
CC_ASSERT(0);
return nullptr;
}
CC_CONSTRUCTOR_ACCESS:
/** initializes the action */
@ -132,7 +141,7 @@ public:
// Overrides
//
virtual Sequence* clone() const override;
virtual Sequence* reverse() const override;
virtual Sequence* reverse() const override;
virtual void startWithTarget(Node *target) override;
virtual void stop(void) override;
virtual void update(float t) override;
@ -181,7 +190,7 @@ public:
// Overrides
//
virtual Repeat* clone() const override;
virtual Repeat* reverse() const override;
virtual Repeat* reverse() const override;
virtual void startWithTarget(Node *target) override;
virtual void stop(void) override;
virtual void update(float dt) override;
@ -235,7 +244,7 @@ public:
// Overrides
//
virtual RepeatForever* clone() const override;
virtual RepeatForever* reverse(void) const override;
virtual RepeatForever* reverse(void) const override;
virtual void startWithTarget(Node* target) override;
virtual void step(float dt) override;
virtual bool isDone(void) const override;
@ -302,7 +311,7 @@ public:
// Overrides
//
virtual Spawn* clone() const override;
virtual Spawn* reverse(void) const override;
virtual Spawn* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void stop(void) override;
virtual void update(float time) override;
@ -379,7 +388,7 @@ public:
// Override
//
virtual RotateBy* clone() const override;
virtual RotateBy* reverse(void) const override;
virtual RotateBy* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -423,7 +432,7 @@ public:
// Overrides
//
virtual MoveBy* clone() const override;
virtual MoveBy* reverse(void) const override;
virtual MoveBy* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -487,7 +496,7 @@ public:
// Overrides
//
virtual SkewTo* clone() const override;
virtual SkewTo* reverse(void) const override;
virtual SkewTo* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -525,7 +534,7 @@ public:
//
virtual void startWithTarget(Node *target) override;
virtual SkewBy* clone() const override;
virtual SkewBy* reverse(void) const override;
virtual SkewBy* reverse(void) const override;
CC_CONSTRUCTOR_ACCESS:
SkewBy() {}
@ -549,7 +558,7 @@ public:
// Overrides
//
virtual JumpBy* clone() const override;
virtual JumpBy* reverse(void) const override;
virtual JumpBy* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -584,7 +593,7 @@ public:
//
virtual void startWithTarget(Node *target) override;
virtual JumpTo* clone() const override;
virtual JumpTo* reverse(void) const override;
virtual JumpTo* reverse(void) const override;
CC_CONSTRUCTOR_ACCESS:
JumpTo() {}
@ -623,7 +632,7 @@ public:
// Overrides
//
virtual BezierBy* clone() const override;
virtual BezierBy* reverse(void) const override;
virtual BezierBy* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -663,7 +672,7 @@ public:
//
virtual void startWithTarget(Node *target) override;
virtual BezierTo* clone() const override;
virtual BezierTo* reverse(void) const override;
virtual BezierTo* reverse(void) const override;
CC_CONSTRUCTOR_ACCESS:
BezierTo() {}
@ -698,7 +707,7 @@ public:
// Overrides
//
virtual ScaleTo* clone() const override;
virtual ScaleTo* reverse(void) const override;
virtual ScaleTo* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -751,7 +760,7 @@ public:
//
virtual void startWithTarget(Node *target) override;
virtual ScaleBy* clone() const override;
virtual ScaleBy* reverse(void) const override;
virtual ScaleBy* reverse(void) const override;
CC_CONSTRUCTOR_ACCESS:
ScaleBy() {}
@ -773,7 +782,7 @@ public:
// Overrides
//
virtual Blink* clone() const override;
virtual Blink* reverse() const override;
virtual Blink* reverse() const override;
virtual void update(float time) override;
virtual void startWithTarget(Node *target) override;
virtual void stop() override;
@ -807,7 +816,7 @@ public:
// Overrides
//
virtual FadeTo* clone() const override;
virtual FadeTo* reverse(void) const override;
virtual FadeTo* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -841,7 +850,7 @@ public:
//
virtual void startWithTarget(Node *target) override;
virtual FadeIn* clone() const override;
virtual FadeTo* reverse(void) const override;
virtual FadeTo* reverse(void) const override;
void setReverseAction(FadeTo* ac);
@ -868,7 +877,7 @@ public:
//
virtual void startWithTarget(Node *target) override;
virtual FadeOut* clone() const override;
virtual FadeTo* reverse(void) const override;
virtual FadeTo* reverse(void) const override;
void setReverseAction(FadeTo* ac);
@ -893,7 +902,7 @@ public:
// Overrides
//
virtual TintTo* clone() const override;
virtual TintTo* reverse(void) const override;
virtual TintTo* reverse(void) const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -925,7 +934,7 @@ public:
// Overrides
//
virtual TintBy* clone() const override;
virtual TintBy* reverse() const override;
virtual TintBy* reverse() const override;
virtual void startWithTarget(Node *target) override;
virtual void update(float time) override;
@ -988,7 +997,7 @@ public:
//
// Overrides
//
virtual ReverseTime* reverse() const override;
virtual ReverseTime* reverse() const override;
virtual ReverseTime* clone() const override;
virtual void startWithTarget(Node *target) override;
virtual void stop(void) override;

View File

@ -30,6 +30,7 @@ THE SOFTWARE.
#include "base/CCRef.h"
#include "base/CCMap.h"
#include "base/CCValue.h"
#include "2d/CCAnimation.h"
#include <string>

View File

@ -89,12 +89,33 @@ bool ComponentContainer::remove(const std::string& name)
com->setOwner(nullptr);
_components->erase(iter);
ret = true;
} while(0);
return ret;
}
bool ComponentContainer::remove(Component *com)
{
bool ret = false;
do
{
CC_BREAK_IF(!_components);
for (auto iter = _components->begin(); iter != _components->end(); ++iter)
{
if (iter->second == com)
{
com->onExit();
com->setOwner(nullptr);
_components->erase(iter);
break;
}
}
ret = true;
} while(0);
return ret;
}
void ComponentContainer::removeAll()
{
if (_components != nullptr)

View File

@ -50,6 +50,7 @@ public:
virtual Component* get(const std::string& name) const;
virtual bool add(Component *com);
virtual bool remove(const std::string& name);
virtual bool remove(Component *com);
virtual void removeAll();
virtual void visit(float delta);
public:

View File

@ -79,85 +79,85 @@ class PointArray;
namespace DrawPrimitives
{
/** Initializes the drawing primitives */
void init();
void CC_DLL init();
/** Frees allocated resources by the drawing primitives */
void free();
void CC_DLL free();
/** draws a point given x and y coordinate measured in points */
void drawPoint(const Vec2& point);
void CC_DLL drawPoint(const Vec2& point);
/** draws an array of points.
@since v0.7.2
*/
void drawPoints(const Vec2 *points, unsigned int numberOfPoints);
void CC_DLL drawPoints(const Vec2 *points, unsigned int numberOfPoints);
/** draws a line given the origin and destination point measured in points */
void drawLine(const Vec2& origin, const Vec2& destination);
void CC_DLL drawLine(const Vec2& origin, const Vec2& destination);
/** draws a rectangle given the origin and destination point measured in points. */
void drawRect(Vec2 origin, Vec2 destination);
void CC_DLL drawRect(Vec2 origin, Vec2 destination);
/** draws a solid rectangle given the origin and destination point measured in points.
@since 1.1
*/
void drawSolidRect(Vec2 origin, Vec2 destination, Color4F color);
void CC_DLL drawSolidRect(Vec2 origin, Vec2 destination, Color4F color);
/** draws a polygon given a pointer to point coordinates and the number of vertices measured in points.
The polygon can be closed or open
*/
void drawPoly(const Vec2 *vertices, unsigned int numOfVertices, bool closePolygon);
void CC_DLL drawPoly(const Vec2 *vertices, unsigned int numOfVertices, bool closePolygon);
/** draws a solid polygon given a pointer to CGPoint coordinates, the number of vertices measured in points, and a color.
*/
void drawSolidPoly(const Vec2 *poli, unsigned int numberOfPoints, Color4F color);
void CC_DLL drawSolidPoly(const Vec2 *poli, unsigned int numberOfPoints, Color4F color);
/** draws a circle given the center, radius and number of segments. */
void drawCircle(const Vec2& center, float radius, float angle, unsigned int segments, bool drawLineToCenter, float scaleX, float scaleY);
void drawCircle(const Vec2& center, float radius, float angle, unsigned int segments, bool drawLineToCenter);
void CC_DLL drawCircle(const Vec2& center, float radius, float angle, unsigned int segments, bool drawLineToCenter, float scaleX, float scaleY);
void CC_DLL drawCircle(const Vec2& center, float radius, float angle, unsigned int segments, bool drawLineToCenter);
/** draws a solid circle given the center, radius and number of segments. */
void drawSolidCircle(const Vec2& center, float radius, float angle, unsigned int segments, float scaleX, float scaleY);
void drawSolidCircle(const Vec2& center, float radius, float angle, unsigned int segments);
void CC_DLL drawSolidCircle(const Vec2& center, float radius, float angle, unsigned int segments, float scaleX, float scaleY);
void CC_DLL drawSolidCircle(const Vec2& center, float radius, float angle, unsigned int segments);
/** draws a quad bezier path
@warning This function could be pretty slow. Use it only for debugging purposes.
@since v0.8
*/
void drawQuadBezier(const Vec2& origin, const Vec2& control, const Vec2& destination, unsigned int segments);
void CC_DLL drawQuadBezier(const Vec2& origin, const Vec2& control, const Vec2& destination, unsigned int segments);
/** draws a cubic bezier path
@warning This function could be pretty slow. Use it only for debugging purposes.
@since v0.8
*/
void drawCubicBezier(const Vec2& origin, const Vec2& control1, const Vec2& control2, const Vec2& destination, unsigned int segments);
void CC_DLL drawCubicBezier(const Vec2& origin, const Vec2& control1, const Vec2& control2, const Vec2& destination, unsigned int segments);
/** draws a Catmull Rom path.
@warning This function could be pretty slow. Use it only for debugging purposes.
@since v2.0
*/
void drawCatmullRom(PointArray *arrayOfControlPoints, unsigned int segments);
void CC_DLL drawCatmullRom(PointArray *arrayOfControlPoints, unsigned int segments);
/** draws a Cardinal Spline path.
@warning This function could be pretty slow. Use it only for debugging purposes.
@since v2.0
*/
void drawCardinalSpline(PointArray *config, float tension, unsigned int segments);
void CC_DLL drawCardinalSpline(PointArray *config, float tension, unsigned int segments);
/** set the drawing color with 4 unsigned bytes
@since v2.0
*/
void setDrawColor4B(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
void CC_DLL setDrawColor4B(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
/** set the drawing color with 4 floats
@since v2.0
*/
void setDrawColor4F(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
void CC_DLL setDrawColor4F(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
/** set the point size in points. Default 1.
@since v2.0
*/
void setPointSize(GLfloat pointSize);
void CC_DLL setPointSize(GLfloat pointSize);
};

View File

@ -178,7 +178,10 @@ FontAtlas * FontAtlasCache::getFontAtlasCharMap(Texture2D* texture, int itemWidt
FontAtlas * FontAtlasCache::getFontAtlasCharMap(const std::string& charMapFile, int itemWidth, int itemHeight, int startCharMap)
{
std::string atlasName = generateFontName(charMapFile, 0, GlyphCollection::CUSTOM,false);
char tmp[255];
snprintf(tmp,250,"name:%s_%d_%d_%d",charMapFile.c_str(),itemWidth,itemHeight,startCharMap);
std::string atlasName = generateFontName(tmp, 0, GlyphCollection::CUSTOM,false);
auto it = _atlasMap.find(atlasName);
if ( it == _atlasMap.end() )

View File

@ -173,9 +173,9 @@ CC_CONSTRUCTOR_ACCESS:
protected:
//add the api for avoid use deprecated api
void _addTouchListener();
CC_DEPRECATED_ATTRIBUTE void _addTouchListener() {}
CC_DEPRECATED_ATTRIBUTE void addTouchListener() { _addTouchListener();};
CC_DEPRECATED_ATTRIBUTE void addTouchListener() {}
CC_DEPRECATED_ATTRIBUTE int executeScriptTouchHandler(EventTouch::EventCode eventType, Touch* touch, Event* event);
CC_DEPRECATED_ATTRIBUTE int executeScriptTouchesHandler(EventTouch::EventCode eventType, const std::vector<Touch*>& touches, Event* event);

View File

@ -1850,6 +1850,11 @@ bool Node::removeComponent(const std::string& name)
return false;
}
bool Node::removeComponent(Component *component)
{
return _componentContainer->remove(component);
}
void Node::removeAllComponents()
{
if( _componentContainer )

View File

@ -71,7 +71,7 @@ enum {
kNodeOnCleanup
};
bool nodeComparisonLess(Node* n1, Node* n2);
bool CC_DLL nodeComparisonLess(Node* n1, Node* n2);
class EventListener;
@ -1433,6 +1433,10 @@ public:
*/
virtual bool removeComponent(const std::string& name);
/**
* removes a component by its pointer
*/
virtual bool removeComponent(Component *component);
/**
* removes all components
*/

View File

@ -33,7 +33,7 @@ NS_CC_BEGIN
class GridBase;
class NodeGrid : public Node
class CC_DLL NodeGrid : public Node
{
public:
static NodeGrid* create();

View File

@ -84,63 +84,63 @@ namespace tweenfunc {
//tween functions for CCActionEase
float easeIn(float time, float rate);
float easeOut(float time, float rate);
float easeInOut(float time, float rate);
float CC_DLL easeIn(float time, float rate);
float CC_DLL easeOut(float time, float rate);
float CC_DLL easeInOut(float time, float rate);
float bezieratFunction( float a, float b, float c, float d, float t );
float CC_DLL bezieratFunction( float a, float b, float c, float d, float t );
float quadraticIn(float time);
float quadraticOut(float time);
float quadraticInOut(float time);
float CC_DLL quadraticIn(float time);
float CC_DLL quadraticOut(float time);
float CC_DLL quadraticInOut(float time);
float tweenTo(float time, TweenType type, float *easingParam);
float CC_DLL tweenTo(float time, TweenType type, float *easingParam);
float linear(float time);
float CC_DLL linear(float time);
float sineEaseIn(float time);
float sineEaseOut(float time);
float sineEaseInOut(float time);
float CC_DLL sineEaseIn(float time);
float CC_DLL sineEaseOut(float time);
float CC_DLL sineEaseInOut(float time);
float quadEaseIn(float time);
float quadEaseOut(float time);
float quadEaseInOut(float time);
float CC_DLL quadEaseIn(float time);
float CC_DLL quadEaseOut(float time);
float CC_DLL quadEaseInOut(float time);
float cubicEaseIn(float time);
float cubicEaseOut(float time);
float cubicEaseInOut(float time);
float CC_DLL cubicEaseIn(float time);
float CC_DLL cubicEaseOut(float time);
float CC_DLL cubicEaseInOut(float time);
float quartEaseIn(float time);
float quartEaseOut(float time);
float quartEaseInOut(float time);
float CC_DLL quartEaseIn(float time);
float CC_DLL quartEaseOut(float time);
float CC_DLL quartEaseInOut(float time);
float quintEaseIn(float time);
float quintEaseOut(float time);
float quintEaseInOut(float time);
float CC_DLL quintEaseIn(float time);
float CC_DLL quintEaseOut(float time);
float CC_DLL quintEaseInOut(float time);
float expoEaseIn(float time);
float expoEaseOut(float time);
float expoEaseInOut(float time);
float CC_DLL expoEaseIn(float time);
float CC_DLL expoEaseOut(float time);
float CC_DLL expoEaseInOut(float time);
float circEaseIn(float time);
float circEaseOut(float time);
float circEaseInOut(float time);
float CC_DLL circEaseIn(float time);
float CC_DLL circEaseOut(float time);
float CC_DLL circEaseInOut(float time);
float elasticEaseIn(float time, float period);
float elasticEaseOut(float time, float period);
float elasticEaseInOut(float time, float period);
float CC_DLL elasticEaseIn(float time, float period);
float CC_DLL elasticEaseOut(float time, float period);
float CC_DLL elasticEaseInOut(float time, float period);
float backEaseIn(float time);
float backEaseOut(float time);
float backEaseInOut(float time);
float CC_DLL backEaseIn(float time);
float CC_DLL backEaseOut(float time);
float CC_DLL backEaseInOut(float time);
float bounceEaseIn(float time);
float bounceEaseOut(float time);
float bounceEaseInOut(float time);
float CC_DLL bounceEaseIn(float time);
float CC_DLL bounceEaseOut(float time);
float CC_DLL bounceEaseInOut(float time);
float customEase(float time, float *easingParam);
float CC_DLL customEase(float time, float *easingParam);
}
NS_CC_END

2
cocos/2d/cocos2d.def Normal file
View File

@ -0,0 +1,2 @@
LIBRARY

View File

@ -18,7 +18,7 @@
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '10.0'">v100</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
@ -27,7 +27,7 @@
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v120_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '10.0'">v100</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
@ -65,10 +65,10 @@
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LibraryPath>$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)</LibraryPath>
<LibraryPath>../../external/sqlite3/libraries/win32;$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LibraryPath>$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)</LibraryPath>
<LibraryPath>../../external/sqlite3/libraries/win32;$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
@ -78,7 +78,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(EngineRoot)external\sqlite3\include;$(EngineRoot)external\unzip;$(EngineRoot)external\edtaa3func;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\png\include\win32;$(EngineRoot)external\jpeg\include\win32;$(EngineRoot)external\tiff\include\win32;$(EngineRoot)external\webp\include\win32;$(EngineRoot)external\freetype2\include\win32;$(EngineRoot)external\win32-specific\icon\include;$(EngineRoot)external\win32-specific\zlib\include;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\xxhash;$(EngineRoot)external\ConvertUTF;$(EngineRoot)external;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_USRDLL;_DEBUG;_WINDOWS;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>false</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
@ -112,8 +112,10 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
<IgnoreSpecificDefaultLibraries> ;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<TargetMachine>MachineX86</TargetMachine>
<ModuleDefinitionFile>cocos2d.def</ModuleDefinitionFile>
<AdditionalDependencies>libchipmunk.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>
@ -127,7 +129,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
</PreBuildEvent>
<ClCompile>
<AdditionalIncludeDirectories>$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(EngineRoot)external\sqlite3\include;$(EngineRoot)external\unzip;$(EngineRoot)external\edtaa3func;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\png\include\win32;$(EngineRoot)external\jpeg\include\win32;$(EngineRoot)external\tiff\include\win32;$(EngineRoot)external\webp\include\win32;$(EngineRoot)external\freetype2\include\win32;$(EngineRoot)external\win32-specific\icon\include;$(EngineRoot)external\win32-specific\zlib\include;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\xxhash;$(EngineRoot)external\ConvertUTF;$(EngineRoot)external;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_USRDLL;NDEBUG;_WINDOWS;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@ -155,7 +157,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
</Command>
</PreLinkEvent>
<Link>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>libchipmunk.lib;sqlite3.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<IgnoreSpecificDefaultLibraries> ;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
@ -163,8 +165,9 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<TargetMachine>MachineX86</TargetMachine>
<ModuleDefinitionFile>cocos2d.def</ModuleDefinitionFile>
</Link>
<PostBuildEvent>
<Command>
@ -226,6 +229,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
<ClCompile Include="..\base\ccUtils.cpp" />
<ClCompile Include="..\base\CCValue.cpp" />
<ClCompile Include="..\base\etc1.cpp" />
<ClCompile Include="..\base\pvr.cpp" />
<ClCompile Include="..\base\ObjectFactory.cpp" />
<ClCompile Include="..\base\s3tc.cpp" />
<ClCompile Include="..\base\TGAlib.cpp" />
@ -284,6 +288,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
<ClCompile Include="..\renderer\CCTexture2D.cpp" />
<ClCompile Include="..\renderer\CCTextureAtlas.cpp" />
<ClCompile Include="..\renderer\CCTextureCache.cpp" />
<ClCompile Include="..\storage\local-storage\LocalStorage.cpp" />
<ClCompile Include="CCAction.cpp" />
<ClCompile Include="CCActionCamera.cpp" />
<ClCompile Include="CCActionCatmullRom.cpp" />
@ -418,6 +423,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
<ClInclude Include="..\base\etc1.h" />
<ClInclude Include="..\base\firePngData.h" />
<ClInclude Include="..\base\ObjectFactory.h" />
<ClInclude Include="..\base\pvr.h" />
<ClInclude Include="..\base\s3tc.h" />
<ClInclude Include="..\base\TGAlib.h" />
<ClInclude Include="..\base\uthash.h" />
@ -489,6 +495,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
<ClInclude Include="..\renderer\CCTexture2D.h" />
<ClInclude Include="..\renderer\CCTextureAtlas.h" />
<ClInclude Include="..\renderer\CCTextureCache.h" />
<ClInclude Include="..\storage\local-storage\LocalStorage.h" />
<ClInclude Include="CCAction.h" />
<ClInclude Include="CCActionCamera.h" />
<ClInclude Include="CCActionCatmullRom.h" />
@ -564,6 +571,12 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
<None Include="..\math\Vec2.inl" />
<None Include="..\math\Vec3.inl" />
<None Include="..\math\Vec4.inl" />
<None Include="cocos2d.def" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\external\chipmunk\proj.win32\chipmunk.vcxproj">
<Project>{207bc7a9-ccf1-4f2f-a04d-45f72242ae25}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">

View File

@ -55,6 +55,9 @@
<Filter Include="3d">
<UniqueIdentifier>{a20c4bdc-bd4c-40c1-a78a-fe31cd3ec76a}</UniqueIdentifier>
</Filter>
<Filter Include="storage">
<UniqueIdentifier>{44bdf58f-4af2-433c-b4af-58dc05ef96b5}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\physics\CCPhysicsBody.cpp">
@ -403,9 +406,6 @@
<ClCompile Include="..\base\CCUserDefault.cpp">
<Filter>base</Filter>
</ClCompile>
<ClCompile Include="..\base\CCUserDefaultAndroid.cpp">
<Filter>base</Filter>
</ClCompile>
<ClCompile Include="..\base\ccUTF8.cpp">
<Filter>base</Filter>
</ClCompile>
@ -418,6 +418,9 @@
<ClCompile Include="..\base\etc1.cpp">
<Filter>base</Filter>
</ClCompile>
<ClCompile Include="..\base\pvr.cpp">
<Filter>platform</Filter>
</ClCompile>
<ClCompile Include="..\base\s3tc.cpp">
<Filter>base</Filter>
</ClCompile>
@ -589,6 +592,9 @@
<ClCompile Include="CCFastTMXTiledMap.cpp">
<Filter>2d</Filter>
</ClCompile>
<ClCompile Include="..\storage\local-storage\LocalStorage.cpp">
<Filter>storage</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\physics\CCPhysicsBody.h">
@ -988,6 +994,9 @@
<ClInclude Include="..\base\etc1.h">
<Filter>base</Filter>
</ClInclude>
<ClInclude Include="..\base\pvr.h">
<Filter>platform</Filter>
</ClInclude>
<ClInclude Include="..\base\firePngData.h">
<Filter>base</Filter>
</ClInclude>
@ -1198,6 +1207,9 @@
<ClInclude Include="CCFastTMXLayer.h">
<Filter>2d</Filter>
</ClInclude>
<ClInclude Include="..\storage\local-storage\LocalStorage.h">
<Filter>storage</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\math\Mat4.inl">
@ -1224,5 +1236,6 @@
<None Include="..\3d\CCAnimationCurve.inl">
<Filter>3d</Filter>
</None>
<None Include="cocos2d.def" />
</ItemGroup>
</Project>

View File

@ -42,7 +42,7 @@ class Bone3D;
/**
* Animate3D, Animates a Sprite3D given with an Animation3D
*/
class Animate3D: public ActionInterval
class CC_DLL Animate3D: public ActionInterval
{
public:

View File

@ -39,7 +39,7 @@ NS_CC_BEGIN
/**
* static animation data, shared
*/
class Animation3D: public Ref
class CC_DLL Animation3D: public Ref
{
friend class Bundle3D;
public:

View File

@ -87,7 +87,7 @@ public:
/**
* Returns the position of the file pointer.
*/
long int tell();
ssize_t tell();
/**
* Sets the position of the file pointer.

View File

@ -40,7 +40,7 @@ NS_CC_BEGIN
class EventListenerCustom;
class EventCustom;
class RenderMeshData
class CC_DLL RenderMeshData
{
friend class Mesh;
public:
@ -66,7 +66,7 @@ protected:
* Mesh: Geometry with a collection of vertex.
* Supporting various vertex formats.
*/
class Mesh : public Ref
class CC_DLL Mesh : public Ref
{
public:
/** Defines supported index formats. */

View File

@ -41,7 +41,7 @@ class Texture2D;
class MeshSkin;
/** Sprite3D: A sprite can be loaded from 3D model files, .obj, .c3t, .c3b, then can be drawed as sprite */
class Sprite3D : public Node, public BlendProtocol
class CC_DLL Sprite3D : public Node, public BlendProtocol
{
public:
/** creates a Sprite3D*/
@ -94,7 +94,7 @@ protected:
BlendFunc _blend;
};
extern std::string s_attributeNames[];//attribute names array
extern std::string CC_DLL s_attributeNames[];//attribute names array
NS_CC_END
#endif // __SPRITE3D_H_

View File

@ -140,6 +140,7 @@ base/ccTypes.cpp \
base/ccUTF8.cpp \
base/ccUtils.cpp \
base/etc1.cpp \
base/pvr.cpp \
base/s3tc.cpp \
base/CCController.cpp \
base/CCController-android.cpp \

View File

@ -30,11 +30,11 @@ THE SOFTWARE.
#define EXPORT_DLL _EXPORT_
#elif defined(_WIN32)
#if defined(_EXPORT_DLL_)
#define EXPORT_DLL// __declspec(dllexport)
#define EXPORT_DLL __declspec(dllexport)
#elif defined(IGNORE_EXPORT)
#define EXPORT_DLL
#else /* use a DLL library */
#define EXPORT_DLL// __declspec(dllimport)
#define EXPORT_DLL __declspec(dllimport)
#endif
#else
#if defined(_SHARED_)

View File

@ -18,7 +18,7 @@
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '10.0'">v100</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
@ -27,7 +27,7 @@
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v120_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '10.0'">v100</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
@ -74,7 +74,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_EXPORT_DLL_;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>false</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
@ -90,7 +90,7 @@
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories>
</Link>
@ -98,7 +98,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_EXPORT_DLL_;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@ -116,7 +116,7 @@
<SubSystem>Windows</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
<ImportLibrary>$(OutDir)$(TargetName).lib</ImportLibrary>
<TargetMachine>MachineX86</TargetMachine>
<AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories>
</Link>

View File

@ -36,6 +36,7 @@ THE SOFTWARE.
#include "base/CCVector.h"
#include "CCGL.h"
#include "2d/CCLabelAtlas.h"
#include "2d/CCScene.h"
#include <stack>
#include "math/CCMath.h"

View File

@ -39,7 +39,7 @@ class Node;
/**
* Base class of all kinds of events.
*/
class Event : public Ref
class CC_DLL Event : public Ref
{
public:
enum class Type

View File

@ -30,7 +30,7 @@
NS_CC_BEGIN
class EventAcceleration : public Event
class CC_DLL EventAcceleration : public Event
{
public:
EventAcceleration(const Acceleration& acc);

View File

@ -29,7 +29,7 @@
NS_CC_BEGIN
class EventCustom : public Event
class CC_DLL EventCustom : public Event
{
public:
/** Constructor */

View File

@ -53,7 +53,7 @@ event listeners can be added and removed even
from within an EventListener, while events are being
dispatched.
*/
class EventDispatcher : public Ref
class CC_DLL EventDispatcher : public Ref
{
public:
// Adds event listener

View File

@ -35,7 +35,7 @@ namespace ui {
class Widget;
}
class EventFocus : public Event
class CC_DLL EventFocus : public Event
{
public:
EventFocus(ui::Widget* widgetLoseFocus, ui::Widget* widgetGetFocus);

View File

@ -30,7 +30,7 @@
NS_CC_BEGIN
class EventKeyboard : public Event
class CC_DLL EventKeyboard : public Event
{
public:
/**

View File

@ -43,7 +43,7 @@ class Node;
* If you need custom listener which with different callback, you need to inherit this class.
* For instance, you could refer to EventListenerAcceleration, EventListenerKeyboard, EventListenerTouchOneByOne, EventListenerCustom.
*/
class EventListener : public Ref
class CC_DLL EventListener : public Ref
{
public:
enum class Type

View File

@ -30,7 +30,7 @@
NS_CC_BEGIN
class EventListenerAcceleration : public EventListener
class CC_DLL EventListenerAcceleration : public EventListener
{
public:
static const std::string LISTENER_ID;

View File

@ -49,7 +49,7 @@ class EventCustom;
*
* dispatcher->removeEventListener(listener);
*/
class EventListenerCustom : public EventListener
class CC_DLL EventListenerCustom : public EventListener
{
public:
/** Creates an event listener with type and callback.

View File

@ -35,7 +35,7 @@ namespace ui {
class Widget;
}
class EventListenerFocus : public EventListener
class CC_DLL EventListenerFocus : public EventListener
{
public:
static const std::string LISTENER_ID;

View File

@ -33,7 +33,7 @@ NS_CC_BEGIN
class Event;
class EventListenerKeyboard : public EventListener
class CC_DLL EventListenerKeyboard : public EventListener
{
public:
static const std::string LISTENER_ID;

View File

@ -33,7 +33,7 @@ NS_CC_BEGIN
class Event;
class EventListenerMouse : public EventListener
class CC_DLL EventListenerMouse : public EventListener
{
public:
static const std::string LISTENER_ID;

View File

@ -33,7 +33,7 @@
NS_CC_BEGIN
class EventListenerTouchOneByOne : public EventListener
class CC_DLL EventListenerTouchOneByOne : public EventListener
{
public:
static const std::string LISTENER_ID;
@ -67,7 +67,7 @@ private:
};
class EventListenerTouchAllAtOnce : public EventListener
class CC_DLL EventListenerTouchAllAtOnce : public EventListener
{
public:
static const std::string LISTENER_ID;

View File

@ -39,7 +39,7 @@
NS_CC_BEGIN
class EventMouse : public Event
class CC_DLL EventMouse : public Event
{
public:
/**

View File

@ -33,7 +33,7 @@ NS_CC_BEGIN
#define TOUCH_PERF_DEBUG 1
class EventTouch : public Event
class CC_DLL EventTouch : public Event
{
public:
static const int MAX_TOUCHES = 5;

View File

@ -30,7 +30,7 @@ THE SOFTWARE.
#include "math/CCGeometry.h"
NS_CC_BEGIN
extern const std::string STD_STRING_EMPTY;
extern const std::string CC_DLL STD_STRING_EMPTY;
/**
* @addtogroup input

View File

@ -45,7 +45,7 @@ NS_CC_BEGIN
*/
template <class K, class V>
class CC_DLL Map
class Map
{
public:
// ------------------------------------------

View File

@ -143,9 +143,9 @@ public:
long numberOfCalls;
};
extern void ProfilingBeginTimingBlock(const char *timerName);
extern void ProfilingEndTimingBlock(const char *timerName);
extern void ProfilingResetTimingBlock(const char *timerName);
extern void CC_DLL ProfilingBeginTimingBlock(const char *timerName);
extern void CC_DLL ProfilingEndTimingBlock(const char *timerName);
extern void CC_DLL ProfilingResetTimingBlock(const char *timerName);
/*
* cocos2d profiling categories

View File

@ -43,7 +43,7 @@ extern const ValueVector ValueVectorNull;
extern const ValueMap ValueMapNull;
extern const ValueMapIntKey ValueMapIntKeyNull;
class Value
class CC_DLL Value
{
public:
static const Value Null;

View File

@ -35,7 +35,7 @@ THE SOFTWARE.
NS_CC_BEGIN
template<class T>
class CC_DLL Vector
class Vector
{
public:
// ------------------------------------------

View File

@ -40,6 +40,7 @@ set(COCOS_BASE_SRC
base/ccUTF8.cpp
base/ccUtils.cpp
base/etc1.cpp
base/pvr.cpp
base/s3tc.cpp
base/ObjectFactory.cpp
)

View File

@ -32,11 +32,11 @@ THE SOFTWARE.
NS_CC_BEGIN
class ObjectFactory
class CC_DLL ObjectFactory
{
public:
typedef cocos2d::Ref* (*Instance)(void);
struct TInfo
struct CC_DLL TInfo
{
TInfo(void);
TInfo(const std::string& type, Instance ins = NULL);

View File

@ -68,7 +68,7 @@ int _base64Decode(const unsigned char *input, unsigned int input_len, unsigned c
switch (char_count) {
case 1:
#if (CC_TARGET_PLATFORM != CC_PLATFORM_BADA)
std::fprintf(stderr, "base64Decode: encoding incomplete: at least 2 bits missing");
fprintf(stderr, "base64Decode: encoding incomplete: at least 2 bits missing");
#endif
errors++;
break;
@ -83,7 +83,7 @@ int _base64Decode(const unsigned char *input, unsigned int input_len, unsigned c
} else if ( input_idx < input_len ) {
if (char_count) {
#if (CC_TARGET_PLATFORM != CC_PLATFORM_BADA)
std::fprintf(stderr, "base64 encoding incomplete: at least %d bits truncated",
fprintf(stderr, "base64 encoding incomplete: at least %d bits truncated",
((4 - char_count) * 6));
#endif
errors++;

View File

@ -26,6 +26,8 @@ THE SOFTWARE.
#ifndef __SUPPORT_BASE64_H__
#define __SUPPORT_BASE64_H__
#include "base/CCPlatformMacros.h"
#ifdef __cplusplus
extern "C" {
#endif
@ -44,7 +46,7 @@ namespace cocos2d {
*
@since v0.8.1
*/
int base64Decode(const unsigned char *in, unsigned int inLength, unsigned char **out);
int CC_DLL base64Decode(const unsigned char *in, unsigned int inLength, unsigned char **out);
/**
* Encodes bytes into a 64base encoded memory with terminating '\0' character.
@ -54,7 +56,7 @@ int base64Decode(const unsigned char *in, unsigned int inLength, unsigned char *
*
@since v2.1.4
*/
int base64Encode(const unsigned char *in, unsigned int inLength, char **out);
int CC_DLL base64Encode(const unsigned char *in, unsigned int inLength, char **out);
}//namespace cocos2d

View File

@ -283,5 +283,5 @@ To enable set it to a value different than 0. Disabled by default.
#ifndef CC_CONSTRUCTOR_ACCESS
#define CC_CONSTRUCTOR_ACCESS protected
#endif
#endif // __CCCONFIG_H__

View File

@ -43,7 +43,7 @@ struct Color4F;
/** RGB color composed of bytes 3 bytes
@since v3.0
*/
struct Color3B
struct CC_DLL Color3B
{
Color3B();
Color3B(GLubyte _r, GLubyte _g, GLubyte _b);
@ -80,7 +80,7 @@ struct Color3B
/** RGBA color composed of 4 bytes
@since v3.0
*/
struct Color4B
struct CC_DLL Color4B
{
Color4B();
Color4B(GLubyte _r, GLubyte _g, GLubyte _b, GLubyte _a);
@ -114,7 +114,7 @@ struct Color4B
/** RGBA color composed of 4 floats
@since v3.0
*/
struct Color4F
struct CC_DLL Color4F
{
Color4F();
Color4F(float _r, float _g, float _b, float _a);
@ -184,7 +184,7 @@ struct Color4F
/** A texcoord composed of 2 floats: u, y
@since v3.0
*/
struct Tex2F {
struct CC_DLL Tex2F {
Tex2F(float _u, float _v): u(_u), v(_v) {}
Tex2F(): u(0.f), v(0.f) {}
@ -195,7 +195,7 @@ struct Tex2F {
//! Vec2 Sprite component
struct PointSprite
struct CC_DLL PointSprite
{
Vec2 pos; // 8 bytes
Color4B color; // 4 bytes
@ -203,7 +203,7 @@ struct PointSprite
};
//! A 2D Quad. 4 * 2 floats
struct Quad2
struct CC_DLL Quad2
{
Vec2 tl;
Vec2 tr;
@ -213,7 +213,7 @@ struct Quad2
//! A 3D Quad. 4 * 3 floats
struct Quad3 {
struct CC_DLL Quad3 {
Vec3 bl;
Vec3 br;
Vec3 tl;
@ -232,7 +232,7 @@ struct V2F_C4B_T2F
};
//! a Vec2 with a vertex point, a tex coord point and a color 4F
struct V2F_C4F_T2F
struct CC_DLL V2F_C4F_T2F
{
//! vertices (2F)
Vec2 vertices;
@ -243,7 +243,7 @@ struct V2F_C4F_T2F
};
//! a Vec2 with a vertex point, a tex coord point and a color 4B
struct V3F_C4B_T2F
struct CC_DLL V3F_C4B_T2F
{
//! vertices (3F)
Vec3 vertices; // 12 bytes
@ -256,7 +256,7 @@ struct V3F_C4B_T2F
};
//! a Vec2 with a vertex point, a tex coord point
struct V3F_T2F
struct CC_DLL V3F_T2F
{
//! vertices (2F)
Vec3 vertices;
@ -265,7 +265,7 @@ struct V3F_T2F
};
//! A Triangle of V2F_C4B_T2F
struct V2F_C4B_T2F_Triangle
struct CC_DLL V2F_C4B_T2F_Triangle
{
//! Vec2 A
V2F_C4B_T2F a;
@ -276,7 +276,7 @@ struct V2F_C4B_T2F_Triangle
};
//! A Quad of V2F_C4B_T2F
struct V2F_C4B_T2F_Quad
struct CC_DLL V2F_C4B_T2F_Quad
{
//! bottom left
V2F_C4B_T2F bl;
@ -289,7 +289,7 @@ struct V2F_C4B_T2F_Quad
};
//! 4 Vertex3FTex2FColor4B
struct V3F_C4B_T2F_Quad
struct CC_DLL V3F_C4B_T2F_Quad
{
//! top left
V3F_C4B_T2F tl;
@ -302,7 +302,7 @@ struct V3F_C4B_T2F_Quad
};
//! 4 Vertex2FTex2FColor4F Quad
struct V2F_C4F_T2F_Quad
struct CC_DLL V2F_C4F_T2F_Quad
{
//! bottom left
V2F_C4F_T2F bl;
@ -314,7 +314,7 @@ struct V2F_C4F_T2F_Quad
V2F_C4F_T2F tr;
};
struct V3F_T2F_Quad
struct CC_DLL V3F_T2F_Quad
{
//! bottom left
V3F_T2F bl;
@ -327,7 +327,7 @@ struct V3F_T2F_Quad
};
//! Blend Function used for textures
struct BlendFunc
struct CC_DLL BlendFunc
{
//! source blend function
GLenum src;
@ -359,7 +359,7 @@ struct BlendFunc
// XXX: If any of these enums are edited and/or reordered, update Texture2D.m
//! Vertical text alignment type
enum class TextVAlignment
enum class CC_DLL TextVAlignment
{
TOP,
CENTER,
@ -368,7 +368,7 @@ enum class TextVAlignment
// XXX: If any of these enums are edited and/or reordered, update Texture2D.m
//! Horizontal text alignment type
enum class TextHAlignment
enum class CC_DLL TextHAlignment
{
LEFT,
CENTER,
@ -378,7 +378,7 @@ enum class TextHAlignment
// types for animation in particle systems
// texture coordinates for a quad
struct T2F_Quad
struct CC_DLL T2F_Quad
{
//! bottom left
Tex2F bl;
@ -391,7 +391,7 @@ struct T2F_Quad
};
// struct that holds the size in pixels, texture coordinates and delays for animated ParticleSystemQuad
struct AnimationFrameData
struct CC_DLL AnimationFrameData
{
T2F_Quad texCoords;
float delay;
@ -404,7 +404,7 @@ struct AnimationFrameData
// shadow attributes
struct FontShadow
struct CC_DLL FontShadow
{
public:
@ -426,7 +426,7 @@ public:
};
// stroke attributes
struct FontStroke
struct CC_DLL FontStroke
{
public:
@ -447,7 +447,7 @@ public:
};
// font attributes
struct FontDefinition
struct CC_DLL FontDefinition
{
public:
/**
@ -484,7 +484,7 @@ public:
/**
@brief The device accelerometer reports values for each axis in units of g-force
*/
class Acceleration
class CC_DLL Acceleration
: public Ref
{
public:
@ -497,8 +497,8 @@ public:
Acceleration(): x(0), y(0), z(0), timestamp(0) {}
};
extern const std::string STD_STRING_EMPTY;
extern const ssize_t CC_INVALID_INDEX;
extern const std::string CC_DLL STD_STRING_EMPTY;
extern const ssize_t CC_DLL CC_INVALID_INDEX;
NS_CC_END

View File

@ -133,7 +133,7 @@ CC_DEPRECATED_ATTRIBUTE CC_DLL int cc_wcslen(const unsigned short* str);
* @deprecated Please use `StringUtils::trimUTF16Vector` instead
*/
CC_DEPRECATED_ATTRIBUTE void cc_utf8_trim_ws(std::vector<unsigned short>* str);
CC_DEPRECATED_ATTRIBUTE CC_DLL void cc_utf8_trim_ws(std::vector<unsigned short>* str);
/**
* Whether the character is a whitespace character.
@ -144,7 +144,7 @@ CC_DEPRECATED_ATTRIBUTE void cc_utf8_trim_ws(std::vector<unsigned short>* str);
*
* @see http://en.wikipedia.org/wiki/Whitespace_character#Unicode
* */
CC_DEPRECATED_ATTRIBUTE bool isspace_unicode(unsigned short ch);
CC_DEPRECATED_ATTRIBUTE CC_DLL bool isspace_unicode(unsigned short ch);
/**
* Whether the character is a Chinese/Japanese/Korean character.
@ -156,7 +156,7 @@ CC_DEPRECATED_ATTRIBUTE bool isspace_unicode(unsigned short ch);
* @see http://www.searchtb.com/2012/04/chinese_encode.html
* @see http://tieba.baidu.com/p/748765987
* */
CC_DEPRECATED_ATTRIBUTE bool iscjk_unicode(unsigned short ch);
CC_DEPRECATED_ATTRIBUTE CC_DLL bool iscjk_unicode(unsigned short ch);
/**
* Returns the length of the string in characters.
@ -166,7 +166,7 @@ CC_DEPRECATED_ATTRIBUTE bool iscjk_unicode(unsigned short ch);
* @deprecated Please use `StringUtils::getCharacterCountInUTF8String` instead
* @returns the length of the string in characters
**/
CC_DEPRECATED_ATTRIBUTE long cc_utf8_strlen (const char * p, int max = -1);
CC_DEPRECATED_ATTRIBUTE CC_DLL long cc_utf8_strlen (const char * p, int max = -1);
/**
* Find the last character that is not equal to the character given.
@ -176,13 +176,13 @@ CC_DEPRECATED_ATTRIBUTE long cc_utf8_strlen (const char * p, int max = -1);
* @deprecated Please use `StringUtils::getIndexOfLastNotChar16` instead
* @returns the index of the last character that is not \p c.
* */
CC_DEPRECATED_ATTRIBUTE unsigned int cc_utf8_find_last_not_char(const std::vector<unsigned short>& str, unsigned short c);
CC_DEPRECATED_ATTRIBUTE CC_DLL unsigned int cc_utf8_find_last_not_char(const std::vector<unsigned short>& str, unsigned short c);
/**
* @brief Gets `unsigned short` vector from a given utf16 string
* @deprecated Please use `StringUtils::getChar16VectorFromUTF16String` instead
*/
CC_DEPRECATED_ATTRIBUTE std::vector<unsigned short> cc_utf16_vec_from_utf16_str(const unsigned short* str);
CC_DEPRECATED_ATTRIBUTE CC_DLL std::vector<unsigned short> cc_utf16_vec_from_utf16_str(const unsigned short* str);
/**
* Creates an utf8 string from a c string. The result will be null terminated.
@ -194,7 +194,7 @@ CC_DEPRECATED_ATTRIBUTE std::vector<unsigned short> cc_utf16_vec_from_utf16_str(
* @returns the newly created utf16 string, it must be released with `delete[]`,
* If an error occurs, %NULL will be returned.
* */
CC_DEPRECATED_ATTRIBUTE unsigned short* cc_utf8_to_utf16(const char* str_old, int length = -1, int* rUtf16Size = nullptr);
CC_DEPRECATED_ATTRIBUTE CC_DLL unsigned short* cc_utf8_to_utf16(const char* str_old, int length = -1, int* rUtf16Size = nullptr);
/**
* Converts a string from UTF-16 to UTF-8. The result will be null terminated.
@ -207,7 +207,7 @@ CC_DEPRECATED_ATTRIBUTE unsigned short* cc_utf8_to_utf16(const char* str_old, in
* @returns a pointer to a newly allocated UTF-8 string. This value must be
* released with `delete[]`. If an error occurs, %NULL will be returned.
**/
CC_DEPRECATED_ATTRIBUTE char * cc_utf16_to_utf8 (const unsigned short *str,
CC_DEPRECATED_ATTRIBUTE CC_DLL char * cc_utf16_to_utf8 (const unsigned short *str,
int len = -1,
long *items_read = nullptr,
long *items_written = nullptr);

View File

@ -61,7 +61,7 @@ namespace utils
* base filename ("hello.png" etc.), don't use a relative path containing directory names.("mydir/hello.png" etc.)
* @since v3.2
*/
void captureScreen(const std::function<void(bool, const std::string&)>& afterCaptured, const std::string& filename);
void CC_DLL captureScreen(const std::function<void(bool, const std::string&)>& afterCaptured, const std::string& filename);
/** Find children by name, it will return all child that has the same name.
* It supports c++ 11 regular expression. It is a helper function of `Node::enumerateChildren()`.
@ -72,12 +72,12 @@ namespace utils
* @return Array of Nodes that matches the name
* @since v3.2
*/
std::vector<Node*> findChildren(const Node &node, const std::string &name);
std::vector<Node*> CC_DLL findChildren(const Node &node, const std::string &name);
/** Same to ::atof, but strip the string, remain 7 numbers after '.' before call atof。
* Why we need this? Because in android c++_static, atof ( and std::atof ) is unsupported for numbers have long decimal part and contain several numbers can approximate to 1 like 90.099998474121094 ), it will return inf. this function is used to fix this bug.
*/
double atof(const char* str);
double CC_DLL atof(const char* str);
}
NS_CC_END

713
cocos/base/pvr.cpp Normal file
View File

@ -0,0 +1,713 @@
/******************************************************************************
@File PVRTDecompress.cpp
@Title
@Copyright Copyright (C) 2000 - 2008 by Imagination Technologies Limited.
@Platform ANSI compatible
@Description PVRTC Texture Decompression.
******************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <math.h>
#include <string.h>
#include <assert.h>
#include <cstdint>
#include "pvr.h"
#define PVRT_MIN(a,b) (((a) < (b)) ? (a) : (b))
#define PVRT_MAX(a,b) (((a) > (b)) ? (a) : (b))
#define PVRT_CLAMP(x, l, h) (PVRT_MIN((h), PVRT_MAX((x), (l))))
/*****************************************************************************
* defines and consts
*****************************************************************************/
#define PT_INDEX (2) // The Punch-through index
#define BLK_Y_SIZE (4) // always 4 for all 2D block types
#define BLK_X_MAX (8) // Max X dimension for blocks
#define BLK_X_2BPP (8) // dimensions for the two formats
#define BLK_X_4BPP (4)
#define WRAP_COORD(Val, Size) ((Val) & ((Size)-1))
#define POWER_OF_2(X) util_number_is_power_2(X)
/*
Define an expression to either wrap or clamp large or small vals to the
legal coordinate range
*/
#define LIMIT_COORD(Val, Size, AssumeImageTiles) \
((AssumeImageTiles)? WRAP_COORD((Val), (Size)): PVRT_CLAMP((Val), 0, (Size)-1))
/*****************************************************************************
* Useful typedefs
*****************************************************************************/
typedef uint32_t U32;
typedef uint8_t U8;
/***********************************************************
DECOMPRESSION ROUTINES
************************************************************/
/*!***********************************************************************
@Struct AMTC_BLOCK_STRUCT
@Brief
*************************************************************************/
typedef struct
{
// Uses 64 bits pre block
U32 PackedData[2];
}AMTC_BLOCK_STRUCT;
static void PVRDecompress(AMTC_BLOCK_STRUCT *pCompressedData,
const bool Do2bitMode,
const int XDim,
const int YDim,
const int AssumeImageTiles,
unsigned char* pResultImage);
/*!***********************************************************************
@Function PVRTDecompressPVRTC
@Input pCompressedData The PVRTC texture data to decompress
@Input Do2bitMode Signifies whether the data is PVRTC2 or PVRTC4
@Input XDim X dimension of the texture
@Input YDim Y dimension of the texture
@Modified pResultImage The decompressed texture data
@Description Decompresses PVRTC to RGBA 8888
*************************************************************************/
int PVRTDecompressPVRTC(const void * const pCompressedData,const int XDim,const int YDim, void *pDestData,const bool Do2bitMode)
{
PVRDecompress((AMTC_BLOCK_STRUCT*)pCompressedData,Do2bitMode,XDim,YDim,1,(unsigned char*)pDestData);
return XDim*YDim/2;
}
/*!***********************************************************************
@Function util_number_is_power_2
@Input input A number
@Returns TRUE if the number is an integer power of two, else FALSE.
@Description Check that a number is an integer power of two, i.e.
1, 2, 4, 8, ... etc.
Returns FALSE for zero.
*************************************************************************/
int util_number_is_power_2( unsigned input )
{
unsigned minus1;
if( !input ) return 0;
minus1 = input - 1;
return ( (input | minus1) == (input ^ minus1) ) ? 1 : 0;
}
/*!***********************************************************************
@Function Unpack5554Colour
@Input pBlock
@Input ABColours
@Description Given a block, extract the colour information and convert
to 5554 formats
*************************************************************************/
static void Unpack5554Colour(const AMTC_BLOCK_STRUCT *pBlock,
int ABColours[2][4])
{
U32 RawBits[2];
int i;
// Extract A and B
RawBits[0] = pBlock->PackedData[1] & (0xFFFE); // 15 bits (shifted up by one)
RawBits[1] = pBlock->PackedData[1] >> 16; // 16 bits
// step through both colours
for(i = 0; i < 2; i++)
{
// If completely opaque
if(RawBits[i] & (1<<15))
{
// Extract R and G (both 5 bit)
ABColours[i][0] = (RawBits[i] >> 10) & 0x1F;
ABColours[i][1] = (RawBits[i] >> 5) & 0x1F;
/*
The precision of Blue depends on A or B. If A then we need to
replicate the top bit to get 5 bits in total
*/
ABColours[i][2] = RawBits[i] & 0x1F;
if(i==0)
{
ABColours[0][2] |= ABColours[0][2] >> 4;
}
// set 4bit alpha fully on...
ABColours[i][3] = 0xF;
}
else // Else if colour has variable translucency
{
/*
Extract R and G (both 4 bit).
(Leave a space on the end for the replication of bits
*/
ABColours[i][0] = (RawBits[i] >> (8-1)) & 0x1E;
ABColours[i][1] = (RawBits[i] >> (4-1)) & 0x1E;
// replicate bits to truly expand to 5 bits
ABColours[i][0] |= ABColours[i][0] >> 4;
ABColours[i][1] |= ABColours[i][1] >> 4;
// grab the 3(+padding) or 4 bits of blue and add an extra padding bit
ABColours[i][2] = (RawBits[i] & 0xF) << 1;
/*
expand from 3 to 5 bits if this is from colour A, or 4 to 5 bits if from
colour B
*/
if(i==0)
{
ABColours[0][2] |= ABColours[0][2] >> 3;
}
else
{
ABColours[0][2] |= ABColours[0][2] >> 4;
}
// Set the alpha bits to be 3 + a zero on the end
ABColours[i][3] = (RawBits[i] >> 11) & 0xE;
}
}
}
/*!***********************************************************************
@Function UnpackModulations
@Input pBlock
@Input Do2bitMode
@Input ModulationVals
@Input ModulationModes
@Input StartX
@Input StartY
@Description Given the block and the texture type and it's relative
position in the 2x2 group of blocks, extract the bit
patterns for the fully defined pixels.
*************************************************************************/
static void UnpackModulations(const AMTC_BLOCK_STRUCT *pBlock,
const int Do2bitMode,
int ModulationVals[8][16],
int ModulationModes[8][16],
int StartX,
int StartY)
{
int BlockModMode;
U32 ModulationBits;
int x, y;
BlockModMode= pBlock->PackedData[1] & 1;
ModulationBits = pBlock->PackedData[0];
// if it's in an interpolated mode
if(Do2bitMode && BlockModMode)
{
/*
run through all the pixels in the block. Note we can now treat all the
"stored" values as if they have 2bits (even when they didn't!)
*/
for(y = 0; y < BLK_Y_SIZE; y++)
{
for(x = 0; x < BLK_X_2BPP; x++)
{
ModulationModes[y+StartY][x+StartX] = BlockModMode;
// if this is a stored value...
if(((x^y)&1) == 0)
{
ModulationVals[y+StartY][x+StartX] = ModulationBits & 3;
ModulationBits >>= 2;
}
}
}
}
else if(Do2bitMode) // else if direct encoded 2bit mode - i.e. 1 mode bit per pixel
{
for(y = 0; y < BLK_Y_SIZE; y++)
{
for(x = 0; x < BLK_X_2BPP; x++)
{
ModulationModes[y+StartY][x+StartX] = BlockModMode;
// double the bits so 0=> 00, and 1=>11
if(ModulationBits & 1)
{
ModulationVals[y+StartY][x+StartX] = 0x3;
}
else
{
ModulationVals[y+StartY][x+StartX] = 0x0;
}
ModulationBits >>= 1;
}
}
}
else // else its the 4bpp mode so each value has 2 bits
{
for(y = 0; y < BLK_Y_SIZE; y++)
{
for(x = 0; x < BLK_X_4BPP; x++)
{
ModulationModes[y+StartY][x+StartX] = BlockModMode;
ModulationVals[y+StartY][x+StartX] = ModulationBits & 3;
ModulationBits >>= 2;
}
}
}
// make sure nothing is left over
assert(ModulationBits==0);
}
/*!***********************************************************************
@Function InterpolateColours
@Input ColourP
@Input ColourQ
@Input ColourR
@Input ColourS
@Input Do2bitMode
@Input x
@Input y
@Modified Result
@Description This performs a HW bit accurate interpolation of either the
A or B colours for a particular pixel.
NOTE: It is assumed that the source colours are in ARGB 5554
format - This means that some "preparation" of the values will
be necessary.
*************************************************************************/
static void InterpolateColours(const int ColourP[4],
const int ColourQ[4],
const int ColourR[4],
const int ColourS[4],
const int Do2bitMode,
const int x,
const int y,
int Result[4])
{
int u, v, uscale;
int k;
int tmp1, tmp2;
int P[4], Q[4], R[4], S[4];
// Copy the colours
for(k = 0; k < 4; k++)
{
P[k] = ColourP[k];
Q[k] = ColourQ[k];
R[k] = ColourR[k];
S[k] = ColourS[k];
}
// put the x and y values into the right range
v = (y & 0x3) | ((~y & 0x2) << 1);
if(Do2bitMode)
u = (x & 0x7) | ((~x & 0x4) << 1);
else
u = (x & 0x3) | ((~x & 0x2) << 1);
// get the u and v scale amounts
v = v - BLK_Y_SIZE/2;
if(Do2bitMode)
{
u = u - BLK_X_2BPP/2;
uscale = 8;
}
else
{
u = u - BLK_X_4BPP/2;
uscale = 4;
}
for(k = 0; k < 4; k++)
{
tmp1 = P[k] * uscale + u * (Q[k] - P[k]);
tmp2 = R[k] * uscale + u * (S[k] - R[k]);
tmp1 = tmp1 * 4 + v * (tmp2 - tmp1);
Result[k] = tmp1;
}
// Lop off the appropriate number of bits to get us to 8 bit precision
if(Do2bitMode)
{
// do RGB
for(k = 0; k < 3; k++)
{
Result[k] >>= 2;
}
Result[3] >>= 1;
}
else
{
// do RGB (A is ok)
for(k = 0; k < 3; k++)
{
Result[k] >>= 1;
}
}
// sanity check
for(k = 0; k < 4; k++)
{
assert(Result[k] < 256);
}
/*
Convert from 5554 to 8888
do RGB 5.3 => 8
*/
for(k = 0; k < 3; k++)
{
Result[k] += Result[k] >> 5;
}
Result[3] += Result[3] >> 4;
// 2nd sanity check
for(k = 0; k < 4; k++)
{
assert(Result[k] < 256);
}
}
/*!***********************************************************************
@Function GetModulationValue
@Input x
@Input y
@Input Do2bitMode
@Input ModulationVals
@Input ModulationModes
@Input Mod
@Input DoPT
@Description Get the modulation value as a numerator of a fraction of 8ths
*************************************************************************/
static void GetModulationValue(int x,
int y,
const int Do2bitMode,
const int ModulationVals[8][16],
const int ModulationModes[8][16],
int *Mod,
int *DoPT)
{
static const int RepVals0[4] = {0, 3, 5, 8};
static const int RepVals1[4] = {0, 4, 4, 8};
int ModVal;
// Map X and Y into the local 2x2 block
y = (y & 0x3) | ((~y & 0x2) << 1);
if(Do2bitMode)
x = (x & 0x7) | ((~x & 0x4) << 1);
else
x = (x & 0x3) | ((~x & 0x2) << 1);
// assume no PT for now
*DoPT = 0;
// extract the modulation value. If a simple encoding
if(ModulationModes[y][x]==0)
{
ModVal = RepVals0[ModulationVals[y][x]];
}
else if(Do2bitMode)
{
// if this is a stored value
if(((x^y)&1)==0)
ModVal = RepVals0[ModulationVals[y][x]];
else if(ModulationModes[y][x] == 1) // else average from the neighbours if H&V interpolation..
{
ModVal = (RepVals0[ModulationVals[y-1][x]] +
RepVals0[ModulationVals[y+1][x]] +
RepVals0[ModulationVals[y][x-1]] +
RepVals0[ModulationVals[y][x+1]] + 2) / 4;
}
else if(ModulationModes[y][x] == 2) // else if H-Only
{
ModVal = (RepVals0[ModulationVals[y][x-1]] +
RepVals0[ModulationVals[y][x+1]] + 1) / 2;
}
else // else it's V-Only
{
ModVal = (RepVals0[ModulationVals[y-1][x]] +
RepVals0[ModulationVals[y+1][x]] + 1) / 2;
}
}
else // else it's 4BPP and PT encoding
{
ModVal = RepVals1[ModulationVals[y][x]];
*DoPT = ModulationVals[y][x] == PT_INDEX;
}
*Mod =ModVal;
}
/*!***********************************************************************
@Function TwiddleUV
@Input YSize Y dimension of the texture in pixels
@Input XSize X dimension of the texture in pixels
@Input YPos Pixel Y position
@Input XPos Pixel X position
@Returns The twiddled offset of the pixel
@Description Given the Block (or pixel) coordinates and the dimension of
the texture in blocks (or pixels) this returns the twiddled
offset of the block (or pixel) from the start of the map.
NOTE the dimensions of the texture must be a power of 2
*************************************************************************/
static int DisableTwiddlingRoutine = 0;
static U32 TwiddleUV(U32 YSize, U32 XSize, U32 YPos, U32 XPos)
{
U32 Twiddled;
U32 MinDimension;
U32 MaxValue;
U32 SrcBitPos;
U32 DstBitPos;
int ShiftCount;
assert(YPos < YSize);
assert(XPos < XSize);
assert(POWER_OF_2(YSize));
assert(POWER_OF_2(XSize));
if(YSize < XSize)
{
MinDimension = YSize;
MaxValue = XPos;
}
else
{
MinDimension = XSize;
MaxValue = YPos;
}
// Nasty hack to disable twiddling
if(DisableTwiddlingRoutine)
return (YPos* XSize + XPos);
// Step through all the bits in the "minimum" dimension
SrcBitPos = 1;
DstBitPos = 1;
Twiddled = 0;
ShiftCount = 0;
while(SrcBitPos < MinDimension)
{
if(YPos & SrcBitPos)
{
Twiddled |= DstBitPos;
}
if(XPos & SrcBitPos)
{
Twiddled |= (DstBitPos << 1);
}
SrcBitPos <<= 1;
DstBitPos <<= 2;
ShiftCount += 1;
}
// prepend any unused bits
MaxValue >>= ShiftCount;
Twiddled |= (MaxValue << (2*ShiftCount));
return Twiddled;
}
/*!***********************************************************************
@Function Decompress
@Input pCompressedData The PVRTC texture data to decompress
@Input Do2BitMode Signifies whether the data is PVRTC2 or PVRTC4
@Input XDim X dimension of the texture
@Input YDim Y dimension of the texture
@Input AssumeImageTiles Assume the texture data tiles
@Modified pResultImage The decompressed texture data
@Description Decompresses PVRTC to RGBA 8888
*************************************************************************/
static void PVRDecompress(AMTC_BLOCK_STRUCT *pCompressedData,
const bool Do2bitMode,
const int XDim,
const int YDim,
const int AssumeImageTiles,
unsigned char* pResultImage)
{
int x, y;
int i, j;
int BlkX, BlkY;
int BlkXp1, BlkYp1;
int XBlockSize;
int BlkXDim, BlkYDim;
int StartX, StartY;
int ModulationVals[8][16];
int ModulationModes[8][16];
int Mod, DoPT;
unsigned int uPosition;
// local neighbourhood of blocks
AMTC_BLOCK_STRUCT *pBlocks[2][2];
AMTC_BLOCK_STRUCT *pPrevious[2][2] = {{NULL, NULL}, {NULL, NULL}};
// Low precision colours extracted from the blocks
struct
{
int Reps[2][4];
}Colours5554[2][2];
// Interpolated A and B colours for the pixel
int ASig[4], BSig[4];
int Result[4];
if(Do2bitMode)
XBlockSize = BLK_X_2BPP;
else
XBlockSize = BLK_X_4BPP;
// For MBX don't allow the sizes to get too small
BlkXDim = PVRT_MAX(2, XDim / XBlockSize);
BlkYDim = PVRT_MAX(2, YDim / BLK_Y_SIZE);
/*
Step through the pixels of the image decompressing each one in turn
Note that this is a hideously inefficient way to do this!
*/
for(y = 0; y < YDim; y++)
{
for(x = 0; x < XDim; x++)
{
// map this pixel to the top left neighbourhood of blocks
BlkX = (x - XBlockSize/2);
BlkY = (y - BLK_Y_SIZE/2);
BlkX = LIMIT_COORD(BlkX, XDim, AssumeImageTiles);
BlkY = LIMIT_COORD(BlkY, YDim, AssumeImageTiles);
BlkX /= XBlockSize;
BlkY /= BLK_Y_SIZE;
// compute the positions of the other 3 blocks
BlkXp1 = LIMIT_COORD(BlkX+1, BlkXDim, AssumeImageTiles);
BlkYp1 = LIMIT_COORD(BlkY+1, BlkYDim, AssumeImageTiles);
// Map to block memory locations
pBlocks[0][0] = pCompressedData +TwiddleUV(BlkYDim, BlkXDim, BlkY, BlkX);
pBlocks[0][1] = pCompressedData +TwiddleUV(BlkYDim, BlkXDim, BlkY, BlkXp1);
pBlocks[1][0] = pCompressedData +TwiddleUV(BlkYDim, BlkXDim, BlkYp1, BlkX);
pBlocks[1][1] = pCompressedData +TwiddleUV(BlkYDim, BlkXDim, BlkYp1, BlkXp1);
/*
extract the colours and the modulation information IF the previous values
have changed.
*/
if(memcmp(pPrevious, pBlocks, 4*sizeof(void*)) != 0)
{
StartY = 0;
for(i = 0; i < 2; i++)
{
StartX = 0;
for(j = 0; j < 2; j++)
{
Unpack5554Colour(pBlocks[i][j], Colours5554[i][j].Reps);
UnpackModulations(pBlocks[i][j],
Do2bitMode,
ModulationVals,
ModulationModes,
StartX, StartY);
StartX += XBlockSize;
}
StartY += BLK_Y_SIZE;
}
// make a copy of the new pointers
memcpy(pPrevious, pBlocks, 4*sizeof(void*));
}
// decompress the pixel. First compute the interpolated A and B signals
InterpolateColours(Colours5554[0][0].Reps[0],
Colours5554[0][1].Reps[0],
Colours5554[1][0].Reps[0],
Colours5554[1][1].Reps[0],
Do2bitMode, x, y,
ASig);
InterpolateColours(Colours5554[0][0].Reps[1],
Colours5554[0][1].Reps[1],
Colours5554[1][0].Reps[1],
Colours5554[1][1].Reps[1],
Do2bitMode, x, y,
BSig);
GetModulationValue(x,y, Do2bitMode, (const int (*)[16])ModulationVals, (const int (*)[16])ModulationModes,
&Mod, &DoPT);
// compute the modulated colour
for(i = 0; i < 4; i++)
{
Result[i] = ASig[i] * 8 + Mod * (BSig[i] - ASig[i]);
Result[i] >>= 3;
}
if(DoPT)
Result[3] = 0;
// Store the result in the output image
uPosition = (x+y*XDim)<<2;
pResultImage[uPosition+0] = (U8)Result[0];
pResultImage[uPosition+1] = (U8)Result[1];
pResultImage[uPosition+2] = (U8)Result[2];
pResultImage[uPosition+3] = (U8)Result[3];
}
}
}
/*****************************************************************************
End of file (pvr.cpp)
*****************************************************************************/

22
cocos/base/pvr.h Normal file
View File

@ -0,0 +1,22 @@
/******************************************************************************
@File PVRTDecompress.h
@Title
@Copyright Copyright (C) 2000 - 2008 by Imagination Technologies Limited.
@Platform ANSI compatible
@Description PVRTC Texture Decompression.
******************************************************************************/
#ifndef __PVR_H__
#define __PVR_H__
int PVRTDecompressPVRTC(const void * const pCompressedData,const int XDim,const int YDim,void *pDestData,const bool Do2bitMode);
#endif //__PVR_H__

View File

@ -215,7 +215,7 @@ std::string toString(T arg)
return ss.str();
}
std::string format(const char* format, ...) CC_FORMAT_PRINTF(1, 2);
std::string CC_DLL format(const char* format, ...) CC_FORMAT_PRINTF(1, 2);
} // namespace StringUtils {

View File

@ -63,7 +63,7 @@
<SDLCheck>
</SDLCheck>
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)extensions;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DisableSpecificWarnings>4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MinimalRebuild>false</MinimalRebuild>
@ -82,7 +82,7 @@
<SDLCheck>
</SDLCheck>
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)extensions;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DebugInformationFormat>None</DebugInformationFormat>
<WholeProgramOptimization>false</WholeProgramOptimization>
</ClCompile>

View File

@ -215,13 +215,17 @@ void ActionTimeline::startWithTarget(Node *target)
[this, target](Node* child)
{
ActionTimelineData* data = dynamic_cast<ActionTimelineData*>(child->getUserObject());
int actionTag = data->getActionTag();
if(_timelineMap.find(actionTag) != _timelineMap.end())
if(data)
{
auto timelines = this->_timelineMap[actionTag];
for (auto timeline : timelines)
int actionTag = data->getActionTag();
if(_timelineMap.find(actionTag) != _timelineMap.end())
{
timeline->setNode(child);
auto timelines = this->_timelineMap[actionTag];
for (auto timeline : timelines)
{
timeline->setNode(child);
}
}
}
});

View File

@ -27,10 +27,11 @@ THE SOFTWARE.
#include "CCTimeLine.h"
#include "renderer/CCRenderer.h"
#include "cocostudio/CocosStudioExport.h"
NS_TIMELINE_BEGIN
class ActionTimelineData : public cocos2d::Ref
class CC_STUDIO_DLL ActionTimelineData : public cocos2d::Ref
{
public:
static ActionTimelineData* create(int actionTag);
@ -45,7 +46,7 @@ protected:
};
class ActionTimeline : public cocos2d::Action
class CC_STUDIO_DLL ActionTimeline : public cocos2d::Action
{
public:
friend class Frame;

View File

@ -28,6 +28,7 @@ THE SOFTWARE.
#include "cocos2d.h"
#include "cocostudio/DictionaryHelper.h"
#include "CCTimelineMacro.h"
#include "cocostudio/CocosStudioExport.h"
NS_TIMELINE_BEGIN
@ -35,7 +36,7 @@ class ActionTimeline;
class Timeline;
class Frame;
class ActionTimelineCache
class CC_STUDIO_DLL ActionTimelineCache
{
public:
/** Gets the singleton */

View File

@ -27,12 +27,13 @@ THE SOFTWARE.
#include "cocos2d.h"
#include "CCTimelineMacro.h"
#include "cocostudio/CocosStudioExport.h"
NS_TIMELINE_BEGIN
class Timeline;
class Frame : public cocos2d::Ref
class CC_STUDIO_DLL Frame : public cocos2d::Ref
{
public:
@ -68,7 +69,7 @@ protected:
};
class VisibleFrame : public Frame
class CC_STUDIO_DLL VisibleFrame : public Frame
{
public:
static VisibleFrame* create();
@ -86,7 +87,7 @@ protected:
};
class TextureFrame : public Frame
class CC_STUDIO_DLL TextureFrame : public Frame
{
public:
static TextureFrame* create();
@ -106,7 +107,7 @@ protected:
std::string _textureName;
};
class RotationFrame : public Frame
class CC_STUDIO_DLL RotationFrame : public Frame
{
public:
static RotationFrame* create();
@ -125,7 +126,7 @@ protected:
float _betwennRotation;
};
class SkewFrame : public Frame
class CC_STUDIO_DLL SkewFrame : public Frame
{
public:
static SkewFrame* create();
@ -150,7 +151,7 @@ protected:
};
class RotationSkewFrame : public SkewFrame
class CC_STUDIO_DLL RotationSkewFrame : public SkewFrame
{
public:
static RotationSkewFrame* create();
@ -163,7 +164,7 @@ public:
};
class PositionFrame : public Frame
class CC_STUDIO_DLL PositionFrame : public Frame
{
public:
static PositionFrame* create();
@ -189,7 +190,7 @@ protected:
};
class ScaleFrame : public Frame
class CC_STUDIO_DLL ScaleFrame : public Frame
{
public:
static ScaleFrame* create();
@ -216,7 +217,7 @@ protected:
};
class AnchorPointFrame : public Frame
class CC_STUDIO_DLL AnchorPointFrame : public Frame
{
public:
static AnchorPointFrame* create();
@ -242,7 +243,7 @@ enum InnerActionType
SingleFrame
};
class InnerActionFrame : public Frame
class CC_STUDIO_DLL InnerActionFrame : public Frame
{
public:
static InnerActionFrame* create();
@ -263,7 +264,7 @@ protected:
};
class ColorFrame : public Frame
class CC_STUDIO_DLL ColorFrame : public Frame
{
public:
static ColorFrame* create();
@ -290,7 +291,7 @@ protected:
};
class EventFrame : public Frame
class CC_STUDIO_DLL EventFrame : public Frame
{
public:
static EventFrame* create();
@ -307,7 +308,7 @@ protected:
std::string _event;
};
class ZOrderFrame : public Frame
class CC_STUDIO_DLL ZOrderFrame : public Frame
{
public:
static ZOrderFrame* create();

View File

@ -236,8 +236,20 @@ Node* NodeReader::loadNode(const rapidjson::Value& json)
{
const rapidjson::Value &dic = DICTOOL->getSubDictionary_json(json, CHILDREN, i);
Node* child = loadNode(dic);
if (child)
if (child)
{
auto widgetChild = dynamic_cast<Widget*>(child);
if (widgetChild
&& dynamic_cast<Widget*>(node)
&& !dynamic_cast<Layout*>(node))
{
if (widgetChild->getPositionType() == ui::Widget::PositionType::PERCENT)
{
widgetChild->setPositionPercent(Vec2(widgetChild->getPositionPercent().x + node->getAnchorPoint().x, widgetChild->getPositionPercent().y + node->getAnchorPoint().y));
}
widgetChild->setPosition(Vec2(widgetChild->getPositionX() + node->getAnchorPointInPoints().x, widgetChild->getPositionY() + node->getAnchorPointInPoints().y));
}
node->addChild(child);
child->release();
}

View File

@ -26,6 +26,7 @@ THE SOFTWARE.
#define __CC_NODE_CACHE_H__
#include "cocostudio/DictionaryHelper.h"
#include "cocostudio/CocosStudioExport.h"
#include "cocos2d.h"
namespace cocostudio {
@ -33,7 +34,7 @@ namespace cocostudio {
namespace timeline{
class NodeReader
class CC_STUDIO_DLL NodeReader
{
public:
static NodeReader* getInstance();

View File

@ -27,12 +27,13 @@ THE SOFTWARE.
#include "CCFrame.h"
#include "CCTimelineMacro.h"
#include "cocostudio/CocosStudioExport.h"
NS_TIMELINE_BEGIN
class ActionTimeline;
class Timeline : public cocos2d::Ref
class CC_STUDIO_DLL Timeline : public cocos2d::Ref
{
public:
static Timeline* create();

View File

@ -27,6 +27,7 @@ THE SOFTWARE.
#include "math/CCGeometry.h"
#include "2d/CCActionInterval.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -92,7 +93,7 @@ enum class FrameEaseType
* @js NA
* @lua NA
*/
class ActionFrame: public cocos2d::Ref
class CC_STUDIO_DLL ActionFrame: public cocos2d::Ref
{
public:
@ -210,7 +211,7 @@ protected:
* @js NA
* @lua NA
*/
class ActionMoveFrame:public ActionFrame
class CC_STUDIO_DLL ActionMoveFrame:public ActionFrame
{
public:
@ -254,7 +255,7 @@ protected:
* @js NA
* @lua NA
*/
class ActionScaleFrame:public ActionFrame
class CC_STUDIO_DLL ActionScaleFrame:public ActionFrame
{
public:

View File

@ -26,6 +26,7 @@ THE SOFTWARE.
#define __ActionFrameEasing_H__
#include "base/CCRef.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -56,7 +57,7 @@ enum FrameEasingType
* @js NA
* @lua NA
*/
class ActionFrameEasing:public cocos2d::Ref
class CC_STUDIO_DLL ActionFrameEasing:public cocos2d::Ref
{
protected:
FrameEasingType _type;

View File

@ -27,13 +27,14 @@ THE SOFTWARE.
#include "cocostudio/CCActionObject.h"
#include "cocostudio/DictionaryHelper.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
class CocoLoader;
struct stExpCocoNode;
class ActionManagerEx:public cocos2d::Ref
class CC_STUDIO_DLL ActionManagerEx:public cocos2d::Ref
{
public:

View File

@ -27,6 +27,7 @@ THE SOFTWARE.
#include "cocostudio/CCActionFrame.h"
#include "cocostudio/DictionaryHelper.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -36,7 +37,7 @@ struct stExpCocoNode;
* @js NA
* @lua NA
*/
class ActionNode : public cocos2d::Ref
class CC_STUDIO_DLL ActionNode : public cocos2d::Ref
{
public:

View File

@ -28,6 +28,7 @@ THE SOFTWARE.
#include "cocostudio/CCActionNode.h"
#include "2d/CCActionInstant.h"
#include "cocostudio/DictionaryHelper.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -38,7 +39,7 @@ struct stExpCocoNode;
* @js NA
* @lua NA
*/
class ActionObject : public cocos2d::Ref
class CC_STUDIO_DLL ActionObject : public cocos2d::Ref
{
public:

View File

@ -31,6 +31,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureAnimation.h"
#include "cocostudio/CCSpriteFrameCacheHelper.h"
#include "cocostudio/CCArmatureDataManager.h"
#include "cocostudio/CocosStudioExport.h"
#include "math/CCMath.h"
class b2Body;
@ -67,7 +68,7 @@ CC_DEPRECATED_ATTRIBUTE typedef Armature CCArmature;
CC_DEPRECATED_ATTRIBUTE typedef ArmatureDataManager CCArmatureDataManager;
CC_DEPRECATED_ATTRIBUTE typedef cocos2d::tweenfunc::TweenType CCTweenType;
class Armature : public cocos2d::Node, public cocos2d::BlendProtocol
class CC_STUDIO_DLL Armature : public cocos2d::Node, public cocos2d::BlendProtocol
{
public:

View File

@ -28,6 +28,7 @@ THE SOFTWARE.
#include "cocostudio/CCProcessBase.h"
#include "cocostudio/CCTween.h"
#include "cocostudio/CocosStudioExport.h"
#include <queue>
namespace cocostudio {
@ -65,7 +66,7 @@ struct MovementEvent
std::string movementID;
};
class ArmatureAnimation : public ProcessBase
class CC_STUDIO_DLL ArmatureAnimation : public ProcessBase
{
public:
/**

View File

@ -27,7 +27,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCDatas.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -42,7 +42,7 @@ struct RelativeData
/**
* @brief format and manage armature configuration and armature animation
*/
class ArmatureDataManager : public cocos2d::Ref
class CC_STUDIO_DLL ArmatureDataManager : public cocos2d::Ref
{
public:
/** @deprecated Use getInstance() instead */

View File

@ -27,6 +27,7 @@ THE SOFTWARE.
#include "2d/CCNode.h"
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocos2d {
class GroupCommand;
@ -34,7 +35,7 @@ namespace cocos2d {
namespace cocostudio {
class BatchNode : public cocos2d::Node
class CC_STUDIO_DLL BatchNode : public cocos2d::Node
{
public:
static BatchNode *create();

View File

@ -30,6 +30,7 @@ THE SOFTWARE.
#include "cocostudio/CCTween.h"
#include "cocostudio/CCDecorativeDisplay.h"
#include "cocostudio/CCDisplayManager.h"
#include "cocostudio/CocosStudioExport.h"
#include "2d/CCNode.h"
#include "math/CCMath.h"
@ -37,7 +38,7 @@ namespace cocostudio {
class Armature;
class Bone : public cocos2d::Node
class CC_STUDIO_DLL Bone : public cocos2d::Node
{
public:
/**

View File

@ -27,6 +27,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCDatas.h"
#include "cocostudio/CocosStudioExport.h"
#ifndef PT_RATIO
#define PT_RATIO 32
@ -48,7 +49,7 @@ class Bone;
* @js NA
* @lua NA
*/
class ColliderFilter
class CC_STUDIO_DLL ColliderFilter
{
public:
virtual ~ColliderFilter() { }
@ -85,7 +86,7 @@ protected:
#endif
};
class ColliderBody : public cocos2d::Ref
class CC_STUDIO_DLL ColliderBody : public cocos2d::Ref
{
public:
ColliderBody(ContourData *contourData);
@ -130,7 +131,7 @@ private:
* @js NA
* @lua NA
*/
class ColliderDetector : public cocos2d::Ref
class CC_STUDIO_DLL ColliderDetector : public cocos2d::Ref
{
public:
static ColliderDetector *create();

View File

@ -28,13 +28,14 @@ THE SOFTWARE.
#include "CCComBase.h"
#include "2d/CCComponent.h"
#include "base/CCValue.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
class ComAttribute : public cocos2d::Component
class CC_STUDIO_DLL ComAttribute : public cocos2d::Component
{
DECLARE_CLASS_COMPONENT_INFO
protected:
public:
/**
* @js ctor
*/

View File

@ -27,14 +27,16 @@ THE SOFTWARE.
#include "CCComBase.h"
#include "2d/CCComponent.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
class ComAudio : public cocos2d::Component
class CC_STUDIO_DLL ComAudio : public cocos2d::Component
{
DECLARE_CLASS_COMPONENT_INFO
protected:
public:
/**
* @js ctor
*/

View File

@ -27,6 +27,7 @@ THE SOFTWARE.
#include <string>
#include "DictionaryHelper.h"
#include "cocostudio/CocosStudioExport.h"
#include "base/ObjectFactory.h"
#include "CocoLoader.h"
@ -46,7 +47,7 @@ THE SOFTWARE.
#define CREATE_CLASS_COMPONENT_INFO(className) \
cocos2d::ObjectFactory::TInfo(#className, &className::createInstance)
struct SerData
struct CC_STUDIO_DLL SerData
{
const rapidjson::Value *_rData;
cocostudio::stExpCocoNode *_cocoNode;

View File

@ -27,11 +27,12 @@ THE SOFTWARE.
#include "CCComBase.h"
#include "cocostudio/CCInputDelegate.h"
#include "cocostudio/CocosStudioExport.h"
#include "2d/CCComponent.h"
namespace cocostudio {
class ComController : public cocos2d::Component, public InputDelegate
class CC_STUDIO_DLL ComController : public cocos2d::Component, public InputDelegate
{
DECLARE_CLASS_COMPONENT_INFO

View File

@ -27,10 +27,11 @@ THE SOFTWARE.
#include "CCComBase.h"
#include "2d/CCComponent.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
class ComRender : public cocos2d::Component
class CC_STUDIO_DLL ComRender : public cocos2d::Component
{
DECLARE_CLASS_COMPONENT_INFO
protected:

View File

@ -29,6 +29,7 @@ THE SOFTWARE.
#include "cocostudio/CCDatas.h"
#include "cocostudio/CCArmature.h"
#include "cocostudio/DictionaryHelper.h"
#include "cocostudio/CocosStudioExport.h"
#include "json/document.h"
#include "DictionaryHelper.h"
@ -52,7 +53,7 @@ namespace cocostudio {
* @js NA
* @lua NA
*/
class DataReaderHelper : cocos2d::Ref
class CC_STUDIO_DLL DataReaderHelper : cocos2d::Ref
{
protected:

View File

@ -33,6 +33,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "2d/CCTweenFunction.h"
#include "cocostudio/CocosStudioExport.h"
#define CC_CREATE_NO_PARAM_NO_INIT(varType)\
@ -68,7 +69,7 @@ namespace cocostudio {
* @js NA
* @lua NA
*/
class BaseData : public cocos2d::Ref
class CC_STUDIO_DLL BaseData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM_NO_INIT(BaseData)
@ -137,7 +138,7 @@ enum DisplayType
* @js NA
* @lua NA
*/
class DisplayData : public cocos2d::Ref
class CC_STUDIO_DLL DisplayData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM_NO_INIT(DisplayData)
@ -165,7 +166,7 @@ public:
* @js NA
* @lua NA
*/
class SpriteDisplayData : public DisplayData
class CC_STUDIO_DLL SpriteDisplayData : public DisplayData
{
public:
CC_CREATE_NO_PARAM_NO_INIT(SpriteDisplayData)
@ -189,7 +190,7 @@ public:
* @js NA
* @lua NA
*/
class ArmatureDisplayData : public DisplayData
class CC_STUDIO_DLL ArmatureDisplayData : public DisplayData
{
public:
CC_CREATE_NO_PARAM_NO_INIT(ArmatureDisplayData)
@ -209,7 +210,7 @@ public:
* @js NA
* @lua NA
*/
class ParticleDisplayData : public DisplayData
class CC_STUDIO_DLL ParticleDisplayData : public DisplayData
{
public:
CC_CREATE_NO_PARAM_NO_INIT(ParticleDisplayData)
@ -234,7 +235,7 @@ public:
* @js NA
* @lua NA
*/
class BoneData : public BaseData
class CC_STUDIO_DLL BoneData : public BaseData
{
public:
CC_CREATE_NO_PARAM(BoneData)
@ -268,7 +269,7 @@ public:
* @js NA
* @lua NA
*/
class ArmatureData : public cocos2d::Ref
class CC_STUDIO_DLL ArmatureData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM(ArmatureData)
@ -314,7 +315,7 @@ enum BlendType
* @js NA
* @lua NA
*/
class FrameData : public BaseData
class CC_STUDIO_DLL FrameData : public BaseData
{
public:
CC_CREATE_NO_PARAM_NO_INIT(FrameData)
@ -361,7 +362,7 @@ public:
* @js NA
* @lua NA
*/
class MovementBoneData : public cocos2d::Ref
class CC_STUDIO_DLL MovementBoneData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM(MovementBoneData)
@ -393,7 +394,7 @@ public:
* @js NA
* @lua NA
*/
class MovementData : public cocos2d::Ref
class CC_STUDIO_DLL MovementData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM_NO_INIT(MovementData)
@ -455,7 +456,7 @@ public:
* @js NA
* @lua NA
*/
class AnimationData : public cocos2d::Ref
class CC_STUDIO_DLL AnimationData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM_NO_INIT(AnimationData)
@ -486,7 +487,7 @@ public:
* @js NA
* @lua NA
*/
class ContourData : public cocos2d::Ref
class CC_STUDIO_DLL ContourData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM(ContourData)
@ -515,7 +516,7 @@ public:
* @js NA
* @lua NA
*/
class TextureData : public cocos2d::Ref
class CC_STUDIO_DLL TextureData : public cocos2d::Ref
{
public:
CC_CREATE_NO_PARAM(TextureData)

View File

@ -28,6 +28,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCDisplayFactory.h"
#include "cocostudio/CCDatas.h"
#include "cocostudio/CocosStudioExport.h"
#if ENABLE_PHYSICS_BOX2D_DETECT || ENABLE_PHYSICS_CHIPMUNK_DETECT || ENABLE_PHYSICS_SAVE_CALCULATED_VERTEX
@ -43,7 +44,7 @@ namespace cocostudio {
* @js NA
* @lua NA
*/
class DecorativeDisplay: public cocos2d::Ref
class CC_STUDIO_DLL DecorativeDisplay: public cocos2d::Ref
{
public:
static DecorativeDisplay *create();

View File

@ -27,6 +27,8 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCDatas.h"
#include "cocostudio/CocosStudioExport.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -38,7 +40,7 @@ class DisplayData;
* @js NA
* @lua NA
*/
class DisplayFactory
class CC_STUDIO_DLL DisplayFactory
{
public:
static void addDisplay(Bone *bone, DecorativeDisplay *decoDisplay, DisplayData *displayData);

View File

@ -28,6 +28,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCDecorativeDisplay.h"
#include "cocostudio/CCDatas.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -37,7 +38,7 @@ class Bone;
* @js NA
* @lua NA
*/
class DisplayManager : public cocos2d::Ref
class CC_STUDIO_DLL DisplayManager : public cocos2d::Ref
{
public:
static DisplayManager *create(Bone *bone);

View File

@ -31,6 +31,7 @@ THE SOFTWARE.
#include "base/ccTypes.h"
#include "base/CCEventKeyboard.h"
#include "base/CCEventListener.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocos2d {
class __Set;
@ -41,7 +42,7 @@ namespace cocostudio {
/**
* @lua NA
*/
class InputDelegate
class CC_STUDIO_DLL InputDelegate
{
protected:
/**

View File

@ -27,6 +27,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCDatas.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -50,7 +51,7 @@ enum AnimationType
* @js NA
* @lua NA
*/
class ProcessBase : public cocos2d::Ref
class CC_STUDIO_DLL ProcessBase : public cocos2d::Ref
{
public:
ProcessBase(void);

View File

@ -25,10 +25,11 @@ THE SOFTWARE.
#ifndef __CCSGUIREADER_H__
#define __CCSGUIREADER_H__
#include "ui/UIWidget.h"
#include "ui/UILayout.h"
#include "cocostudio/DictionaryHelper.h"
#include "WidgetReader/WidgetReaderProtocol.h"
#include "base/ObjectFactory.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -41,7 +42,7 @@ namespace cocostudio {
typedef void (cocos2d::Ref::*SEL_ParseEvent)(const std::string&, cocos2d::Ref*, const rapidjson::Value&);
#define parseselector(_SELECTOR) (SEL_ParseEvent)(&_SELECTOR)
class GUIReader : public cocos2d::Ref
class CC_STUDIO_DLL GUIReader : public cocos2d::Ref
{
public:
CC_DEPRECATED_ATTRIBUTE static GUIReader* shareReader() { return GUIReader::getInstance(); };
@ -89,7 +90,7 @@ public:
};
class WidgetPropertiesReader : public cocos2d::Ref
class CC_STUDIO_DLL WidgetPropertiesReader : public cocos2d::Ref
{
public:
virtual cocos2d::ui::Widget* createWidget(const rapidjson::Value& dic, const char* fullPath, const char* fileName)=0;
@ -124,7 +125,7 @@ protected:
};
class WidgetPropertiesReader0250 : public WidgetPropertiesReader
class CC_STUDIO_DLL WidgetPropertiesReader0250 : public WidgetPropertiesReader
{
@ -171,7 +172,7 @@ public:
const rapidjson::Value& customOptions);
};
class WidgetPropertiesReader0300 : public WidgetPropertiesReader
class CC_STUDIO_DLL WidgetPropertiesReader0300 : public WidgetPropertiesReader
{

View File

@ -26,12 +26,12 @@ THE SOFTWARE.
#define __CCSSCENEREADER_H__
#include "cocostudio/DictionaryHelper.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
class SceneReader
class CC_STUDIO_DLL SceneReader
{
public:

View File

@ -30,10 +30,11 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCBone.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
class Skin : public cocos2d::Sprite
class CC_STUDIO_DLL Skin : public cocos2d::Sprite
{
public:
static Skin *create();

View File

@ -26,6 +26,7 @@ THE SOFTWARE.
#include "base/CCPlatformMacros.h"
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CocosStudioExport.h"
#include <stack>
#include <string>
@ -35,7 +36,7 @@ namespace cocostudio {
* @js NA
* @lua NA
*/
class SpriteFrameCacheHelper
class CC_STUDIO_DLL SpriteFrameCacheHelper
{
public:
/** @deprecated Use getInstance() instead */

View File

@ -27,6 +27,7 @@ THE SOFTWARE.
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCDatas.h"
#include "cocostudio/CocosStudioExport.h"
namespace cocostudio {
@ -35,7 +36,7 @@ namespace cocostudio {
* @js NA
* @lua NA
*/
class TransformHelp
class CC_STUDIO_DLL TransformHelp
{
public:
TransformHelp();

Some files were not shown because too many files have changed in this diff Show More