mirror of https://github.com/axmolengine/axmol.git
merge cocos
This commit is contained in:
commit
bb90fe48ef
4
AUTHORS
4
AUTHORS
|
@ -920,6 +920,7 @@ Developers:
|
|||
Fix video scale issue in iOS
|
||||
Fix iOS VideoPlayer memory leak
|
||||
Added c++11 random library support
|
||||
Added WebView widget which supports iOS and Android
|
||||
|
||||
billtt
|
||||
Fixed a bug that Node::setScale(float) may not work properly
|
||||
|
@ -989,6 +990,9 @@ Developers:
|
|||
xiangxw
|
||||
Fixed the bug that Console::sendPrompt() will send extra `\0`
|
||||
|
||||
kaishiqi
|
||||
Fixed a but that cursor postion is wrong on desktop.
|
||||
|
||||
Retired Core Developers:
|
||||
WenSheng Yang
|
||||
Author of windows port, CCTextField,
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
cocos2d-x-3.3?? ??
|
||||
[NEW] ActionManager: added removeAllActionsByTag()
|
||||
[NEW] Node: added stopAllActionsByTag()
|
||||
[NEW] UI: added `WebView` on iOS and Android
|
||||
|
||||
[FIX] EditBox: moved to ui:EditBox
|
||||
[FIX] Node: create unneeded temple `Vec2` object in `setPosition(int, int)`, `setPositionX()` and `setPositionY()`
|
||||
[FIX] Node: skew effect is wrong
|
||||
[FIX] TextureAtlas: may crash if only drawing part of it
|
||||
|
||||
cocos2d-x-3.3alpha0 Aug.28 2014
|
||||
[NEW] 3D: Added Camera, AABB, OBB and Ray
|
||||
|
|
|
@ -969,8 +969,6 @@
|
|||
15AE1BDD19AAE01E00C27E9E /* CCControlUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168491807AF4E005B8026 /* CCControlUtils.h */; };
|
||||
15AE1BDE19AAE01E00C27E9E /* CCInvocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1684A1807AF4E005B8026 /* CCInvocation.cpp */; };
|
||||
15AE1BDF19AAE01E00C27E9E /* CCInvocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A1684B1807AF4E005B8026 /* CCInvocation.h */; };
|
||||
15AE1BE019AAE01E00C27E9E /* CCScale9Sprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1684C1807AF4E005B8026 /* CCScale9Sprite.cpp */; };
|
||||
15AE1BE119AAE01E00C27E9E /* CCScale9Sprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A1684D1807AF4E005B8026 /* CCScale9Sprite.h */; };
|
||||
15AE1BE219AAE01E00C27E9E /* CCScrollView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1685E1807AF4E005B8026 /* CCScrollView.cpp */; };
|
||||
15AE1BE319AAE01E00C27E9E /* CCScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A1685F1807AF4E005B8026 /* CCScrollView.h */; };
|
||||
15AE1BE419AAE01E00C27E9E /* CCTableView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A168621807AF4E005B8026 /* CCTableView.cpp */; };
|
||||
|
@ -1000,24 +998,12 @@
|
|||
15AE1BFC19AAE01E00C27E9E /* CCControlUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168491807AF4E005B8026 /* CCControlUtils.h */; };
|
||||
15AE1BFD19AAE01E00C27E9E /* CCInvocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1684A1807AF4E005B8026 /* CCInvocation.cpp */; };
|
||||
15AE1BFE19AAE01E00C27E9E /* CCInvocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A1684B1807AF4E005B8026 /* CCInvocation.h */; };
|
||||
15AE1BFF19AAE01E00C27E9E /* CCScale9Sprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1684C1807AF4E005B8026 /* CCScale9Sprite.cpp */; };
|
||||
15AE1C0019AAE01E00C27E9E /* CCScale9Sprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A1684D1807AF4E005B8026 /* CCScale9Sprite.h */; };
|
||||
15AE1C0119AAE01E00C27E9E /* CCScrollView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1685E1807AF4E005B8026 /* CCScrollView.cpp */; };
|
||||
15AE1C0219AAE01E00C27E9E /* CCScrollView.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A1685F1807AF4E005B8026 /* CCScrollView.h */; };
|
||||
15AE1C0319AAE01E00C27E9E /* CCTableView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A168621807AF4E005B8026 /* CCTableView.cpp */; };
|
||||
15AE1C0419AAE01E00C27E9E /* CCTableView.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168631807AF4E005B8026 /* CCTableView.h */; };
|
||||
15AE1C0519AAE01E00C27E9E /* CCTableViewCell.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A168641807AF4E005B8026 /* CCTableViewCell.cpp */; };
|
||||
15AE1C0619AAE01E00C27E9E /* CCTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168651807AF4E005B8026 /* CCTableViewCell.h */; };
|
||||
15AE1C0719AAE02500C27E9E /* CCEditBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1684F1807AF4E005B8026 /* CCEditBox.cpp */; };
|
||||
15AE1C0819AAE02500C27E9E /* CCEditBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168501807AF4E005B8026 /* CCEditBox.h */; };
|
||||
15AE1C0919AAE02500C27E9E /* CCEditBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A1684F1807AF4E005B8026 /* CCEditBox.cpp */; };
|
||||
15AE1C0A19AAE02500C27E9E /* CCEditBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168501807AF4E005B8026 /* CCEditBox.h */; };
|
||||
15AE1C0B19AAE02D00C27E9E /* CCEditBoxImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168511807AF4E005B8026 /* CCEditBoxImpl.h */; };
|
||||
15AE1C0C19AAE02D00C27E9E /* CCEditBoxImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168511807AF4E005B8026 /* CCEditBoxImpl.h */; };
|
||||
15AE1C0D19AAE03400C27E9E /* CCEditBoxImplMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = B282B47C1980E02B00666787 /* CCEditBoxImplMac.mm */; };
|
||||
15AE1C0E19AAE03400C27E9E /* CCEditBoxImplMac.h in Headers */ = {isa = PBXBuildFile; fileRef = B282B47D1980E02B00666787 /* CCEditBoxImplMac.h */; };
|
||||
15AE1C0F19AAE03E00C27E9E /* CCEditBoxImplIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 46A168541807AF4E005B8026 /* CCEditBoxImplIOS.h */; };
|
||||
15AE1C1019AAE03E00C27E9E /* CCEditBoxImplIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 46A168551807AF4E005B8026 /* CCEditBoxImplIOS.mm */; };
|
||||
15AE1C1119AAE2C600C27E9E /* CCPhysicsDebugNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AD71EEC180E27CF00808F54 /* CCPhysicsDebugNode.cpp */; };
|
||||
15AE1C1219AAE2C600C27E9E /* CCPhysicsDebugNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AD71EED180E27CF00808F54 /* CCPhysicsDebugNode.h */; };
|
||||
15AE1C1319AAE2C600C27E9E /* CCPhysicsSprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AD71EEE180E27CF00808F54 /* CCPhysicsSprite.cpp */; };
|
||||
|
@ -1350,6 +1336,38 @@
|
|||
1ABA68B11888D700007D1BB4 /* CCFontCharMap.h in Headers */ = {isa = PBXBuildFile; fileRef = 1ABA68AD1888D700007D1BB4 /* CCFontCharMap.h */; };
|
||||
1AC0269C1914068200FA920D /* ConvertUTF.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC026991914068200FA920D /* ConvertUTF.h */; };
|
||||
1AC0269D1914068200FA920D /* ConvertUTF.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AC026991914068200FA920D /* ConvertUTF.h */; };
|
||||
292DB13D19B4574100A80320 /* UIEditBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB12F19B4574100A80320 /* UIEditBox.cpp */; };
|
||||
292DB13E19B4574100A80320 /* UIEditBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB12F19B4574100A80320 /* UIEditBox.cpp */; };
|
||||
292DB13F19B4574100A80320 /* UIEditBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13019B4574100A80320 /* UIEditBox.h */; };
|
||||
292DB14019B4574100A80320 /* UIEditBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13019B4574100A80320 /* UIEditBox.h */; };
|
||||
292DB14119B4574100A80320 /* UIEditBoxImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13119B4574100A80320 /* UIEditBoxImpl.h */; };
|
||||
292DB14219B4574100A80320 /* UIEditBoxImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13119B4574100A80320 /* UIEditBoxImpl.h */; };
|
||||
292DB14319B4574100A80320 /* UIEditBoxImplAndroid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13219B4574100A80320 /* UIEditBoxImplAndroid.cpp */; };
|
||||
292DB14419B4574100A80320 /* UIEditBoxImplAndroid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13219B4574100A80320 /* UIEditBoxImplAndroid.cpp */; };
|
||||
292DB14519B4574100A80320 /* UIEditBoxImplAndroid.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13319B4574100A80320 /* UIEditBoxImplAndroid.h */; };
|
||||
292DB14619B4574100A80320 /* UIEditBoxImplAndroid.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13319B4574100A80320 /* UIEditBoxImplAndroid.h */; };
|
||||
292DB14719B4574100A80320 /* UIEditBoxImplIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13419B4574100A80320 /* UIEditBoxImplIOS.h */; };
|
||||
292DB14819B4574100A80320 /* UIEditBoxImplIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13419B4574100A80320 /* UIEditBoxImplIOS.h */; };
|
||||
292DB14919B4574100A80320 /* UIEditBoxImplIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13519B4574100A80320 /* UIEditBoxImplIOS.mm */; };
|
||||
292DB14A19B4574100A80320 /* UIEditBoxImplIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13519B4574100A80320 /* UIEditBoxImplIOS.mm */; };
|
||||
292DB14B19B4574100A80320 /* UIEditBoxImplMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13619B4574100A80320 /* UIEditBoxImplMac.h */; };
|
||||
292DB14C19B4574100A80320 /* UIEditBoxImplMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB13619B4574100A80320 /* UIEditBoxImplMac.h */; };
|
||||
292DB14D19B4574100A80320 /* UIEditBoxImplMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13719B4574100A80320 /* UIEditBoxImplMac.mm */; };
|
||||
292DB14E19B4574100A80320 /* UIEditBoxImplMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13719B4574100A80320 /* UIEditBoxImplMac.mm */; };
|
||||
292DB14F19B4574100A80320 /* UIEditBoxImplNone.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13819B4574100A80320 /* UIEditBoxImplNone.cpp */; };
|
||||
292DB15019B4574100A80320 /* UIEditBoxImplNone.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB13819B4574100A80320 /* UIEditBoxImplNone.cpp */; };
|
||||
292DB15F19B461CA00A80320 /* ExtensionDeprecated.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB15D19B461CA00A80320 /* ExtensionDeprecated.cpp */; };
|
||||
292DB16019B461CA00A80320 /* ExtensionDeprecated.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292DB15D19B461CA00A80320 /* ExtensionDeprecated.cpp */; };
|
||||
292DB16119B461CA00A80320 /* ExtensionDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB15E19B461CA00A80320 /* ExtensionDeprecated.h */; };
|
||||
292DB16219B461CA00A80320 /* ExtensionDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = 292DB15E19B461CA00A80320 /* ExtensionDeprecated.h */; };
|
||||
29394CF019B01DBA00D2DE1A /* UIWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = 29394CEC19B01DBA00D2DE1A /* UIWebView.h */; };
|
||||
29394CF119B01DBA00D2DE1A /* UIWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = 29394CEC19B01DBA00D2DE1A /* UIWebView.h */; };
|
||||
29394CF219B01DBA00D2DE1A /* UIWebView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29394CED19B01DBA00D2DE1A /* UIWebView.mm */; };
|
||||
29394CF319B01DBA00D2DE1A /* UIWebView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29394CED19B01DBA00D2DE1A /* UIWebView.mm */; };
|
||||
29394CF419B01DBA00D2DE1A /* UIWebViewImpl_iOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 29394CEE19B01DBA00D2DE1A /* UIWebViewImpl_iOS.h */; };
|
||||
29394CF519B01DBA00D2DE1A /* UIWebViewImpl_iOS.h in Headers */ = {isa = PBXBuildFile; fileRef = 29394CEE19B01DBA00D2DE1A /* UIWebViewImpl_iOS.h */; };
|
||||
29394CF619B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29394CEF19B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm */; };
|
||||
29394CF719B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29394CEF19B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm */; };
|
||||
2986667F18B1B246000E39CA /* CCTweenFunction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2986667818B1B079000E39CA /* CCTweenFunction.cpp */; };
|
||||
299754F4193EC95400A54AC3 /* ObjectFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 299754F2193EC95400A54AC3 /* ObjectFactory.cpp */; };
|
||||
299754F5193EC95400A54AC3 /* ObjectFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 299754F2193EC95400A54AC3 /* ObjectFactory.cpp */; };
|
||||
|
@ -2300,6 +2318,22 @@
|
|||
2905FA1318CF08D100240AA3 /* UIWidget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIWidget.cpp; sourceTree = "<group>"; };
|
||||
2905FA1418CF08D100240AA3 /* UIWidget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIWidget.h; sourceTree = "<group>"; };
|
||||
29080DEB191B82CE0066F8DF /* UIDeprecated.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIDeprecated.h; sourceTree = "<group>"; };
|
||||
292DB12F19B4574100A80320 /* UIEditBox.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIEditBox.cpp; sourceTree = "<group>"; };
|
||||
292DB13019B4574100A80320 /* UIEditBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIEditBox.h; sourceTree = "<group>"; };
|
||||
292DB13119B4574100A80320 /* UIEditBoxImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIEditBoxImpl.h; sourceTree = "<group>"; };
|
||||
292DB13219B4574100A80320 /* UIEditBoxImplAndroid.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIEditBoxImplAndroid.cpp; sourceTree = "<group>"; };
|
||||
292DB13319B4574100A80320 /* UIEditBoxImplAndroid.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIEditBoxImplAndroid.h; sourceTree = "<group>"; };
|
||||
292DB13419B4574100A80320 /* UIEditBoxImplIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIEditBoxImplIOS.h; sourceTree = "<group>"; };
|
||||
292DB13519B4574100A80320 /* UIEditBoxImplIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UIEditBoxImplIOS.mm; sourceTree = "<group>"; };
|
||||
292DB13619B4574100A80320 /* UIEditBoxImplMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIEditBoxImplMac.h; sourceTree = "<group>"; };
|
||||
292DB13719B4574100A80320 /* UIEditBoxImplMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UIEditBoxImplMac.mm; sourceTree = "<group>"; };
|
||||
292DB13819B4574100A80320 /* UIEditBoxImplNone.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIEditBoxImplNone.cpp; sourceTree = "<group>"; };
|
||||
292DB15D19B461CA00A80320 /* ExtensionDeprecated.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ExtensionDeprecated.cpp; sourceTree = "<group>"; };
|
||||
292DB15E19B461CA00A80320 /* ExtensionDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExtensionDeprecated.h; sourceTree = "<group>"; };
|
||||
29394CEC19B01DBA00D2DE1A /* UIWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIWebView.h; sourceTree = "<group>"; };
|
||||
29394CED19B01DBA00D2DE1A /* UIWebView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UIWebView.mm; sourceTree = "<group>"; };
|
||||
29394CEE19B01DBA00D2DE1A /* UIWebViewImpl_iOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIWebViewImpl_iOS.h; sourceTree = "<group>"; };
|
||||
29394CEF19B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UIWebViewImpl_iOS.mm; sourceTree = "<group>"; };
|
||||
2958244919873D8E00F9746D /* UIScale9Sprite.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIScale9Sprite.cpp; sourceTree = "<group>"; };
|
||||
2958244A19873D8E00F9746D /* UIScale9Sprite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIScale9Sprite.h; sourceTree = "<group>"; };
|
||||
2986667818B1B079000E39CA /* CCTweenFunction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCTweenFunction.cpp; sourceTree = "<group>"; };
|
||||
|
@ -2397,18 +2431,6 @@
|
|||
46A168491807AF4E005B8026 /* CCControlUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCControlUtils.h; sourceTree = "<group>"; };
|
||||
46A1684A1807AF4E005B8026 /* CCInvocation.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CCInvocation.cpp; sourceTree = "<group>"; };
|
||||
46A1684B1807AF4E005B8026 /* CCInvocation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCInvocation.h; sourceTree = "<group>"; };
|
||||
46A1684C1807AF4E005B8026 /* CCScale9Sprite.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CCScale9Sprite.cpp; sourceTree = "<group>"; };
|
||||
46A1684D1807AF4E005B8026 /* CCScale9Sprite.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCScale9Sprite.h; sourceTree = "<group>"; };
|
||||
46A1684F1807AF4E005B8026 /* CCEditBox.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CCEditBox.cpp; sourceTree = "<group>"; };
|
||||
46A168501807AF4E005B8026 /* CCEditBox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCEditBox.h; sourceTree = "<group>"; };
|
||||
46A168511807AF4E005B8026 /* CCEditBoxImpl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCEditBoxImpl.h; sourceTree = "<group>"; };
|
||||
46A168521807AF4E005B8026 /* CCEditBoxImplAndroid.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CCEditBoxImplAndroid.cpp; sourceTree = "<group>"; };
|
||||
46A168531807AF4E005B8026 /* CCEditBoxImplAndroid.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCEditBoxImplAndroid.h; sourceTree = "<group>"; };
|
||||
46A168541807AF4E005B8026 /* CCEditBoxImplIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCEditBoxImplIOS.h; sourceTree = "<group>"; };
|
||||
46A168551807AF4E005B8026 /* CCEditBoxImplIOS.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = CCEditBoxImplIOS.mm; sourceTree = "<group>"; };
|
||||
46A168581807AF4E005B8026 /* CCEditBoxImplNone.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CCEditBoxImplNone.cpp; sourceTree = "<group>"; };
|
||||
46A1685B1807AF4E005B8026 /* CCEditBoxImplWin.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CCEditBoxImplWin.cpp; sourceTree = "<group>"; };
|
||||
46A1685C1807AF4E005B8026 /* CCEditBoxImplWin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCEditBoxImplWin.h; sourceTree = "<group>"; };
|
||||
46A1685E1807AF4E005B8026 /* CCScrollView.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; path = CCScrollView.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
||||
46A1685F1807AF4E005B8026 /* CCScrollView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CCScrollView.h; sourceTree = "<group>"; };
|
||||
46A168621807AF4E005B8026 /* CCTableView.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CCTableView.cpp; sourceTree = "<group>"; };
|
||||
|
@ -2859,8 +2881,6 @@
|
|||
B276EF5C1988D1D500CD400F /* CCVertexIndexData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCVertexIndexData.cpp; sourceTree = "<group>"; };
|
||||
B276EF5D1988D1D500CD400F /* CCVertexIndexBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCVertexIndexBuffer.h; sourceTree = "<group>"; };
|
||||
B276EF5E1988D1D500CD400F /* CCVertexIndexBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCVertexIndexBuffer.cpp; sourceTree = "<group>"; };
|
||||
B282B47C1980E02B00666787 /* CCEditBoxImplMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CCEditBoxImplMac.mm; sourceTree = "<group>"; };
|
||||
B282B47D1980E02B00666787 /* CCEditBoxImplMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCEditBoxImplMac.h; sourceTree = "<group>"; };
|
||||
B29594AF1926D5D9003EEF37 /* ccShader_3D_Color.frag */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; path = ccShader_3D_Color.frag; sourceTree = "<group>"; };
|
||||
B29594B01926D5D9003EEF37 /* ccShader_3D_ColorTex.frag */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; path = ccShader_3D_ColorTex.frag; sourceTree = "<group>"; };
|
||||
B29594B11926D5D9003EEF37 /* ccShader_3D_PositionTex.vert */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; path = ccShader_3D_PositionTex.vert; sourceTree = "<group>"; };
|
||||
|
@ -3351,13 +3371,6 @@
|
|||
name = "text-input-node";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1A5702CC180BCE410088DEC7 /* textures */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = textures;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1A5702DF180BCE610088DEC7 /* tilemap-parallax-nodes */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -3980,6 +3993,23 @@
|
|||
path = ../cocos/ui;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
292DB12E19B4574100A80320 /* UIEditBox */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
292DB12F19B4574100A80320 /* UIEditBox.cpp */,
|
||||
292DB13019B4574100A80320 /* UIEditBox.h */,
|
||||
292DB13119B4574100A80320 /* UIEditBoxImpl.h */,
|
||||
292DB13219B4574100A80320 /* UIEditBoxImplAndroid.cpp */,
|
||||
292DB13319B4574100A80320 /* UIEditBoxImplAndroid.h */,
|
||||
292DB13419B4574100A80320 /* UIEditBoxImplIOS.h */,
|
||||
292DB13519B4574100A80320 /* UIEditBoxImplIOS.mm */,
|
||||
292DB13619B4574100A80320 /* UIEditBoxImplMac.h */,
|
||||
292DB13719B4574100A80320 /* UIEditBoxImplMac.mm */,
|
||||
292DB13819B4574100A80320 /* UIEditBoxImplNone.cpp */,
|
||||
);
|
||||
path = UIEditBox;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29CB8F501929D63600C841D6 /* layout */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -4018,6 +4048,10 @@
|
|||
29CB8F521929D65500C841D6 /* experimental */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
29394CEC19B01DBA00D2DE1A /* UIWebView.h */,
|
||||
29394CED19B01DBA00D2DE1A /* UIWebView.mm */,
|
||||
29394CEE19B01DBA00D2DE1A /* UIWebViewImpl_iOS.h */,
|
||||
29394CEF19B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm */,
|
||||
3EA0FB69191C841D00B170C8 /* UIVideoPlayer.h */,
|
||||
3EA0FB6A191C841D00B170C8 /* UIVideoPlayerIOS.mm */,
|
||||
);
|
||||
|
@ -4027,6 +4061,7 @@
|
|||
29CB8F531929D67D00C841D6 /* widgets */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
292DB12E19B4574100A80320 /* UIEditBox */,
|
||||
2905F9FE18CF08D000240AA3 /* UIListView.cpp */,
|
||||
2905F9FF18CF08D000240AA3 /* UIListView.h */,
|
||||
2905FA0018CF08D000240AA3 /* UILoadingBar.cpp */,
|
||||
|
@ -4126,6 +4161,8 @@
|
|||
46A167981807AF4D005B8026 /* extensions */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
292DB15D19B461CA00A80320 /* ExtensionDeprecated.cpp */,
|
||||
292DB15E19B461CA00A80320 /* ExtensionDeprecated.h */,
|
||||
46A167D21807AF4D005B8026 /* cocos-ext.h */,
|
||||
46A168321807AF4E005B8026 /* ExtensionMacros.h */,
|
||||
1AAF5350180E305F000584C8 /* assets-manager */,
|
||||
|
@ -4140,7 +4177,6 @@
|
|||
isa = PBXGroup;
|
||||
children = (
|
||||
46A168341807AF4E005B8026 /* CCControlExtension */,
|
||||
46A1684E1807AF4E005B8026 /* CCEditBox */,
|
||||
46A1685D1807AF4E005B8026 /* CCScrollView */,
|
||||
);
|
||||
path = GUI;
|
||||
|
@ -4172,31 +4208,10 @@
|
|||
46A168491807AF4E005B8026 /* CCControlUtils.h */,
|
||||
46A1684A1807AF4E005B8026 /* CCInvocation.cpp */,
|
||||
46A1684B1807AF4E005B8026 /* CCInvocation.h */,
|
||||
46A1684C1807AF4E005B8026 /* CCScale9Sprite.cpp */,
|
||||
46A1684D1807AF4E005B8026 /* CCScale9Sprite.h */,
|
||||
);
|
||||
path = CCControlExtension;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
46A1684E1807AF4E005B8026 /* CCEditBox */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B282B47C1980E02B00666787 /* CCEditBoxImplMac.mm */,
|
||||
B282B47D1980E02B00666787 /* CCEditBoxImplMac.h */,
|
||||
46A1684F1807AF4E005B8026 /* CCEditBox.cpp */,
|
||||
46A168501807AF4E005B8026 /* CCEditBox.h */,
|
||||
46A168511807AF4E005B8026 /* CCEditBoxImpl.h */,
|
||||
46A168521807AF4E005B8026 /* CCEditBoxImplAndroid.cpp */,
|
||||
46A168531807AF4E005B8026 /* CCEditBoxImplAndroid.h */,
|
||||
46A168541807AF4E005B8026 /* CCEditBoxImplIOS.h */,
|
||||
46A168551807AF4E005B8026 /* CCEditBoxImplIOS.mm */,
|
||||
46A168581807AF4E005B8026 /* CCEditBoxImplNone.cpp */,
|
||||
46A1685B1807AF4E005B8026 /* CCEditBoxImplWin.cpp */,
|
||||
46A1685C1807AF4E005B8026 /* CCEditBoxImplWin.h */,
|
||||
);
|
||||
path = CCEditBox;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
46A1685D1807AF4E005B8026 /* CCScrollView */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -4489,7 +4504,6 @@
|
|||
1A570275180BCC840088DEC7 /* sprite-nodes */,
|
||||
1A57029A180BCD4F0088DEC7 /* support */,
|
||||
1A5702BC180BCE0A0088DEC7 /* text-input-node */,
|
||||
1A5702CC180BCE410088DEC7 /* textures */,
|
||||
1A5702DF180BCE610088DEC7 /* tilemap-parallax-nodes */,
|
||||
);
|
||||
name = 2d;
|
||||
|
@ -4943,9 +4957,11 @@
|
|||
50ABBE851925AB6F00A911A9 /* ccFPSImages.h in Headers */,
|
||||
15AE1A5319AAD40300C27E9E /* b2Draw.h in Headers */,
|
||||
5034CA39191D591100CE6051 /* ccShader_PositionColorLengthTexture.frag in Headers */,
|
||||
292DB14B19B4574100A80320 /* UIEditBoxImplMac.h in Headers */,
|
||||
50ABBE891925AB6F00A911A9 /* CCMap.h in Headers */,
|
||||
50ABBE8D1925AB6F00A911A9 /* CCNS.h in Headers */,
|
||||
50ABBEA51925AB6F00A911A9 /* CCScriptSupport.h in Headers */,
|
||||
292DB14519B4574100A80320 /* UIEditBoxImplAndroid.h in Headers */,
|
||||
15AE1B9A19AADFDF00C27E9E /* UIHBox.h in Headers */,
|
||||
15AE18EB19AAD35000C27E9E /* CCActionNode.h in Headers */,
|
||||
15AE1A3819AAD3D500C27E9E /* b2Shape.h in Headers */,
|
||||
|
@ -5020,7 +5036,6 @@
|
|||
15AE199919AAD39600C27E9E /* LoadingBarReader.h in Headers */,
|
||||
15AE1A8F19AAD40300C27E9E /* b2RopeJoint.h in Headers */,
|
||||
15AE18ED19AAD35000C27E9E /* CCActionObject.h in Headers */,
|
||||
15AE1C0C19AAE02D00C27E9E /* CCEditBoxImpl.h in Headers */,
|
||||
ED9C6A9618599AD8000A5232 /* CCNodeGrid.h in Headers */,
|
||||
15AE18A719AAD33D00C27E9E /* CCScrollViewLoader.h in Headers */,
|
||||
15AE184819AAD2F700C27E9E /* cocos3d.h in Headers */,
|
||||
|
@ -5030,7 +5045,6 @@
|
|||
50ABBEA11925AB6F00A911A9 /* CCScheduler.h in Headers */,
|
||||
15AE1B6219AADA9900C27E9E /* UIButton.h in Headers */,
|
||||
50ABBDB71925AB4100A911A9 /* CCTexture2D.h in Headers */,
|
||||
15AE1BE119AAE01E00C27E9E /* CCScale9Sprite.h in Headers */,
|
||||
50ABBE811925AB6F00A911A9 /* CCEventType.h in Headers */,
|
||||
1A57008F180BC5A10088DEC7 /* CCActionTiledGrid.h in Headers */,
|
||||
15AE19A319AAD39600C27E9E /* TextBMFontReader.h in Headers */,
|
||||
|
@ -5039,6 +5053,7 @@
|
|||
1A570093180BC5A10088DEC7 /* CCActionTween.h in Headers */,
|
||||
50ABBD4A1925AB0000A911A9 /* Mat4.h in Headers */,
|
||||
15AE1A6919AAD40300C27E9E /* b2WorldCallbacks.h in Headers */,
|
||||
29394CF419B01DBA00D2DE1A /* UIWebViewImpl_iOS.h in Headers */,
|
||||
1A57009A180BC5C10088DEC7 /* CCAtlasNode.h in Headers */,
|
||||
15AE190819AAD35000C27E9E /* CCDatas.h in Headers */,
|
||||
1A5700A0180BC5D20088DEC7 /* CCNode.h in Headers */,
|
||||
|
@ -5174,6 +5189,7 @@
|
|||
15AE188519AAD33D00C27E9E /* CCBSequence.h in Headers */,
|
||||
15AE1AE219AAD42500C27E9E /* cpDampedRotarySpring.h in Headers */,
|
||||
5034CA49191D591100CE6051 /* ccShader_Label_df.frag in Headers */,
|
||||
292DB14119B4574100A80320 /* UIEditBoxImpl.h in Headers */,
|
||||
1A01C68C18F57BE800EFE3A6 /* CCDeprecated.h in Headers */,
|
||||
50ABBD561925AB0000A911A9 /* TransformUtils.h in Headers */,
|
||||
299754F6193EC95400A54AC3 /* ObjectFactory.h in Headers */,
|
||||
|
@ -5182,6 +5198,7 @@
|
|||
15AE18FB19AAD35000C27E9E /* CCColliderDetector.h in Headers */,
|
||||
15AE19E119AAD3A700C27E9E /* Skeleton.h in Headers */,
|
||||
1A570280180BCC900088DEC7 /* CCSprite.h in Headers */,
|
||||
292DB14719B4574100A80320 /* UIEditBoxImplIOS.h in Headers */,
|
||||
15AE1A9119AAD40300C27E9E /* b2WeldJoint.h in Headers */,
|
||||
15AE1A5419AAD40300C27E9E /* b2GrowableStack.h in Headers */,
|
||||
15AE1B4E19AADA9900C27E9E /* UIListView.h in Headers */,
|
||||
|
@ -5236,6 +5253,7 @@
|
|||
15AE191019AAD35000C27E9E /* CCInputDelegate.h in Headers */,
|
||||
15AE184C19AAD30800C27E9E /* SimpleAudioEngine.h in Headers */,
|
||||
50ABBDA11925AB4100A911A9 /* CCGroupCommand.h in Headers */,
|
||||
29394CF019B01DBA00D2DE1A /* UIWebView.h in Headers */,
|
||||
15AE186519AAD31D00C27E9E /* CDOpenALSupport.h in Headers */,
|
||||
15AE1B5C19AADA9900C27E9E /* UITextAtlas.h in Headers */,
|
||||
1A5702FC180BCE750088DEC7 /* CCTMXXMLParser.h in Headers */,
|
||||
|
@ -5285,7 +5303,6 @@
|
|||
15AE1BCA19AAE01E00C27E9E /* CCControl.h in Headers */,
|
||||
50ABBDBF1925AB4100A911A9 /* CCTextureCache.h in Headers */,
|
||||
15AE186719AAD31D00C27E9E /* CDXMacOSXSupport.h in Headers */,
|
||||
15AE1C0A19AAE02500C27E9E /* CCEditBox.h in Headers */,
|
||||
B37510741823AC9F00B3BA6A /* CCPhysicsContactInfo_chipmunk.h in Headers */,
|
||||
15AE1ADF19AAD42500C27E9E /* chipmunk_types.h in Headers */,
|
||||
5034CA35191D591100CE6051 /* ccShader_PositionTexture.frag in Headers */,
|
||||
|
@ -5335,6 +5352,7 @@
|
|||
15AE18A919AAD33D00C27E9E /* CCSpriteLoader.h in Headers */,
|
||||
15AE198419AAD36400C27E9E /* WidgetReaderProtocol.h in Headers */,
|
||||
50ABBEC91925AB6F00A911A9 /* firePngData.h in Headers */,
|
||||
292DB16119B461CA00A80320 /* ExtensionDeprecated.h in Headers */,
|
||||
503DD8F51926B0DB00CD74DD /* CCIMEDelegate.h in Headers */,
|
||||
50ABBD5A1925AB0000A911A9 /* Vec2.h in Headers */,
|
||||
15AE1BDB19AAE01E00C27E9E /* CCControlSwitch.h in Headers */,
|
||||
|
@ -5364,6 +5382,7 @@
|
|||
15AE1AEC19AAD42500C27E9E /* util.h in Headers */,
|
||||
15AE19DD19AAD3A700C27E9E /* Json.h in Headers */,
|
||||
15AE191A19AAD35000C27E9E /* CCSSceneReader.h in Headers */,
|
||||
292DB13F19B4574100A80320 /* UIEditBox.h in Headers */,
|
||||
50ABBE671925AB6F00A911A9 /* CCEventListenerCustom.h in Headers */,
|
||||
15AE18E219AAD35000C27E9E /* TriggerMng.h in Headers */,
|
||||
15AE1B2B19AAD43700C27E9E /* prime.h in Headers */,
|
||||
|
@ -5416,7 +5435,6 @@
|
|||
50ABBE771925AB6F00A911A9 /* CCEventListenerTouch.h in Headers */,
|
||||
5034CA33191D591100CE6051 /* ccShader_PositionTexture_uColor.frag in Headers */,
|
||||
50ABC0171926664800A911A9 /* CCImage.h in Headers */,
|
||||
15AE1C0E19AAE03400C27E9E /* CCEditBoxImplMac.h in Headers */,
|
||||
15AE1AED19AAD42500C27E9E /* cpArbiter.h in Headers */,
|
||||
50ABBDA91925AB4100A911A9 /* CCRenderCommand.h in Headers */,
|
||||
50ABBD951925AB4100A911A9 /* CCGLProgramState.h in Headers */,
|
||||
|
@ -5447,6 +5465,7 @@
|
|||
15AE183319AAD2F700C27E9E /* CCOBB.h in Headers */,
|
||||
15AE18B119AAD33D00C27E9E /* CCBMemberVariableAssigner.h in Headers */,
|
||||
15AE1AFA19AAD42500C27E9E /* cpConstraint.h in Headers */,
|
||||
292DB14019B4574100A80320 /* UIEditBox.h in Headers */,
|
||||
50ABBD3B1925AB0000A911A9 /* CCAffineTransform.h in Headers */,
|
||||
15AE1A0A19AAD3A700C27E9E /* CCSkeleton.h in Headers */,
|
||||
5034CA38191D591100CE6051 /* ccShader_PositionColorLengthTexture.vert in Headers */,
|
||||
|
@ -5455,6 +5474,7 @@
|
|||
46A171011807CECB005B8026 /* CCPhysicsJoint.h in Headers */,
|
||||
46A170FD1807CECB005B8026 /* CCPhysicsBody.h in Headers */,
|
||||
50ABBE9C1925AB6F00A911A9 /* CCRef.h in Headers */,
|
||||
292DB16219B461CA00A80320 /* ExtensionDeprecated.h in Headers */,
|
||||
50ABBD961925AB4100A911A9 /* CCGLProgramState.h in Headers */,
|
||||
46A171061807CECB005B8026 /* CCPhysicsWorld.h in Headers */,
|
||||
50ABBDB41925AB4100A911A9 /* ccShaders.h in Headers */,
|
||||
|
@ -5542,6 +5562,7 @@
|
|||
15AE19F819AAD3A700C27E9E /* Animation.h in Headers */,
|
||||
1A5700A1180BC5D20088DEC7 /* CCNode.h in Headers */,
|
||||
15AE181919AAD2F700C27E9E /* CCAttachNode.h in Headers */,
|
||||
292DB14C19B4574100A80320 /* UIEditBoxImplMac.h in Headers */,
|
||||
15AE1BF019AAE01E00C27E9E /* CCControlHuePicker.h in Headers */,
|
||||
15AE18B819AAD33D00C27E9E /* CCBSequenceProperty.h in Headers */,
|
||||
503DD8E41926736A00CD74DD /* CCDirectorCaller.h in Headers */,
|
||||
|
@ -5567,9 +5588,11 @@
|
|||
15AE1AB319AAD40300C27E9E /* b2CircleContact.h in Headers */,
|
||||
5034CA2E191D591100CE6051 /* ccShader_PositionTextureA8Color.frag in Headers */,
|
||||
15AE1A4F19AAD3D500C27E9E /* b2Shape.h in Headers */,
|
||||
29394CF519B01DBA00D2DE1A /* UIWebViewImpl_iOS.h in Headers */,
|
||||
50ABBD5B1925AB0000A911A9 /* Vec2.h in Headers */,
|
||||
50ABBD411925AB0000A911A9 /* CCMath.h in Headers */,
|
||||
1A5701A0180BCB590088DEC7 /* CCFont.h in Headers */,
|
||||
292DB14819B4574100A80320 /* UIEditBoxImplIOS.h in Headers */,
|
||||
15AE1A0819AAD3A700C27E9E /* BoneData.h in Headers */,
|
||||
50ABBD9A1925AB4100A911A9 /* CCGLProgramStateCache.h in Headers */,
|
||||
15AE181D19AAD2F700C27E9E /* CCBundle3D.h in Headers */,
|
||||
|
@ -5602,6 +5625,7 @@
|
|||
15AE196B19AAD35100C27E9E /* DictionaryHelper.h in Headers */,
|
||||
15AE1AA619AAD40300C27E9E /* b2Fixture.h in Headers */,
|
||||
15AE1BBA19AADFF000C27E9E /* HttpClient.h in Headers */,
|
||||
292DB14619B4574100A80320 /* UIEditBoxImplAndroid.h in Headers */,
|
||||
15AE1AF819AAD42500C27E9E /* chipmunk_types.h in Headers */,
|
||||
15AE1B9419AADA9A00C27E9E /* GUIDefine.h in Headers */,
|
||||
15AE183B19AAD2F700C27E9E /* CCRay.h in Headers */,
|
||||
|
@ -5680,6 +5704,7 @@
|
|||
15AE1BAC19AADFDF00C27E9E /* UILayout.h in Headers */,
|
||||
1A570230180BCC1A0088DEC7 /* CCParticleSystemQuad.h in Headers */,
|
||||
15AE1AF619AAD42500C27E9E /* chipmunk_ffi.h in Headers */,
|
||||
29394CF119B01DBA00D2DE1A /* UIWebView.h in Headers */,
|
||||
15AE18B419AAD33D00C27E9E /* CCBSelectorResolver.h in Headers */,
|
||||
B24AA988195A675C007B4522 /* CCFastTMXLayer.h in Headers */,
|
||||
15AE1AB919AAD40300C27E9E /* b2EdgeAndCircleContact.h in Headers */,
|
||||
|
@ -5743,6 +5768,7 @@
|
|||
15AE1B8D19AADA9A00C27E9E /* UIScale9Sprite.h in Headers */,
|
||||
15AE18AC19AAD33D00C27E9E /* CCBAnimationManager.h in Headers */,
|
||||
15AE1A1A19AAD3A700C27E9E /* Skin.h in Headers */,
|
||||
292DB14219B4574100A80320 /* UIEditBoxImpl.h in Headers */,
|
||||
1A570303180BCE890088DEC7 /* CCParallaxNode.h in Headers */,
|
||||
50ABBE2A1925AB6F00A911A9 /* CCAutoreleasePool.h in Headers */,
|
||||
1A57030F180BCF190088DEC7 /* CCComponent.h in Headers */,
|
||||
|
@ -5764,7 +5790,6 @@
|
|||
15AE1BFE19AAE01E00C27E9E /* CCInvocation.h in Headers */,
|
||||
15AE1A9E19AAD40300C27E9E /* b2StackAllocator.h in Headers */,
|
||||
1A570357180BD0B00088DEC7 /* ioapi.h in Headers */,
|
||||
15AE1C0F19AAE03E00C27E9E /* CCEditBoxImplIOS.h in Headers */,
|
||||
15AE1A1619AAD3A700C27E9E /* SkeletonData.h in Headers */,
|
||||
50ABBD4B1925AB0000A911A9 /* Mat4.h in Headers */,
|
||||
15AE1BBE19AADFF000C27E9E /* SocketIO.h in Headers */,
|
||||
|
@ -5825,7 +5850,6 @@
|
|||
15AE198019AAD35700C27E9E /* CCTimeLine.h in Headers */,
|
||||
50ABBD4F1925AB0000A911A9 /* MathUtil.h in Headers */,
|
||||
1A01C69718F57BE800EFE3A6 /* CCInteger.h in Headers */,
|
||||
15AE1C0019AAE01E00C27E9E /* CCScale9Sprite.h in Headers */,
|
||||
15AE1C0619AAE01E00C27E9E /* CCTableViewCell.h in Headers */,
|
||||
15AE19AB19AAD39700C27E9E /* ListViewReader.h in Headers */,
|
||||
50ABBEBE1925AB6F00A911A9 /* ccUtils.h in Headers */,
|
||||
|
@ -5881,13 +5905,11 @@
|
|||
B276EF641988D1D500CD400F /* CCVertexIndexBuffer.h in Headers */,
|
||||
15AE1A0619AAD3A700C27E9E /* Bone.h in Headers */,
|
||||
ED9C6A9718599AD8000A5232 /* CCNodeGrid.h in Headers */,
|
||||
15AE1C0819AAE02500C27E9E /* CCEditBox.h in Headers */,
|
||||
50ABC0201926664800A911A9 /* CCThread.h in Headers */,
|
||||
15AE1B8519AADA9A00C27E9E /* UITextField.h in Headers */,
|
||||
1A01C69318F57BE800EFE3A6 /* CCDouble.h in Headers */,
|
||||
15AE184B19AAD30500C27E9E /* Export.h in Headers */,
|
||||
15AE196019AAD35100C27E9E /* CCSpriteFrameCacheHelper.h in Headers */,
|
||||
15AE1C0B19AAE02D00C27E9E /* CCEditBoxImpl.h in Headers */,
|
||||
50ABBE221925AB6F00A911A9 /* atitc.h in Headers */,
|
||||
15AE1AB719AAD40300C27E9E /* b2ContactSolver.h in Headers */,
|
||||
15AE193319AAD35100C27E9E /* CCActionNode.h in Headers */,
|
||||
|
@ -6000,6 +6022,7 @@
|
|||
15AE1B1E19AAD43700C27E9E /* cpBody.c in Sources */,
|
||||
15AE1BDE19AAE01E00C27E9E /* CCInvocation.cpp in Sources */,
|
||||
3EA3EDBC1991CDFA00645534 /* CCCamera.cpp in Sources */,
|
||||
292DB14F19B4574100A80320 /* UIEditBoxImplNone.cpp in Sources */,
|
||||
15AE199419AAD39600C27E9E /* LayoutReader.cpp in Sources */,
|
||||
1A01C68A18F57BE800EFE3A6 /* CCDeprecated.cpp in Sources */,
|
||||
1A1645B0191B726C008C7C7F /* ConvertUTF.c in Sources */,
|
||||
|
@ -6031,7 +6054,6 @@
|
|||
15AE186319AAD31D00C27E9E /* CDAudioManager.m in Sources */,
|
||||
15AE1B2219AAD43700C27E9E /* cpShape.c in Sources */,
|
||||
ED9C6A9418599AD8000A5232 /* CCNodeGrid.cpp in Sources */,
|
||||
15AE1C0D19AAE03400C27E9E /* CCEditBoxImplMac.mm in Sources */,
|
||||
15AE1A2C19AAD3D500C27E9E /* b2DynamicTree.cpp in Sources */,
|
||||
15AE184019AAD2F700C27E9E /* CCSprite3D.cpp in Sources */,
|
||||
46A170E61807CECA005B8026 /* CCPhysicsBody.cpp in Sources */,
|
||||
|
@ -6043,7 +6065,6 @@
|
|||
50ABBEBB1925AB6F00A911A9 /* ccUtils.cpp in Sources */,
|
||||
15AE186A19AAD31D00C27E9E /* CocosDenshion.m in Sources */,
|
||||
15AE198C19AAD36E00C27E9E /* CheckBoxReader.cpp in Sources */,
|
||||
15AE1C0919AAE02500C27E9E /* CCEditBox.cpp in Sources */,
|
||||
15AE1B6319AADA9900C27E9E /* UICheckBox.cpp in Sources */,
|
||||
15EFA211198A2BB5000C57D3 /* CCProtectedNode.cpp in Sources */,
|
||||
50ABBEB71925AB6F00A911A9 /* ccUTF8.cpp in Sources */,
|
||||
|
@ -6120,6 +6141,7 @@
|
|||
50ABBE391925AB6F00A911A9 /* CCData.cpp in Sources */,
|
||||
1A57010E180BC8EE0088DEC7 /* CCDrawingPrimitives.cpp in Sources */,
|
||||
50ABBED71925AB6F00A911A9 /* ZipUtils.cpp in Sources */,
|
||||
292DB14919B4574100A80320 /* UIEditBoxImplIOS.mm in Sources */,
|
||||
15AE181019AAD2F700C27E9E /* CCAnimation3D.cpp in Sources */,
|
||||
1A01C68418F57BE800EFE3A6 /* CCArray.cpp in Sources */,
|
||||
1A570112180BC8EE0088DEC7 /* CCDrawNode.cpp in Sources */,
|
||||
|
@ -6132,6 +6154,7 @@
|
|||
15AE187A19AAD33D00C27E9E /* CCBAnimationManager.cpp in Sources */,
|
||||
15AE1B6D19AADA9900C27E9E /* UIHelper.cpp in Sources */,
|
||||
15AE1A8A19AAD40300C27E9E /* b2PulleyJoint.cpp in Sources */,
|
||||
29394CF219B01DBA00D2DE1A /* UIWebView.mm in Sources */,
|
||||
15AE1BD419AAE01E00C27E9E /* CCControlSaturationBrightnessPicker.cpp in Sources */,
|
||||
1A57019D180BCB590088DEC7 /* CCFont.cpp in Sources */,
|
||||
1A5701A1180BCB590088DEC7 /* CCFontAtlas.cpp in Sources */,
|
||||
|
@ -6149,6 +6172,7 @@
|
|||
15AE1B5319AADA9900C27E9E /* UIRichText.cpp in Sources */,
|
||||
15AE19DC19AAD3A700C27E9E /* Json.cpp in Sources */,
|
||||
15AE1B2419AAD43700C27E9E /* cpSpaceComponent.c in Sources */,
|
||||
292DB13D19B4574100A80320 /* UIEditBox.cpp in Sources */,
|
||||
50ABBE551925AB6F00A911A9 /* CCEventFocus.cpp in Sources */,
|
||||
15AE1A8819AAD40300C27E9E /* b2PrismaticJoint.cpp in Sources */,
|
||||
50ABBE491925AB6F00A911A9 /* CCEventAcceleration.cpp in Sources */,
|
||||
|
@ -6197,6 +6221,8 @@
|
|||
1A570202180BCBD40088DEC7 /* CCClippingNode.cpp in Sources */,
|
||||
1A570208180BCBDF0088DEC7 /* CCMotionStreak.cpp in Sources */,
|
||||
1A570210180BCBF40088DEC7 /* CCProgressTimer.cpp in Sources */,
|
||||
292DB15F19B461CA00A80320 /* ExtensionDeprecated.cpp in Sources */,
|
||||
292DB14D19B4574100A80320 /* UIEditBoxImplMac.mm in Sources */,
|
||||
50ABBDB51925AB4100A911A9 /* CCTexture2D.cpp in Sources */,
|
||||
1A570214180BCBF40088DEC7 /* CCRenderTexture.cpp in Sources */,
|
||||
15AE1BD019AAE01E00C27E9E /* CCControlHuePicker.cpp in Sources */,
|
||||
|
@ -6216,7 +6242,6 @@
|
|||
B24AA989195A675C007B4522 /* CCFastTMXTiledMap.cpp in Sources */,
|
||||
B60C5BD419AC68B10056FBDE /* CCBillBoard.cpp in Sources */,
|
||||
15AE199619AAD39600C27E9E /* ListViewReader.cpp in Sources */,
|
||||
15AE1BE019AAE01E00C27E9E /* CCScale9Sprite.cpp in Sources */,
|
||||
50ABC0191926664800A911A9 /* CCSAXParser.cpp in Sources */,
|
||||
15AE1B1419AAD43700C27E9E /* cpPinJoint.c in Sources */,
|
||||
15AE189219AAD33D00C27E9E /* CCLayerGradientLoader.cpp in Sources */,
|
||||
|
@ -6298,6 +6323,7 @@
|
|||
15AE196E19AAD35700C27E9E /* CCActionTimelineCache.cpp in Sources */,
|
||||
50ABBEB31925AB6F00A911A9 /* CCUserDefault.mm in Sources */,
|
||||
50ABBEB51925AB6F00A911A9 /* CCUserDefaultAndroid.cpp in Sources */,
|
||||
29394CF619B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm in Sources */,
|
||||
50ABBE831925AB6F00A911A9 /* ccFPSImages.c in Sources */,
|
||||
15AE1B7019AADA9900C27E9E /* CocosGUI.cpp in Sources */,
|
||||
15AE19D019AAD3A700C27E9E /* AttachmentLoader.cpp in Sources */,
|
||||
|
@ -6335,6 +6361,7 @@
|
|||
50ABC0631926664800A911A9 /* CCDevice.mm in Sources */,
|
||||
15AE1A2819AAD3D500C27E9E /* b2Collision.cpp in Sources */,
|
||||
15AE1B6719AADA9900C27E9E /* UIScale9Sprite.cpp in Sources */,
|
||||
292DB14319B4574100A80320 /* UIEditBoxImplAndroid.cpp in Sources */,
|
||||
15AE1A5219AAD40300C27E9E /* b2Draw.cpp in Sources */,
|
||||
50ABBE1F1925AB6F00A911A9 /* atitc.cpp in Sources */,
|
||||
1A01C69818F57BE800EFE3A6 /* CCSet.cpp in Sources */,
|
||||
|
@ -6448,6 +6475,7 @@
|
|||
46A171031807CECB005B8026 /* CCPhysicsShape.cpp in Sources */,
|
||||
50ABC0161926664800A911A9 /* CCImage.cpp in Sources */,
|
||||
1A01C6A518F58F7500EFE3A6 /* CCNotificationCenter.cpp in Sources */,
|
||||
292DB14E19B4574100A80320 /* UIEditBoxImplMac.mm in Sources */,
|
||||
15AE1BFB19AAE01E00C27E9E /* CCControlUtils.cpp in Sources */,
|
||||
15AE1B9019AADA9A00C27E9E /* UIWidget.cpp in Sources */,
|
||||
ED9C6A9518599AD8000A5232 /* CCNodeGrid.cpp in Sources */,
|
||||
|
@ -6499,6 +6527,7 @@
|
|||
15AE198E19AAD36E00C27E9E /* CheckBoxReader.cpp in Sources */,
|
||||
50ABBE621925AB6F00A911A9 /* CCEventListenerAcceleration.cpp in Sources */,
|
||||
15AE1AB619AAD40300C27E9E /* b2ContactSolver.cpp in Sources */,
|
||||
292DB13E19B4574100A80320 /* UIEditBox.cpp in Sources */,
|
||||
3E6176681960F89B00DE83F5 /* CCController-iOS.mm in Sources */,
|
||||
15AE19EF19AAD3A700C27E9E /* SkeletonBounds.cpp in Sources */,
|
||||
15AE18B219AAD33D00C27E9E /* CCBReader.cpp in Sources */,
|
||||
|
@ -6544,6 +6573,7 @@
|
|||
15AE1B4319AAD43700C27E9E /* cpSpaceHash.c in Sources */,
|
||||
15AE1A1D19AAD3A700C27E9E /* SlotData.cpp in Sources */,
|
||||
50ABBD551925AB0000A911A9 /* TransformUtils.cpp in Sources */,
|
||||
292DB14419B4574100A80320 /* UIEditBoxImplAndroid.cpp in Sources */,
|
||||
15AE193619AAD35100C27E9E /* CCArmature.cpp in Sources */,
|
||||
1A57007A180BC5A10088DEC7 /* CCActionInstant.cpp in Sources */,
|
||||
15AE1AC419AAD40300C27E9E /* b2FrictionJoint.cpp in Sources */,
|
||||
|
@ -6563,7 +6593,6 @@
|
|||
1A570086180BC5A10088DEC7 /* CCActionPageTurn3D.cpp in Sources */,
|
||||
15AE1AB819AAD40300C27E9E /* b2EdgeAndCircleContact.cpp in Sources */,
|
||||
15AE19FF19AAD3A700C27E9E /* AtlasAttachmentLoader.cpp in Sources */,
|
||||
15AE1C0719AAE02500C27E9E /* CCEditBox.cpp in Sources */,
|
||||
1A57008A180BC5A10088DEC7 /* CCActionProgressTimer.cpp in Sources */,
|
||||
15AE18AF19AAD33D00C27E9E /* CCBKeyframe.cpp in Sources */,
|
||||
15AE19FB19AAD3A700C27E9E /* AnimationStateData.cpp in Sources */,
|
||||
|
@ -6593,6 +6622,7 @@
|
|||
15AE195F19AAD35100C27E9E /* CCSpriteFrameCacheHelper.cpp in Sources */,
|
||||
15AE193019AAD35100C27E9E /* CCActionManagerEx.cpp in Sources */,
|
||||
503DD8E21926736A00CD74DD /* CCCommon.mm in Sources */,
|
||||
292DB14A19B4574100A80320 /* UIEditBoxImplIOS.mm in Sources */,
|
||||
15AE1A9419AAD40300C27E9E /* b2BlockAllocator.cpp in Sources */,
|
||||
15AE1B4419AAD43700C27E9E /* cpSpaceQuery.c in Sources */,
|
||||
15AE1A4D19AAD3D500C27E9E /* b2PolygonShape.cpp in Sources */,
|
||||
|
@ -6609,6 +6639,7 @@
|
|||
15AE1AB019AAD40300C27E9E /* b2ChainAndPolygonContact.cpp in Sources */,
|
||||
1A5701B2180BCB590088DEC7 /* CCFontFNT.cpp in Sources */,
|
||||
1A5701B6180BCB590088DEC7 /* CCFontFreeType.cpp in Sources */,
|
||||
292DB16019B461CA00A80320 /* ExtensionDeprecated.cpp in Sources */,
|
||||
50ABBEAC1925AB6F00A911A9 /* ccTypes.cpp in Sources */,
|
||||
15AE196A19AAD35100C27E9E /* DictionaryHelper.cpp in Sources */,
|
||||
15AE1A3F19AAD3D500C27E9E /* b2Collision.cpp in Sources */,
|
||||
|
@ -6642,6 +6673,7 @@
|
|||
50ABBD9C1925AB4100A911A9 /* ccGLStateCache.cpp in Sources */,
|
||||
1A5701E7180BCB8C0088DEC7 /* CCTransition.cpp in Sources */,
|
||||
15AE1AC019AAD40300C27E9E /* b2MotorJoint.cpp in Sources */,
|
||||
29394CF319B01DBA00D2DE1A /* UIWebView.mm in Sources */,
|
||||
15AE18BD19AAD33D00C27E9E /* CCLabelBMFontLoader.cpp in Sources */,
|
||||
50ABC01E1926664800A911A9 /* CCThread.cpp in Sources */,
|
||||
15AE1B3A19AAD43700C27E9E /* cpBB.c in Sources */,
|
||||
|
@ -6669,6 +6701,7 @@
|
|||
15AE194019AAD35100C27E9E /* CCBone.cpp in Sources */,
|
||||
1A570215180BCBF40088DEC7 /* CCRenderTexture.cpp in Sources */,
|
||||
1A570222180BCC1A0088DEC7 /* CCParticleBatchNode.cpp in Sources */,
|
||||
292DB15019B4574100A80320 /* UIEditBoxImplNone.cpp in Sources */,
|
||||
15AE19F119AAD3A700C27E9E /* Event.cpp in Sources */,
|
||||
15AE185F19AAD31200C27E9E /* SimpleAudioEngine.mm in Sources */,
|
||||
15AE1BE819AAE01E00C27E9E /* CCControl.cpp in Sources */,
|
||||
|
@ -6678,12 +6711,12 @@
|
|||
15AE182919AAD2F700C27E9E /* CCMeshSkin.cpp in Sources */,
|
||||
15AE1BBD19AADFF000C27E9E /* SocketIO.cpp in Sources */,
|
||||
15AE1A4319AAD3D500C27E9E /* b2DynamicTree.cpp in Sources */,
|
||||
15AE1BFF19AAE01E00C27E9E /* CCScale9Sprite.cpp in Sources */,
|
||||
15AE1A3A19AAD3D500C27E9E /* b2BroadPhase.cpp in Sources */,
|
||||
15AE19B619AAD39700C27E9E /* TextBMFontReader.cpp in Sources */,
|
||||
15AE1BFD19AAE01E00C27E9E /* CCInvocation.cpp in Sources */,
|
||||
B24AA98A195A675C007B4522 /* CCFastTMXTiledMap.cpp in Sources */,
|
||||
15AE18CE19AAD33D00C27E9E /* CCNodeLoader.cpp in Sources */,
|
||||
29394CF719B01DBA00D2DE1A /* UIWebViewImpl_iOS.mm in Sources */,
|
||||
15AE1AC619AAD40300C27E9E /* b2GearJoint.cpp in Sources */,
|
||||
B24AA986195A675C007B4522 /* CCFastTMXLayer.cpp in Sources */,
|
||||
1A57022E180BCC1A0088DEC7 /* CCParticleSystemQuad.cpp in Sources */,
|
||||
|
@ -6711,7 +6744,6 @@
|
|||
15AE19AE19AAD39700C27E9E /* PageViewReader.cpp in Sources */,
|
||||
3EA3EDBD1991CDFA00645534 /* CCCamera.cpp in Sources */,
|
||||
1A570297180BCCAB0088DEC7 /* CCAnimationCache.cpp in Sources */,
|
||||
15AE1C1019AAE03E00C27E9E /* CCEditBoxImplIOS.mm in Sources */,
|
||||
50ABBE321925AB6F00A911A9 /* CCConfiguration.cpp in Sources */,
|
||||
15AE1A9F19AAD40300C27E9E /* b2Timer.cpp in Sources */,
|
||||
15AE1AD419AAD40300C27E9E /* b2WeldJoint.cpp in Sources */,
|
||||
|
|
|
@ -472,8 +472,6 @@
|
|||
1AC35BEE18CECF0C00F37B72 /* CCControlStepperTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7318CECF0B00F37B72 /* CCControlStepperTest.cpp */; };
|
||||
1AC35BEF18CECF0C00F37B72 /* CCControlSwitchTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7618CECF0B00F37B72 /* CCControlSwitchTest.cpp */; };
|
||||
1AC35BF018CECF0C00F37B72 /* CCControlSwitchTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7618CECF0B00F37B72 /* CCControlSwitchTest.cpp */; };
|
||||
1AC35BF118CECF0C00F37B72 /* EditBoxTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7918CECF0B00F37B72 /* EditBoxTest.cpp */; };
|
||||
1AC35BF218CECF0C00F37B72 /* EditBoxTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7918CECF0B00F37B72 /* EditBoxTest.cpp */; };
|
||||
1AC35BF318CECF0C00F37B72 /* ExtensionsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7B18CECF0B00F37B72 /* ExtensionsTest.cpp */; };
|
||||
1AC35BF418CECF0C00F37B72 /* ExtensionsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7B18CECF0B00F37B72 /* ExtensionsTest.cpp */; };
|
||||
1AC35BF518CECF0C00F37B72 /* HttpClientTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7E18CECF0B00F37B72 /* HttpClientTest.cpp */; };
|
||||
|
@ -484,8 +482,6 @@
|
|||
1AC35BFA18CECF0C00F37B72 /* WebSocketTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8218CECF0B00F37B72 /* WebSocketTest.cpp */; };
|
||||
1AC35BFB18CECF0C00F37B72 /* NotificationCenterTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8518CECF0B00F37B72 /* NotificationCenterTest.cpp */; };
|
||||
1AC35BFC18CECF0C00F37B72 /* NotificationCenterTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8518CECF0B00F37B72 /* NotificationCenterTest.cpp */; };
|
||||
1AC35BFD18CECF0C00F37B72 /* Scale9SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8818CECF0B00F37B72 /* Scale9SpriteTest.cpp */; };
|
||||
1AC35BFE18CECF0C00F37B72 /* Scale9SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8818CECF0B00F37B72 /* Scale9SpriteTest.cpp */; };
|
||||
1AC35BFF18CECF0C00F37B72 /* CustomTableViewCell.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8B18CECF0B00F37B72 /* CustomTableViewCell.cpp */; };
|
||||
1AC35C0018CECF0C00F37B72 /* CustomTableViewCell.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8B18CECF0B00F37B72 /* CustomTableViewCell.cpp */; };
|
||||
1AC35C0118CECF0C00F37B72 /* TableViewTestScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8D18CECF0B00F37B72 /* TableViewTestScene.cpp */; };
|
||||
|
@ -863,8 +859,12 @@
|
|||
29080DE6191B595E0066F8DF /* UIWidgetAddNodeTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D8B191B595E0066F8DF /* UIWidgetAddNodeTest_Editor.cpp */; };
|
||||
290E94B5196FC16900694919 /* CocostudioParserTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 290E94B3196FC16900694919 /* CocostudioParserTest.cpp */; };
|
||||
290E94B6196FC16900694919 /* CocostudioParserTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 290E94B3196FC16900694919 /* CocostudioParserTest.cpp */; };
|
||||
292CF01419A1965E00E8E6A0 /* UIEditBoxTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292CF01219A1965E00E8E6A0 /* UIEditBoxTest.cpp */; };
|
||||
292CF01519A1965E00E8E6A0 /* UIEditBoxTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292CF01219A1965E00E8E6A0 /* UIEditBoxTest.cpp */; };
|
||||
295824591987415900F9746D /* UIScale9SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 295824571987415900F9746D /* UIScale9SpriteTest.cpp */; };
|
||||
2958245A1987415900F9746D /* UIScale9SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 295824571987415900F9746D /* UIScale9SpriteTest.cpp */; };
|
||||
298D7F6F19AC31F300FF096D /* UIWebViewTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 298D7F6D19AC31F300FF096D /* UIWebViewTest.cpp */; };
|
||||
29AFEF6719ACCAA000F6B10A /* Test.html in Resources */ = {isa = PBXBuildFile; fileRef = 29AFEF6619ACCAA000F6B10A /* Test.html */; };
|
||||
29FBBBFE196A9ECD00E65826 /* CocostudioParserJsonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29FBBBFC196A9ECD00E65826 /* CocostudioParserJsonTest.cpp */; };
|
||||
29FBBBFF196A9ECD00E65826 /* CocostudioParserJsonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29FBBBFC196A9ECD00E65826 /* CocostudioParserJsonTest.cpp */; };
|
||||
38FA2E73194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 38FA2E71194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp */; };
|
||||
|
@ -2553,8 +2553,6 @@
|
|||
1AC35A7418CECF0B00F37B72 /* CCControlStepperTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCControlStepperTest.h; sourceTree = "<group>"; };
|
||||
1AC35A7618CECF0B00F37B72 /* CCControlSwitchTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCControlSwitchTest.cpp; sourceTree = "<group>"; };
|
||||
1AC35A7718CECF0B00F37B72 /* CCControlSwitchTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCControlSwitchTest.h; sourceTree = "<group>"; };
|
||||
1AC35A7918CECF0B00F37B72 /* EditBoxTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EditBoxTest.cpp; sourceTree = "<group>"; };
|
||||
1AC35A7A18CECF0B00F37B72 /* EditBoxTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditBoxTest.h; sourceTree = "<group>"; };
|
||||
1AC35A7B18CECF0B00F37B72 /* ExtensionsTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ExtensionsTest.cpp; sourceTree = "<group>"; };
|
||||
1AC35A7C18CECF0B00F37B72 /* ExtensionsTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExtensionsTest.h; sourceTree = "<group>"; };
|
||||
1AC35A7E18CECF0B00F37B72 /* HttpClientTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HttpClientTest.cpp; sourceTree = "<group>"; };
|
||||
|
@ -2565,8 +2563,6 @@
|
|||
1AC35A8318CECF0B00F37B72 /* WebSocketTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebSocketTest.h; sourceTree = "<group>"; };
|
||||
1AC35A8518CECF0B00F37B72 /* NotificationCenterTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NotificationCenterTest.cpp; sourceTree = "<group>"; };
|
||||
1AC35A8618CECF0B00F37B72 /* NotificationCenterTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotificationCenterTest.h; sourceTree = "<group>"; };
|
||||
1AC35A8818CECF0B00F37B72 /* Scale9SpriteTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Scale9SpriteTest.cpp; sourceTree = "<group>"; };
|
||||
1AC35A8918CECF0B00F37B72 /* Scale9SpriteTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Scale9SpriteTest.h; sourceTree = "<group>"; };
|
||||
1AC35A8B18CECF0B00F37B72 /* CustomTableViewCell.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CustomTableViewCell.cpp; sourceTree = "<group>"; };
|
||||
1AC35A8C18CECF0B00F37B72 /* CustomTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomTableViewCell.h; sourceTree = "<group>"; };
|
||||
1AC35A8D18CECF0B00F37B72 /* TableViewTestScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TableViewTestScene.cpp; sourceTree = "<group>"; };
|
||||
|
@ -2884,8 +2880,13 @@
|
|||
29080D8C191B595E0066F8DF /* UIWidgetAddNodeTest_Editor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIWidgetAddNodeTest_Editor.h; sourceTree = "<group>"; };
|
||||
290E94B3196FC16900694919 /* CocostudioParserTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CocostudioParserTest.cpp; path = ../CocostudioParserTest.cpp; sourceTree = "<group>"; };
|
||||
290E94B4196FC16900694919 /* CocostudioParserTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CocostudioParserTest.h; path = ../CocostudioParserTest.h; sourceTree = "<group>"; };
|
||||
292CF01219A1965E00E8E6A0 /* UIEditBoxTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIEditBoxTest.cpp; sourceTree = "<group>"; };
|
||||
292CF01319A1965E00E8E6A0 /* UIEditBoxTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIEditBoxTest.h; sourceTree = "<group>"; };
|
||||
295824571987415900F9746D /* UIScale9SpriteTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIScale9SpriteTest.cpp; sourceTree = "<group>"; };
|
||||
295824581987415900F9746D /* UIScale9SpriteTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIScale9SpriteTest.h; sourceTree = "<group>"; };
|
||||
298D7F6D19AC31F300FF096D /* UIWebViewTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = UIWebViewTest.cpp; path = UIWebViewTest/UIWebViewTest.cpp; sourceTree = "<group>"; };
|
||||
298D7F6E19AC31F300FF096D /* UIWebViewTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UIWebViewTest.h; path = UIWebViewTest/UIWebViewTest.h; sourceTree = "<group>"; };
|
||||
29AFEF6619ACCAA000F6B10A /* Test.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = Test.html; path = "../tests/cpp-tests/Resources/Test.html"; sourceTree = "<group>"; };
|
||||
29FBBBFC196A9ECD00E65826 /* CocostudioParserJsonTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CocostudioParserJsonTest.cpp; sourceTree = "<group>"; };
|
||||
29FBBBFD196A9ECD00E65826 /* CocostudioParserJsonTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocostudioParserJsonTest.h; sourceTree = "<group>"; };
|
||||
38FA2E71194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ActionTimelineTestScene.cpp; sourceTree = "<group>"; };
|
||||
|
@ -5768,12 +5769,10 @@
|
|||
1AC359DF18CECF0B00F37B72 /* CocoStudioComponentsTest */,
|
||||
1AC35A5818CECF0B00F37B72 /* CocoStudioSceneTest */,
|
||||
1AC35A6118CECF0B00F37B72 /* ControlExtensionTest */,
|
||||
1AC35A7818CECF0B00F37B72 /* EditBoxTest */,
|
||||
1AC35A7B18CECF0B00F37B72 /* ExtensionsTest.cpp */,
|
||||
1AC35A7C18CECF0B00F37B72 /* ExtensionsTest.h */,
|
||||
1AC35A7D18CECF0B00F37B72 /* NetworkTest */,
|
||||
1AC35A8418CECF0B00F37B72 /* NotificationCenterTest */,
|
||||
1AC35A8718CECF0B00F37B72 /* Scale9SpriteTest */,
|
||||
1AC35A8A18CECF0B00F37B72 /* TableViewTest */,
|
||||
);
|
||||
path = ExtensionsTest;
|
||||
|
@ -6015,15 +6014,6 @@
|
|||
path = CCControlSwitchTest;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AC35A7818CECF0B00F37B72 /* EditBoxTest */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1AC35A7918CECF0B00F37B72 /* EditBoxTest.cpp */,
|
||||
1AC35A7A18CECF0B00F37B72 /* EditBoxTest.h */,
|
||||
);
|
||||
path = EditBoxTest;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AC35A7D18CECF0B00F37B72 /* NetworkTest */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -6046,15 +6036,6 @@
|
|||
path = NotificationCenterTest;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AC35A8718CECF0B00F37B72 /* Scale9SpriteTest */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1AC35A8818CECF0B00F37B72 /* Scale9SpriteTest.cpp */,
|
||||
1AC35A8918CECF0B00F37B72 /* Scale9SpriteTest.h */,
|
||||
);
|
||||
path = Scale9SpriteTest;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AC35A8A18CECF0B00F37B72 /* TableViewTest */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -6495,6 +6476,7 @@
|
|||
1AC35CB518CED84500F37B72 /* effect1.raw */,
|
||||
1AC35CB618CED84500F37B72 /* effect1.wav */,
|
||||
1AC35CC418CED84500F37B72 /* pew-pew-lei.wav */,
|
||||
29AFEF6619ACCAA000F6B10A /* Test.html */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
|
@ -6907,6 +6889,15 @@
|
|||
path = UIWidgetAddNodeTest;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
298D7F6C19AC31C000FF096D /* UIWebViewTest */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
298D7F6D19AC31F300FF096D /* UIWebViewTest.cpp */,
|
||||
298D7F6E19AC31F300FF096D /* UIWebViewTest.h */,
|
||||
);
|
||||
name = UIWebViewTest;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -6988,8 +6979,11 @@
|
|||
29FBBC00196A9F0D00E65826 /* UIAndEditorTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
298D7F6C19AC31C000FF096D /* UIWebViewTest */,
|
||||
295824571987415900F9746D /* UIScale9SpriteTest.cpp */,
|
||||
295824581987415900F9746D /* UIScale9SpriteTest.h */,
|
||||
292CF01219A1965E00E8E6A0 /* UIEditBoxTest.cpp */,
|
||||
292CF01319A1965E00E8E6A0 /* UIEditBoxTest.h */,
|
||||
29080D1F191B595E0066F8DF /* CocosGUIScene.cpp */,
|
||||
29080D20191B595E0066F8DF /* CocosGUIScene.h */,
|
||||
29080D37191B595E0066F8DF /* GUIEditorTest.cpp */,
|
||||
|
@ -7816,6 +7810,7 @@
|
|||
1AC35D0918CED84500F37B72 /* TileMaps in Resources */,
|
||||
1AC35CFF18CED84500F37B72 /* Particles in Resources */,
|
||||
1AC35C8818CECF1400F37B72 /* Default-568h@2x.png in Resources */,
|
||||
29AFEF6719ACCAA000F6B10A /* Test.html in Resources */,
|
||||
1AC35CD518CED84500F37B72 /* ccb in Resources */,
|
||||
1AC35CE118CED84500F37B72 /* configs in Resources */,
|
||||
1AC35CE918CED84500F37B72 /* extensions in Resources */,
|
||||
|
@ -7953,7 +7948,6 @@
|
|||
1AC35B6718CECF0C00F37B72 /* AnimationsTestLayer.cpp in Sources */,
|
||||
29080DB7191B595E0066F8DF /* UIListViewTest_Editor.cpp in Sources */,
|
||||
1AC35BF918CECF0C00F37B72 /* WebSocketTest.cpp in Sources */,
|
||||
1AC35BF118CECF0C00F37B72 /* EditBoxTest.cpp in Sources */,
|
||||
1AC35B3918CECF0C00F37B72 /* Bug-1174.cpp in Sources */,
|
||||
1AC35BE318CECF0C00F37B72 /* CCControlColourPickerTest.cpp in Sources */,
|
||||
29080DB1191B595E0066F8DF /* UILayoutTest.cpp in Sources */,
|
||||
|
@ -8004,7 +7998,6 @@
|
|||
29080DD1191B595E0066F8DF /* UISliderTest_Editor.cpp in Sources */,
|
||||
1AC35B2718CECF0C00F37B72 /* ActionsTest.cpp in Sources */,
|
||||
1AC35C4918CECF0C00F37B72 /* ShaderTest.cpp in Sources */,
|
||||
1AC35BFD18CECF0C00F37B72 /* Scale9SpriteTest.cpp in Sources */,
|
||||
1AC35B4318CECF0C00F37B72 /* Bug-624.cpp in Sources */,
|
||||
1AC35BF718CECF0C00F37B72 /* SocketIOTest.cpp in Sources */,
|
||||
1AC35C4F18CECF0C00F37B72 /* SpriteTest.cpp in Sources */,
|
||||
|
@ -8023,6 +8016,7 @@
|
|||
1AC35B7D18CECF0C00F37B72 /* PlayerController.cpp in Sources */,
|
||||
29080D9F191B595E0066F8DF /* CustomReader.cpp in Sources */,
|
||||
1AC35BE718CECF0C00F37B72 /* CCControlScene.cpp in Sources */,
|
||||
292CF01419A1965E00E8E6A0 /* UIEditBoxTest.cpp in Sources */,
|
||||
29080DBF191B595E0066F8DF /* UIPageViewTest_Editor.cpp in Sources */,
|
||||
1AC35B5F18CECF0C00F37B72 /* DataVisitorTest.cpp in Sources */,
|
||||
1AC35B5D18CECF0C00F37B72 /* CurrentLanguageTest.cpp in Sources */,
|
||||
|
@ -8149,7 +8143,6 @@
|
|||
1AC35B6818CECF0C00F37B72 /* AnimationsTestLayer.cpp in Sources */,
|
||||
29080D8E191B595E0066F8DF /* CocosGUIScene.cpp in Sources */,
|
||||
1AC35BFA18CECF0C00F37B72 /* WebSocketTest.cpp in Sources */,
|
||||
1AC35BF218CECF0C00F37B72 /* EditBoxTest.cpp in Sources */,
|
||||
38FA2E74194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp in Sources */,
|
||||
2958245A1987415900F9746D /* UIScale9SpriteTest.cpp in Sources */,
|
||||
1AC35B3A18CECF0C00F37B72 /* Bug-1174.cpp in Sources */,
|
||||
|
@ -8204,9 +8197,9 @@
|
|||
1AC35C0618CECF0C00F37B72 /* FontTest.cpp in Sources */,
|
||||
1AC35C3818CECF0C00F37B72 /* PerformanceTest.cpp in Sources */,
|
||||
1F33635018E37E840074764D /* RefPtrTest.cpp in Sources */,
|
||||
292CF01519A1965E00E8E6A0 /* UIEditBoxTest.cpp in Sources */,
|
||||
1AC35B2818CECF0C00F37B72 /* ActionsTest.cpp in Sources */,
|
||||
1AC35C4A18CECF0C00F37B72 /* ShaderTest.cpp in Sources */,
|
||||
1AC35BFE18CECF0C00F37B72 /* Scale9SpriteTest.cpp in Sources */,
|
||||
C04F935B1941B05400E9FEAB /* TileMapTest2.cpp in Sources */,
|
||||
1AC35B4418CECF0C00F37B72 /* Bug-624.cpp in Sources */,
|
||||
1AC35BF818CECF0C00F37B72 /* SocketIOTest.cpp in Sources */,
|
||||
|
@ -8316,6 +8309,7 @@
|
|||
1AC35B3E18CECF0C00F37B72 /* Bug-422.cpp in Sources */,
|
||||
29080DAC191B595E0066F8DF /* UIFocusTest.cpp in Sources */,
|
||||
1AC35BF618CECF0C00F37B72 /* HttpClientTest.cpp in Sources */,
|
||||
298D7F6F19AC31F300FF096D /* UIWebViewTest.cpp in Sources */,
|
||||
29080DA6191B595E0066F8DF /* UIButtonTest_Editor.cpp in Sources */,
|
||||
1AC35B5018CECF0C00F37B72 /* ClickAndMoveTest.cpp in Sources */,
|
||||
);
|
||||
|
|
|
@ -115,8 +115,7 @@ void ActionCamera::updateTransform()
|
|||
mv = mv * t;
|
||||
}
|
||||
|
||||
// XXX FIXME TODO
|
||||
// Using the AdditionalTransform is a complete hack.
|
||||
// FIXME: Using the AdditionalTransform is a complete hack.
|
||||
// This should be done by multipliying the lookup-Matrix with the Node's MV matrix
|
||||
// And then setting the result as the new MV matrix
|
||||
// But that operation needs to be done after all the 'updates'.
|
||||
|
|
|
@ -424,7 +424,7 @@ CallFuncN * CallFuncN::create(const std::function<void(Node*)> &func)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
CallFuncN * CallFuncN::create(Ref* selectorTarget, SEL_CallFuncN selector)
|
||||
{
|
||||
CallFuncN *ret = new (std::nothrow) CallFuncN();
|
||||
|
|
|
@ -335,7 +335,7 @@ void Sequence::update(float t)
|
|||
else if(found==0 && _last==1 )
|
||||
{
|
||||
// Reverse mode ?
|
||||
// XXX: Bug. this case doesn't contemplate when _last==-1, found=0 and in "reverse mode"
|
||||
// FIXME: Bug. this case doesn't contemplate when _last==-1, found=0 and in "reverse mode"
|
||||
// since it will require a hack to know if an action is on reverse mode or not.
|
||||
// "step" should be overriden, and the "reverseMode" value propagated to inner Sequences.
|
||||
_actions[1]->update(0);
|
||||
|
@ -981,7 +981,7 @@ void RotateBy::startWithTarget(Node *target)
|
|||
|
||||
void RotateBy::update(float time)
|
||||
{
|
||||
// XXX: shall I add % 360
|
||||
// FIXME: shall I add % 360
|
||||
if (_target)
|
||||
{
|
||||
if(_is3D)
|
||||
|
@ -2183,7 +2183,7 @@ void ReverseTime::update(float time)
|
|||
|
||||
ReverseTime* ReverseTime::reverse() const
|
||||
{
|
||||
// XXX: This looks like a bug
|
||||
// FIXME: This looks like a bug
|
||||
return (ReverseTime*)_other->clone();
|
||||
}
|
||||
|
||||
|
|
|
@ -317,7 +317,7 @@ void ActionManager::removeAllActionsByTag(int tag, Node *target)
|
|||
|
||||
// get
|
||||
|
||||
// XXX: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
|
||||
// FIXME: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
|
||||
// and, it is not possible to get the address of a reference
|
||||
Action* ActionManager::getActionByTag(int tag, const Node *target) const
|
||||
{
|
||||
|
@ -351,7 +351,7 @@ Action* ActionManager::getActionByTag(int tag, const Node *target) const
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
// XXX: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
|
||||
// FIXME: Passing "const O *" instead of "const O&" because HASH_FIND_IT requries the address of a pointer
|
||||
// and, it is not possible to get the address of a reference
|
||||
ssize_t ActionManager::getNumberOfRunningActionsInTarget(const Node *target) const
|
||||
{
|
||||
|
|
|
@ -25,10 +25,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "2d/CCAnimation.h"
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCDirector.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -30,9 +30,8 @@ THE SOFTWARE.
|
|||
#include "base/CCPlatformConfig.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "base/CCValue.h"
|
||||
#include "math/CCGeometry.h"
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
#include "base/CCVector.h"
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -25,12 +25,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "2d/CCAnimationCache.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "2d/CCAnimation.h"
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
#include "2d/CCSpriteFrameCache.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "deprecated/CCString.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -26,14 +26,11 @@
|
|||
*/
|
||||
|
||||
#include "2d/CCClippingNode.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCGLProgramCache.h"
|
||||
#include "2d/CCDrawingPrimitives.h"
|
||||
#include "renderer/CCGLProgramCache.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "base/CCDirector.h"
|
||||
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCGroupCommand.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
@ -248,7 +245,7 @@ void ClippingNode::visit(Renderer *renderer, const Mat4 &parentTransform, uint32
|
|||
program->use();
|
||||
program->setUniformLocationWith1f(alphaValueLocation, _alphaThreshold);
|
||||
// we need to recursively apply this shader to all the nodes in the stencil node
|
||||
// XXX: we should have a way to apply shader to all nodes without having to do this
|
||||
// FIXME: we should have a way to apply shader to all nodes without having to do this
|
||||
setProgram(_stencil, program);
|
||||
|
||||
#endif
|
||||
|
@ -438,7 +435,7 @@ void ClippingNode::onAfterDrawStencil()
|
|||
glDisable(GL_ALPHA_TEST);
|
||||
}
|
||||
#else
|
||||
// XXX: we need to find a way to restore the shaders of the stencil node and its childs
|
||||
// FIXME: we need to find a way to restore the shaders of the stencil node and its childs
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "2d/CCComponent.h"
|
||||
#include "base/CCScriptSupport.h"
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -25,7 +25,7 @@ THE SOFTWARE.
|
|||
|
||||
#include "2d/CCComponentContainer.h"
|
||||
#include "2d/CCComponent.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "2d/CCNode.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "base/CCConfiguration.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCEventListenerCustom.h"
|
||||
#include "base/CCEventDispatcher.h"
|
||||
|
|
|
@ -157,7 +157,7 @@ void drawPoints( const Vec2 *points, unsigned int numberOfPoints )
|
|||
s_shader->setUniformLocationWith4fv(s_colorLocation, (GLfloat*) &s_color.r, 1);
|
||||
s_shader->setUniformLocationWith1f(s_pointSizeLocation, s_pointSize);
|
||||
|
||||
// XXX: Mac OpenGL error. arrays can't go out of scope before draw is executed
|
||||
// FIXME: Mac OpenGL error. arrays can't go out of scope before draw is executed
|
||||
Vec2* newPoints = new (std::nothrow) Vec2[numberOfPoints];
|
||||
|
||||
// iPhone and 32-bit machines optimization
|
||||
|
@ -268,7 +268,7 @@ void drawPoly(const Vec2 *poli, unsigned int numberOfPoints, bool closePolygon)
|
|||
else
|
||||
{
|
||||
// Mac on 64-bit
|
||||
// XXX: Mac OpenGL error. arrays can't go out of scope before draw is executed
|
||||
// FIXME: Mac OpenGL error. arrays can't go out of scope before draw is executed
|
||||
Vec2* newPoli = new (std::nothrow) Vec2[numberOfPoints];
|
||||
for( unsigned int i=0; i<numberOfPoints;i++) {
|
||||
newPoli[i].x = poli[i].x;
|
||||
|
@ -302,7 +302,7 @@ void drawSolidPoly(const Vec2 *poli, unsigned int numberOfPoints, Color4F color)
|
|||
|
||||
GL::enableVertexAttribs( GL::VERTEX_ATTRIB_FLAG_POSITION );
|
||||
|
||||
// XXX: Mac OpenGL error. arrays can't go out of scope before draw is executed
|
||||
// FIXME: Mac OpenGL error. arrays can't go out of scope before draw is executed
|
||||
Vec2* newPoli = new (std::nothrow) Vec2[numberOfPoints];
|
||||
|
||||
// iPhone and 32-bit machines optimization
|
||||
|
@ -568,7 +568,7 @@ void setPointSize( GLfloat pointSize )
|
|||
{
|
||||
s_pointSize = pointSize * CC_CONTENT_SCALE_FACTOR();
|
||||
|
||||
//TODO :glPointSize( pointSize );
|
||||
// TODO: glPointSize( pointSize );
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -34,20 +34,16 @@ THE SOFTWARE.
|
|||
It was rewritten again, and only a small part of the original HK ideas/code remains in this implementation
|
||||
|
||||
*/
|
||||
#include "CCFastTMXLayer.h"
|
||||
#include "CCTMXXMLParser.h"
|
||||
#include "CCFastTMXTiledMap.h"
|
||||
#include "2d/CCFastTMXLayer.h"
|
||||
#include "2d/CCFastTMXTiledMap.h"
|
||||
#include "2d/CCSprite.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCGLProgramCache.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCConfiguration.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCVertexIndexBuffer.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "deprecated/CCString.h"
|
||||
#include "renderer/CCGLProgramStateCache.h"
|
||||
#include <algorithm>
|
||||
|
||||
NS_CC_BEGIN
|
||||
namespace experimental {
|
||||
|
@ -491,7 +487,7 @@ void TMXLayer::updateTotalQuads()
|
|||
|
||||
if(tileGID & kTMXTileDiagonalFlag)
|
||||
{
|
||||
// XXX: not working correcly
|
||||
// FIXME: not working correcly
|
||||
quad.bl.vertices.x = left;
|
||||
quad.bl.vertices.y = bottom;
|
||||
quad.bl.vertices.z = z;
|
||||
|
|
|
@ -27,15 +27,12 @@ THE SOFTWARE.
|
|||
#ifndef __CC_FAST_TMX_LAYER_H__
|
||||
#define __CC_FAST_TMX_LAYER_H__
|
||||
|
||||
#include "CCTMXObjectGroup.h"
|
||||
#include "CCTMXXMLParser.h"
|
||||
#include "CCNode.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#include "renderer/CCQuadCommand.h"
|
||||
#include "renderer/CCPrimitiveCommand.h"
|
||||
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
#include "2d/CCNode.h"
|
||||
#include "2d/CCTMXXMLParser.h"
|
||||
#include "renderer/CCPrimitiveCommand.h"
|
||||
#include "base/CCMap.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -24,13 +24,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "CCFastTMXTiledMap.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "CCTMXXMLParser.h"
|
||||
#include "CCFastTMXLayer.h"
|
||||
#include "CCSprite.h"
|
||||
#include "2d/CCFastTMXTiledMap.h"
|
||||
#include "2d/CCFastTMXLayer.h"
|
||||
#include "deprecated/CCString.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -138,7 +133,7 @@ TMXTilesetInfo * TMXTiledMap::tilesetForLayer(TMXLayerInfo *layerInfo, TMXMapInf
|
|||
// gid = CFSwapInt32( gid );
|
||||
/* We support little endian.*/
|
||||
|
||||
// XXX: gid == 0 --> empty tile
|
||||
// FIXME: gid == 0 --> empty tile
|
||||
if( gid != 0 )
|
||||
{
|
||||
// Optimization: quick return
|
||||
|
|
|
@ -32,7 +32,6 @@ THE SOFTWARE.
|
|||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class TMXObjectGroup;
|
||||
class TMXLayerInfo;
|
||||
class TMXTilesetInfo;
|
||||
class TMXMapInfo;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "2d/CCFontFNT.h"
|
||||
#include <set>
|
||||
#include "base/uthash.h"
|
||||
#include "2d/CCFontAtlas.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
|
@ -102,7 +103,7 @@ typedef struct _KerningHashElement
|
|||
*/
|
||||
class CC_DLL BMFontConfiguration : public Ref
|
||||
{
|
||||
// XXX: Creating a public interface so that the bitmapFontArray[] is accessible
|
||||
// FIXME: Creating a public interface so that the bitmapFontArray[] is accessible
|
||||
public://@public
|
||||
// BMFont definitions
|
||||
tFontDefHashElement *_fontDefDictionary;
|
||||
|
@ -313,7 +314,7 @@ std::set<unsigned int>* BMFontConfiguration::parseConfigFile(const std::string&
|
|||
|
||||
if(line.substr(0,strlen("info face")) == "info face")
|
||||
{
|
||||
// XXX: info parsing is incomplete
|
||||
// FIXME: info parsing is incomplete
|
||||
// Not needed for the Hiero editors, but needed for the AngelCode editor
|
||||
// [self parseInfoArguments:line];
|
||||
this->parseInfoArguments(line);
|
||||
|
|
|
@ -68,7 +68,7 @@ void Grabber::beforeRender(Texture2D *texture)
|
|||
|
||||
// save clear color
|
||||
glGetFloatv(GL_COLOR_CLEAR_VALUE, _oldClearColor);
|
||||
// BUG XXX: doesn't work with RGB565.
|
||||
// FIXME: doesn't work with RGB565.
|
||||
|
||||
glClearColor(0, 0, 0, 0);
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ GridBase::~GridBase(void)
|
|||
{
|
||||
CCLOGINFO("deallocing GridBase: %p", this);
|
||||
|
||||
//TODO: ? why 2.0 comments this line setActive(false);
|
||||
//TODO: ? why 2.0 comments this line: setActive(false);
|
||||
CC_SAFE_RELEASE(_texture);
|
||||
CC_SAFE_RELEASE(_grabber);
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ void GridBase::afterDraw(cocos2d::Node *target)
|
|||
// Vec2 offset = target->getAnchorPointInPoints();
|
||||
//
|
||||
// //
|
||||
// // XXX: Camera should be applied in the AnchorPoint
|
||||
// // FIXME: Camera should be applied in the AnchorPoint
|
||||
// //
|
||||
// kmGLTranslatef(offset.x, offset.y, 0);
|
||||
// target->getCamera()->locate();
|
||||
|
@ -230,8 +230,8 @@ void GridBase::afterDraw(cocos2d::Node *target)
|
|||
GL::bindTexture2D(_texture->getName());
|
||||
|
||||
// restore projection for default FBO .fixed bug #543 #544
|
||||
//TODO: Director::getInstance()->setProjection(Director::getInstance()->getProjection());
|
||||
//TODO: Director::getInstance()->applyOrientation();
|
||||
//TODO: Director::getInstance()->setProjection(Director::getInstance()->getProjection());
|
||||
//TODO: Director::getInstance()->applyOrientation();
|
||||
blit();
|
||||
}
|
||||
|
||||
|
|
|
@ -772,7 +772,7 @@ void Label::enableShadow(const Color4B& shadowColor /* = Color4B::BLACK */,const
|
|||
auto contentScaleFactor = CC_CONTENT_SCALE_FACTOR();
|
||||
_shadowOffset.width = offset.width * contentScaleFactor;
|
||||
_shadowOffset.height = offset.height * contentScaleFactor;
|
||||
//todo:support blur for shadow
|
||||
//TODO: support blur for shadow
|
||||
_shadowBlurRadius = 0;
|
||||
|
||||
if (_textSprite && _shadowNode)
|
||||
|
|
|
@ -31,6 +31,7 @@ THE SOFTWARE.
|
|||
#include "platform/CCDevice.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCEventDispatcher.h"
|
||||
#include "base/CCEventListenerTouch.h"
|
||||
|
|
|
@ -28,12 +28,10 @@ THE SOFTWARE.
|
|||
#include "2d/CCMenuItem.h"
|
||||
#include "2d/CCActionInterval.h"
|
||||
#include "2d/CCSprite.h"
|
||||
#include "CCLabelAtlas.h"
|
||||
#include "2d/CCLabelAtlas.h"
|
||||
#include "2d/CCLabel.h"
|
||||
#include "base/CCScriptSupport.h"
|
||||
#include "deprecated/CCString.h"
|
||||
#include <stdarg.h>
|
||||
#include <cstring>
|
||||
|
||||
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
|
@ -63,7 +61,7 @@ MenuItem* MenuItem::create()
|
|||
return MenuItem::create((const ccMenuCallback&)nullptr);
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
MenuItem* MenuItem::create(Ref *target, SEL_MenuHandler selector)
|
||||
{
|
||||
MenuItem *ret = new (std::nothrow) MenuItem();
|
||||
|
@ -80,7 +78,7 @@ MenuItem* MenuItem::create( const ccMenuCallback& callback)
|
|||
return ret;
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
bool MenuItem::initWithTarget(cocos2d::Ref *target, SEL_MenuHandler selector )
|
||||
{
|
||||
_target = target;
|
||||
|
@ -153,7 +151,7 @@ bool MenuItem::isSelected() const
|
|||
return _selected;
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
void MenuItem::setTarget(Ref *target, SEL_MenuHandler selector)
|
||||
{
|
||||
_target = target;
|
||||
|
@ -192,7 +190,7 @@ void MenuItemLabel::setLabel(Node* var)
|
|||
_label = var;
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
MenuItemLabel * MenuItemLabel::create(Node*label, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
MenuItemLabel *ret = new (std::nothrow) MenuItemLabel();
|
||||
|
@ -217,7 +215,7 @@ MenuItemLabel* MenuItemLabel::create(Node *label)
|
|||
return ret;
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
bool MenuItemLabel::initWithLabel(Node* label, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
_target = target;
|
||||
|
@ -322,7 +320,7 @@ MenuItemAtlasFont * MenuItemAtlasFont::create(const std::string& value, const st
|
|||
return MenuItemAtlasFont::create(value, charMapFile, itemWidth, itemHeight, startCharMap, (const ccMenuCallback&)nullptr);
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
MenuItemAtlasFont * MenuItemAtlasFont::create(const std::string& value, const std::string& charMapFile, int itemWidth, int itemHeight, char startCharMap, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
MenuItemAtlasFont *ret = new (std::nothrow) MenuItemAtlasFont();
|
||||
|
@ -339,7 +337,7 @@ MenuItemAtlasFont * MenuItemAtlasFont::create(const std::string& value, const st
|
|||
return ret;
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
bool MenuItemAtlasFont::initWithString(const std::string& value, const std::string& charMapFile, int itemWidth, int itemHeight, char startCharMap, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
_target = target;
|
||||
|
@ -388,7 +386,7 @@ const std::string& MenuItemFont::getFontName()
|
|||
return _globalFontName;
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
MenuItemFont * MenuItemFont::create(const std::string& value, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
MenuItemFont *ret = new (std::nothrow) MenuItemFont();
|
||||
|
@ -423,7 +421,7 @@ MenuItemFont::~MenuItemFont()
|
|||
CCLOGINFO("In the destructor of MenuItemFont (%p).", this);
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
bool MenuItemFont::initWithString(const std::string& value, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
CCASSERT( !value.empty(), "Value length must be greater than 0");
|
||||
|
@ -546,7 +544,7 @@ MenuItemSprite * MenuItemSprite::create(Node* normalSprite, Node* selectedSprite
|
|||
return MenuItemSprite::create(normalSprite, selectedSprite, disabledSprite, (const ccMenuCallback&)nullptr);
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
MenuItemSprite * MenuItemSprite::create(Node* normalSprite, Node* selectedSprite, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
return MenuItemSprite::create(normalSprite, selectedSprite, nullptr, target, selector);
|
||||
|
@ -557,7 +555,7 @@ MenuItemSprite * MenuItemSprite::create(Node* normalSprite, Node* selectedSprite
|
|||
return MenuItemSprite::create(normalSprite, selectedSprite, nullptr, callback);
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
MenuItemSprite * MenuItemSprite::create(Node *normalSprite, Node *selectedSprite, Node *disabledSprite, Ref *target, SEL_MenuHandler selector)
|
||||
{
|
||||
MenuItemSprite *ret = new (std::nothrow) MenuItemSprite();
|
||||
|
@ -574,7 +572,7 @@ MenuItemSprite * MenuItemSprite::create(Node *normalSprite, Node *selectedSprite
|
|||
return ret;
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
bool MenuItemSprite::initWithNormalSprite(Node* normalSprite, Node* selectedSprite, Node* disabledSprite, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
_target = target;
|
||||
|
@ -706,7 +704,7 @@ MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std:
|
|||
return MenuItemImage::create(normalImage, selectedImage, "", (const ccMenuCallback&)nullptr);
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std::string& selectedImage, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
return MenuItemImage::create(normalImage, selectedImage, "", target, selector);
|
||||
|
@ -717,7 +715,7 @@ MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std:
|
|||
return MenuItemImage::create(normalImage, selectedImage, "", callback);
|
||||
}
|
||||
|
||||
// XXX deprecated
|
||||
// FIXME: deprecated
|
||||
MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std::string& selectedImage, const std::string& disabledImage, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
MenuItemImage *ret = new (std::nothrow) MenuItemImage();
|
||||
|
@ -754,7 +752,7 @@ MenuItemImage * MenuItemImage::create(const std::string& normalImage, const std:
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
bool MenuItemImage::initWithNormalImage(const std::string& normalImage, const std::string& selectedImage, const std::string& disabledImage, Ref* target, SEL_MenuHandler selector)
|
||||
{
|
||||
_target = target;
|
||||
|
@ -806,7 +804,7 @@ void MenuItemImage::setDisabledSpriteFrame(SpriteFrame * frame)
|
|||
// MenuItemToggle
|
||||
//
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
MenuItemToggle * MenuItemToggle::createWithTarget(Ref* target, SEL_MenuHandler selector, const Vector<MenuItem*>& menuItems)
|
||||
{
|
||||
MenuItemToggle *ret = new (std::nothrow) MenuItemToggle();
|
||||
|
@ -827,7 +825,7 @@ MenuItemToggle * MenuItemToggle::createWithCallback(const ccMenuCallback &callba
|
|||
return ret;
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
MenuItemToggle * MenuItemToggle::createWithTarget(Ref* target, SEL_MenuHandler selector, MenuItem* item, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
@ -871,7 +869,7 @@ MenuItemToggle * MenuItemToggle::create()
|
|||
return ret;
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME:: deprecated
|
||||
bool MenuItemToggle::initWithTarget(Ref* target, SEL_MenuHandler selector, MenuItem* item, va_list args)
|
||||
{
|
||||
_target = target;
|
||||
|
|
|
@ -26,14 +26,12 @@ THE SOFTWARE.
|
|||
|
||||
#include "2d/CCMotionStreak.h"
|
||||
#include "math/CCVertex.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -27,16 +27,13 @@ THE SOFTWARE.
|
|||
#define __CCMOTION_STREAK_H__
|
||||
|
||||
#include "base/CCProtocols.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "2d/CCNode.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#ifdef EMSCRIPTEN
|
||||
#include "CCGLBufferedNode.h"
|
||||
#endif // EMSCRIPTEN
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class Texture2D;
|
||||
|
||||
/**
|
||||
* @addtogroup misc_nodes
|
||||
* @{
|
||||
|
@ -46,9 +43,6 @@ NS_CC_BEGIN
|
|||
Creates a trailing path.
|
||||
*/
|
||||
class CC_DLL MotionStreak : public Node, public TextureProtocol
|
||||
#ifdef EMSCRIPTEN
|
||||
, public GLBufferedNode
|
||||
#endif // EMSCRIPTEN
|
||||
{
|
||||
public:
|
||||
/** creates and initializes a motion streak with fade in seconds, minimum segments, stroke's width, color, texture filename */
|
||||
|
|
|
@ -43,6 +43,7 @@ THE SOFTWARE.
|
|||
#include "2d/CCComponent.h"
|
||||
#include "2d/CCComponentContainer.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "math/TransformUtils.h"
|
||||
|
||||
#include "deprecated/CCString.h"
|
||||
|
@ -68,7 +69,7 @@ bool nodeComparisonLess(Node* n1, Node* n2)
|
|||
);
|
||||
}
|
||||
|
||||
// XXX: Yes, nodes might have a sort problem once every 15 days if the game runs at 60 FPS and each frame sprites are reordered.
|
||||
// FIXME:: Yes, nodes might have a sort problem once every 15 days if the game runs at 60 FPS and each frame sprites are reordered.
|
||||
int Node::s_globalOrderOfArrival = 1;
|
||||
|
||||
// MARK: Constructor, Destructor, Init
|
||||
|
@ -593,7 +594,7 @@ void Node::setPositionZ(float positionZ)
|
|||
|
||||
_positionZ = positionZ;
|
||||
|
||||
// XXX BUG
|
||||
// FIXME: BUG
|
||||
// Global Z Order should based on the modelViewTransform
|
||||
setGlobalZOrder(positionZ);
|
||||
}
|
||||
|
@ -1670,7 +1671,7 @@ const Mat4& Node::getNodeToParentTransform() const
|
|||
_transform.translate(anchorPoint.x, anchorPoint.y, 0);
|
||||
}
|
||||
|
||||
// XXX
|
||||
// FIXME:
|
||||
// FIX ME: Expensive operation.
|
||||
// FIX ME: It should be done together with the rotationZ
|
||||
if(_rotationY) {
|
||||
|
@ -1689,22 +1690,26 @@ const Mat4& Node::getNodeToParentTransform() const
|
|||
_transform.translate(-anchorPoint.x, -anchorPoint.y, 0);
|
||||
}
|
||||
|
||||
// XXX: Try to inline skew
|
||||
// FIXME:: Try to inline skew
|
||||
// If skew is needed, apply skew and then anchor point
|
||||
if (needsSkewMatrix)
|
||||
{
|
||||
Mat4 skewMatrix(1, (float)tanf(CC_DEGREES_TO_RADIANS(_skewY)), 0, 0,
|
||||
float skewMatArray[16] =
|
||||
{
|
||||
1, (float)tanf(CC_DEGREES_TO_RADIANS(_skewY)), 0, 0,
|
||||
(float)tanf(CC_DEGREES_TO_RADIANS(_skewX)), 1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1);
|
||||
0, 0, 0, 1
|
||||
};
|
||||
Mat4 skewMatrix(skewMatArray);
|
||||
|
||||
_transform = _transform * skewMatrix;
|
||||
|
||||
// adjust anchor point
|
||||
if (!_anchorPointInPoints.equals(Vec2::ZERO))
|
||||
{
|
||||
// XXX: Argh, Mat4 needs a "translate" method.
|
||||
// XXX: Although this is faster than multiplying a vec4 * mat4
|
||||
// FIXME:: Argh, Mat4 needs a "translate" method.
|
||||
// FIXME:: Although this is faster than multiplying a vec4 * mat4
|
||||
_transform.m[12] += _transform.m[0] * -_anchorPointInPoints.x + _transform.m[4] * -_anchorPointInPoints.y;
|
||||
_transform.m[13] += _transform.m[1] * -_anchorPointInPoints.x + _transform.m[5] * -_anchorPointInPoints.y;
|
||||
}
|
||||
|
|
|
@ -24,11 +24,7 @@
|
|||
|
||||
#include "2d/CCNodeGrid.h"
|
||||
#include "2d/CCGrid.h"
|
||||
|
||||
#include "renderer/CCGroupCommand.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "CCParallaxNode.h"
|
||||
#include "2d/CCParallaxNode.h"
|
||||
#include "base/ccCArray.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -30,22 +30,13 @@
|
|||
|
||||
#include "2d/CCParticleBatchNode.h"
|
||||
|
||||
#include "renderer/CCTextureAtlas.h"
|
||||
#include "2d/CCGrid.h"
|
||||
#include "2d/CCParticleSystem.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "base/CCProfiling.h"
|
||||
#include "base/ccConfig.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/base64.h"
|
||||
#include "base/ZipUtils.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCQuadCommand.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
|
||||
#include "renderer/CCTextureAtlas.h"
|
||||
#include "deprecated/CCString.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
@ -207,8 +198,8 @@ void ParticleBatchNode::addChildByTagOrName(ParticleSystem* child, int zOrder, i
|
|||
}
|
||||
|
||||
// don't use lazy sorting, reordering the particle systems quads afterwards would be too complex
|
||||
// XXX research whether lazy sorting + freeing current quads and calloc a new block with size of capacity would be faster
|
||||
// XXX or possibly using vertexZ for reordering, that would be fastest
|
||||
// FIXME: research whether lazy sorting + freeing current quads and calloc a new block with size of capacity would be faster
|
||||
// FIXME: or possibly using vertexZ for reordering, that would be fastest
|
||||
// this helper is almost equivalent to Node's addChild, but doesn't make use of the lazy sorting
|
||||
int ParticleBatchNode::addChildHelper(ParticleSystem* child, int z, int aTag, const std::string &name, bool setTag)
|
||||
{
|
||||
|
|
|
@ -26,7 +26,6 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "2d/CCParticleExamples.h"
|
||||
#include "platform/CCImage.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/firePngData.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
|
|
|
@ -48,16 +48,12 @@ THE SOFTWARE.
|
|||
|
||||
#include "2d/CCParticleBatchNode.h"
|
||||
#include "renderer/CCTextureAtlas.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "platform/CCImage.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "base/base64.h"
|
||||
#include "base/ZipUtils.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCProfiling.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
|
||||
#include "CCGL.h"
|
||||
#include "deprecated/CCString.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -174,7 +170,7 @@ bool ParticleSystem::initWithFile(const std::string& plistFile)
|
|||
|
||||
CCASSERT( !dict.empty(), "Particles: file not found");
|
||||
|
||||
// XXX compute path from a path, should define a function somewhere to do it
|
||||
// FIXME: compute path from a path, should define a function somewhere to do it
|
||||
string listFilePath = plistFile;
|
||||
if (listFilePath.find('/') != string::npos)
|
||||
{
|
||||
|
@ -465,7 +461,7 @@ bool ParticleSystem::initWithTotalParticles(int numberOfParticles)
|
|||
_emitterMode = Mode::GRAVITY;
|
||||
|
||||
// default: modulate
|
||||
// XXX: not used
|
||||
// FIXME:: not used
|
||||
// colorModulate = YES;
|
||||
|
||||
_isAutoRemoveOnFinish = false;
|
||||
|
|
|
@ -30,7 +30,6 @@ THE SOFTWARE.
|
|||
#include "base/CCProtocols.h"
|
||||
#include "2d/CCNode.h"
|
||||
#include "base/CCValue.h"
|
||||
#include "deprecated/CCString.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -26,26 +26,21 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "CCGL.h"
|
||||
|
||||
#include "2d/CCParticleSystemQuad.h"
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
#include "2d/CCParticleBatchNode.h"
|
||||
#include "renderer/CCTextureAtlas.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCEventType.h"
|
||||
#include "base/CCConfiguration.h"
|
||||
#include "math/TransformUtils.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCQuadCommand.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
|
||||
// extern
|
||||
#include "base/CCEventListenerCustom.h"
|
||||
#include "base/CCEventDispatcher.h"
|
||||
|
||||
#include "deprecated/CCString.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
ParticleSystemQuad::ParticleSystemQuad()
|
||||
|
|
|
@ -28,7 +28,7 @@ THE SOFTWARE.
|
|||
#ifndef __CC_PARTICLE_SYSTEM_QUAD_H__
|
||||
#define __CC_PARTICLE_SYSTEM_QUAD_H__
|
||||
|
||||
#include "CCParticleSystem.h"
|
||||
#include "2d/CCParticleSystem.h"
|
||||
#include "renderer/CCQuadCommand.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -27,17 +27,9 @@ THE SOFTWARE.
|
|||
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "2d/CCDrawingPrimitives.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "2d/CCSprite.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#include "math/TransformUtils.h"
|
||||
|
||||
// extern
|
||||
#include <float.h>
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
@ -512,22 +504,9 @@ void ProgressTimer::onDraw(const Mat4 &transform, uint32_t flags)
|
|||
|
||||
GL::bindTexture2D( _sprite->getTexture()->getName() );
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
setGLBufferData((void*) _vertexData, (_vertexDataCount * sizeof(V2F_C4B_T2F)), 0);
|
||||
|
||||
int offset = 0;
|
||||
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_POSITION, 2, GL_FLOAT, GL_FALSE, sizeof(V2F_C4B_T2F), (GLvoid*)offset);
|
||||
|
||||
offset += sizeof(Vec2);
|
||||
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(V2F_C4B_T2F), (GLvoid*)offset);
|
||||
|
||||
offset += sizeof(Color4B);
|
||||
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_TEX_COORD, 2, GL_FLOAT, GL_FALSE, sizeof(V2F_C4B_T2F), (GLvoid*)offset);
|
||||
#else
|
||||
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_POSITION, 2, GL_FLOAT, GL_FALSE, sizeof(_vertexData[0]) , &_vertexData[0].vertices);
|
||||
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_TEX_COORD, 2, GL_FLOAT, GL_FALSE, sizeof(_vertexData[0]), &_vertexData[0].texCoords);
|
||||
glVertexAttribPointer( GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(_vertexData[0]), &_vertexData[0].colors);
|
||||
#endif // EMSCRIPTEN
|
||||
|
||||
if(_type == Type::RADIAL)
|
||||
{
|
||||
|
|
|
@ -26,14 +26,13 @@ THE SOFTWARE.
|
|||
#ifndef __MISC_NODE_CCPROGRESS_TIMER_H__
|
||||
#define __MISC_NODE_CCPROGRESS_TIMER_H__
|
||||
|
||||
#include "2d/CCSprite.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#ifdef EMSCRIPTEN
|
||||
#include "CCGLBufferedNode.h"
|
||||
#endif // EMSCRIPTEN
|
||||
#include "2d/CCNode.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class Sprite;
|
||||
|
||||
/**
|
||||
* @addtogroup misc_nodes
|
||||
* @{
|
||||
|
@ -46,9 +45,6 @@ NS_CC_BEGIN
|
|||
@since v0.99.1
|
||||
*/
|
||||
class CC_DLL ProgressTimer : public Node
|
||||
#ifdef EMSCRIPTEN
|
||||
, public GLBufferedNode
|
||||
#endif // EMSCRIPTEN
|
||||
{
|
||||
public:
|
||||
/** Types of progress
|
||||
|
|
|
@ -27,23 +27,13 @@ THE SOFTWARE.
|
|||
#include "2d/CCRenderTexture.h"
|
||||
|
||||
#include "base/ccUtils.h"
|
||||
#include "platform/CCImage.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "2d/CCGrid.h"
|
||||
#include "base/CCEventType.h"
|
||||
#include "base/CCConfiguration.h"
|
||||
#include "base/CCConfiguration.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCEventListenerCustom.h"
|
||||
#include "base/CCEventDispatcher.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCGroupCommand.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
|
||||
#include "CCGL.h"
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -356,7 +346,7 @@ void RenderTexture::beginWithClear(float r, float g, float b, float a, float dep
|
|||
Director::getInstance()->getRenderer()->addCommand(&_beginWithClearCommand);
|
||||
}
|
||||
|
||||
//TODO find a better way to clear the screen, there is no need to rebind render buffer there.
|
||||
//TODO: find a better way to clear the screen, there is no need to rebind render buffer there.
|
||||
void RenderTexture::clear(float r, float g, float b, float a)
|
||||
{
|
||||
this->beginWithClear(r, g, b, a);
|
||||
|
@ -504,7 +494,7 @@ Image* RenderTexture::newImage(bool fliimage)
|
|||
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &_oldFBO);
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, _FBO);
|
||||
|
||||
//TODO move this to configration, so we don't check it every time
|
||||
// TODO: move this to configration, so we don't check it every time
|
||||
/* Certain Qualcomm Andreno gpu's will retain data in memory after a frame buffer switch which corrupts the render to the texture. The solution is to clear the frame buffer before rendering to the texture. However, calling glClear has the unintended result of clearing the current texture. Create a temporary texture to overcome this. At the end of RenderTexture::begin(), switch the attached texture to the second one, call glClear, and then switch back to the original texture. This solution is unnecessary for other devices as they don't have the same issue with switching frame buffers.
|
||||
*/
|
||||
if (Configuration::getInstance()->checkForGLExtension("GL_QCOM"))
|
||||
|
@ -604,7 +594,7 @@ void RenderTexture::onBegin()
|
|||
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &_oldFBO);
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, _FBO);
|
||||
|
||||
//TODO move this to configration, so we don't check it every time
|
||||
// TODO: move this to configration, so we don't check it every time
|
||||
/* Certain Qualcomm Andreno gpu's will retain data in memory after a frame buffer switch which corrupts the render to the texture. The solution is to clear the frame buffer before rendering to the texture. However, calling glClear has the unintended result of clearing the current texture. Create a temporary texture to overcome this. At the end of RenderTexture::begin(), switch the attached texture to the second one, call glClear, and then switch back to the original texture. This solution is unnecessary for other devices as they don't have the same issue with switching frame buffers.
|
||||
*/
|
||||
if (Configuration::getInstance()->checkForGLExtension("GL_QCOM"))
|
||||
|
|
|
@ -166,7 +166,7 @@ public:
|
|||
void setVirtualViewport(const Vec2& rtBegin, const Rect& fullRect, const Rect& fullViewport);
|
||||
|
||||
public:
|
||||
// XXX should be procted.
|
||||
// FIXME: should be procted.
|
||||
// but due to a bug in PowerVR + Android,
|
||||
// the constructor is public again
|
||||
RenderTexture();
|
||||
|
|
|
@ -27,28 +27,14 @@ THE SOFTWARE.
|
|||
|
||||
#include "2d/CCSprite.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <algorithm>
|
||||
|
||||
#include "2d/CCSpriteBatchNode.h"
|
||||
#include "2d/CCAnimation.h"
|
||||
#include "2d/CCAnimationCache.h"
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
#include "2d/CCSpriteFrameCache.h"
|
||||
#include "2d/CCDrawingPrimitives.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "base/CCProfiling.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/ccConfig.h"
|
||||
#include "math/CCGeometry.h"
|
||||
#include "math/CCAffineTransform.h"
|
||||
#include "math/TransformUtils.h"
|
||||
|
||||
#include "deprecated/CCString.h"
|
||||
|
||||
|
@ -61,6 +47,7 @@ NS_CC_BEGIN
|
|||
#define RENDER_IN_SUBPIXEL(__ARGS__) (ceil(__ARGS__))
|
||||
#endif
|
||||
|
||||
// MARK: create, init, dealloc
|
||||
Sprite* Sprite::createWithTexture(Texture2D *texture)
|
||||
{
|
||||
Sprite *sprite = new (std::nothrow) Sprite();
|
||||
|
@ -307,6 +294,7 @@ static unsigned char cc_2x2_white_image[] = {
|
|||
|
||||
#define CC_2x2_WHITE_IMAGE_KEY "/cc_2x2_white_image"
|
||||
|
||||
// MARK: texture
|
||||
void Sprite::setTexture(const std::string &filename)
|
||||
{
|
||||
Texture2D *texture = Director::getInstance()->getTextureCache()->addImage(filename);
|
||||
|
@ -497,6 +485,8 @@ void Sprite::setTextureCoords(Rect rect)
|
|||
}
|
||||
}
|
||||
|
||||
// MARK: visit, draw, transform
|
||||
|
||||
void Sprite::updateTransform(void)
|
||||
{
|
||||
CCASSERT(_batchNode, "updateTransform is only valid when Sprite is being rendered using an SpriteBatchNode");
|
||||
|
@ -622,7 +612,8 @@ void Sprite::drawDebugData()
|
|||
}
|
||||
#endif //CC_SPRITE_DEBUG_DRAW
|
||||
|
||||
// Node overrides
|
||||
// MARK: visit, draw, transform
|
||||
|
||||
void Sprite::addChild(Node *child, int zOrder, int tag)
|
||||
{
|
||||
CCASSERT(child != nullptr, "Argument must be non-nullptr");
|
||||
|
@ -755,7 +746,7 @@ void Sprite::setDirtyRecursively(bool bValue)
|
|||
}
|
||||
}
|
||||
|
||||
// XXX HACK: optimization
|
||||
// FIXME: HACK: optimization
|
||||
#define SET_DIRTY_RECURSIVELY() { \
|
||||
if (! _recursiveDirty) { \
|
||||
_recursiveDirty = true; \
|
||||
|
@ -885,7 +876,7 @@ bool Sprite::isFlippedY(void) const
|
|||
}
|
||||
|
||||
//
|
||||
// RGBA protocol
|
||||
// MARK: RGBA protocol
|
||||
//
|
||||
|
||||
void Sprite::updateColor(void)
|
||||
|
@ -938,7 +929,7 @@ bool Sprite::isOpacityModifyRGB(void) const
|
|||
return _opacityModifyRGB;
|
||||
}
|
||||
|
||||
// Frames
|
||||
// MARK: Frames
|
||||
|
||||
void Sprite::setSpriteFrame(const std::string &spriteFrameName)
|
||||
{
|
||||
|
@ -1032,7 +1023,7 @@ void Sprite::setBatchNode(SpriteBatchNode *spriteBatchNode)
|
|||
}
|
||||
}
|
||||
|
||||
// Texture protocol
|
||||
// MARK: Texture protocol
|
||||
|
||||
void Sprite::updateBlendFunc(void)
|
||||
{
|
||||
|
|
|
@ -28,15 +28,10 @@ THE SOFTWARE.
|
|||
#ifndef __SPRITE_NODE_CCSPRITE_H__
|
||||
#define __SPRITE_NODE_CCSPRITE_H__
|
||||
|
||||
#include <string>
|
||||
#include "2d/CCNode.h"
|
||||
#include "base/CCProtocols.h"
|
||||
#include "renderer/CCTextureAtlas.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include <string>
|
||||
#ifdef EMSCRIPTEN
|
||||
#include "CCGLBufferedNode.h"
|
||||
#endif // EMSCRIPTEN
|
||||
#include "physics/CCPhysicsBody.h"
|
||||
#include "renderer/CCQuadCommand.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
|
||||
|
|
|
@ -27,24 +27,11 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "2d/CCSpriteBatchNode.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "2d/CCSprite.h"
|
||||
#include "2d/CCGrid.h"
|
||||
#include "2d/CCDrawingPrimitives.h"
|
||||
#include "2d/CCLayer.h"
|
||||
#include "2d/CCScene.h"
|
||||
#include "base/ccConfig.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCProfiling.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCQuadCommand.h"
|
||||
#include "math/TransformUtils.h"
|
||||
|
||||
#include "deprecated/CCString.h" // For StringUtils::format
|
||||
|
||||
|
@ -638,8 +625,8 @@ void SpriteBatchNode::insertQuadFromSprite(Sprite *sprite, ssize_t index)
|
|||
V3F_C4B_T2F_Quad quad = sprite->getQuad();
|
||||
_textureAtlas->insertQuad(&quad, index);
|
||||
|
||||
// XXX: updateTransform will update the textureAtlas too, using updateQuad.
|
||||
// XXX: so, it should be AFTER the insertQuad
|
||||
// FIXME:: updateTransform will update the textureAtlas too, using updateQuad.
|
||||
// FIXME:: so, it should be AFTER the insertQuad
|
||||
sprite->setDirty(true);
|
||||
sprite->updateTransform();
|
||||
}
|
||||
|
@ -675,7 +662,7 @@ SpriteBatchNode * SpriteBatchNode::addSpriteWithoutQuad(Sprite*child, int z, int
|
|||
// quad index is Z
|
||||
child->setAtlasIndex(z);
|
||||
|
||||
// XXX: optimize with a binary search
|
||||
// FIXME:: optimize with a binary search
|
||||
auto it = _descendants.begin();
|
||||
for (; it != _descendants.end(); ++it)
|
||||
{
|
||||
|
|
|
@ -33,7 +33,6 @@ THE SOFTWARE.
|
|||
|
||||
#include "2d/CCNode.h"
|
||||
#include "base/CCProtocols.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "renderer/CCTextureAtlas.h"
|
||||
#include "renderer/CCBatchCommand.h"
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ THE SOFTWARE.
|
|||
#define __SPRITE_CCSPRITE_FRAME_H__
|
||||
|
||||
#include "2d/CCNode.h"
|
||||
#include "base/CCProtocols.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "math/CCGeometry.h"
|
||||
|
||||
|
|
|
@ -31,14 +31,15 @@ THE SOFTWARE.
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
|
||||
#include "2d/CCSprite.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "base/CCNS.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "math/TransformUtils.h"
|
||||
|
||||
|
||||
#include "deprecated/CCString.h"
|
||||
|
||||
|
@ -313,7 +314,7 @@ void SpriteFrameCache::removeUnusedSpriteFrames()
|
|||
|
||||
_spriteFrames.erase(toRemoveFrames);
|
||||
|
||||
// XXX. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
|
||||
// FIXME:. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
|
||||
if( removed )
|
||||
{
|
||||
_loadedFileNames->clear();
|
||||
|
@ -340,7 +341,7 @@ void SpriteFrameCache::removeSpriteFrameByName(const std::string& name)
|
|||
_spriteFrames.erase(name);
|
||||
}
|
||||
|
||||
// XXX. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
|
||||
// FIXME:. Since we don't know the .plist file that originated the frame, we must remove all .plist from the cache
|
||||
_loadedFileNames->clear();
|
||||
}
|
||||
|
||||
|
|
|
@ -34,19 +34,17 @@ THE SOFTWARE.
|
|||
* To create sprite frames and texture atlas, use this tool:
|
||||
* http://zwoptex.zwopple.com/
|
||||
*/
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "base/CCValue.h"
|
||||
#include "base/CCMap.h"
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class Sprite;
|
||||
class Texture2D;
|
||||
|
||||
/**
|
||||
* @addtogroup sprite_nodes
|
||||
|
|
|
@ -26,16 +26,11 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "2d/CCTMXLayer.h"
|
||||
|
||||
#include "2d/CCTMXXMLParser.h"
|
||||
#include "2d/CCTMXTiledMap.h"
|
||||
#include "2d/CCSprite.h"
|
||||
#include "base/ccCArray.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
|
||||
#include "deprecated/CCString.h" // For StringUtils::format
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -55,7 +50,7 @@ TMXLayer * TMXLayer::create(TMXTilesetInfo *tilesetInfo, TMXLayerInfo *layerInfo
|
|||
}
|
||||
bool TMXLayer::initWithTilesetInfo(TMXTilesetInfo *tilesetInfo, TMXLayerInfo *layerInfo, TMXMapInfo *mapInfo)
|
||||
{
|
||||
// XXX: is 35% a good estimate ?
|
||||
// FIXME:: is 35% a good estimate ?
|
||||
Size size = layerInfo->_layerSize;
|
||||
float totalNumberOfTiles = size.width * size.height;
|
||||
float capacity = totalNumberOfTiles * 0.35f + 1; // 35 percent is occupied ?
|
||||
|
@ -175,7 +170,7 @@ void TMXLayer::setupTiles()
|
|||
// gid = CFSwapInt32( gid );
|
||||
/* We support little endian.*/
|
||||
|
||||
// XXX: gid == 0 --> empty tile
|
||||
// FIXME:: gid == 0 --> empty tile
|
||||
if (gid != 0)
|
||||
{
|
||||
this->appendTileForGID(gid, Vec2(x, y));
|
||||
|
@ -292,7 +287,7 @@ Sprite* TMXLayer::reusedTileWithRect(Rect rect)
|
|||
}
|
||||
else
|
||||
{
|
||||
// XXX HACK: Needed because if "batch node" is nil,
|
||||
// FIXME: HACK: Needed because if "batch node" is nil,
|
||||
// then the Sprite'squad will be reset
|
||||
_reusedTile->setBatchNode(nullptr);
|
||||
|
||||
|
@ -472,7 +467,7 @@ ssize_t TMXLayer::atlasIndexForExistantZ(int z)
|
|||
|
||||
ssize_t TMXLayer::atlasIndexForNewZ(int z)
|
||||
{
|
||||
// XXX: This can be improved with a sort of binary search
|
||||
// FIXME:: This can be improved with a sort of binary search
|
||||
ssize_t i=0;
|
||||
for (i=0; i< _atlasIndexArray->num ; i++)
|
||||
{
|
||||
|
|
|
@ -27,10 +27,8 @@ THE SOFTWARE.
|
|||
#ifndef __CCTMX_LAYER_H__
|
||||
#define __CCTMX_LAYER_H__
|
||||
|
||||
#include "CCTMXObjectGroup.h"
|
||||
#include "CCAtlasNode.h"
|
||||
#include "2d/CCSpriteBatchNode.h"
|
||||
#include "CCTMXXMLParser.h"
|
||||
#include "2d/CCTMXXMLParser.h"
|
||||
#include "base/ccCArray.h"
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "CCTMXObjectGroup.h"
|
||||
#include "2d/CCTMXObjectGroup.h"
|
||||
#include "base/ccMacros.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -24,14 +24,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "CCTMXTiledMap.h"
|
||||
#include "CCTMXXMLParser.h"
|
||||
#include "CCTMXLayer.h"
|
||||
#include "2d/CCTMXTiledMap.h"
|
||||
#include "2d/CCTMXXMLParser.h"
|
||||
#include "2d/CCTMXLayer.h"
|
||||
#include "2d/CCSprite.h"
|
||||
#include "deprecated/CCString.h" // For StringUtils::format
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
// implementation TMXTiledMap
|
||||
|
@ -138,7 +136,7 @@ TMXTilesetInfo * TMXTiledMap::tilesetForLayer(TMXLayerInfo *layerInfo, TMXMapInf
|
|||
// gid = CFSwapInt32( gid );
|
||||
/* We support little endian.*/
|
||||
|
||||
// XXX: gid == 0 --> empty tile
|
||||
// FIXME:: gid == 0 --> empty tile
|
||||
if( gid != 0 )
|
||||
{
|
||||
// Optimization: quick return
|
||||
|
|
|
@ -28,12 +28,11 @@ THE SOFTWARE.
|
|||
#define __CCTMX_TILE_MAP_H__
|
||||
|
||||
#include "2d/CCNode.h"
|
||||
#include "CCTMXObjectGroup.h"
|
||||
#include "2d/CCTMXObjectGroup.h"
|
||||
#include "base/CCValue.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class TMXObjectGroup;
|
||||
class TMXLayer;
|
||||
class TMXLayerInfo;
|
||||
class TMXTilesetInfo;
|
||||
|
|
|
@ -26,15 +26,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "2d/CCTMXXMLParser.h"
|
||||
#include <unordered_map>
|
||||
#include <sstream>
|
||||
#include "CCTMXXMLParser.h"
|
||||
#include "CCTMXTiledMap.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "2d/CCTMXTiledMap.h"
|
||||
#include "base/ZipUtils.h"
|
||||
#include "base/base64.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -33,13 +33,13 @@ THE SOFTWARE.
|
|||
#include "platform/CCSAXParser.h"
|
||||
#include "base/CCVector.h"
|
||||
#include "base/CCValue.h"
|
||||
#include "2d/CCTMXObjectGroup.h" // needed for Vector<TMXObjectGroup*> for binding
|
||||
|
||||
#include <string>
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class TMXLayerInfo;
|
||||
class TMXObjectGroup;
|
||||
class TMXTilesetInfo;
|
||||
|
||||
/** @file
|
||||
|
|
|
@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "CCTextFieldTTF.h"
|
||||
#include "2d/CCTextFieldTTF.h"
|
||||
|
||||
#include "base/CCDirector.h"
|
||||
|
||||
|
|
|
@ -24,14 +24,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
#include "CCTileMapAtlas.h"
|
||||
#include "2d/CCTileMapAtlas.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "renderer/CCTextureAtlas.h"
|
||||
#include "base/TGAlib.h"
|
||||
#include "base/ccConfig.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "deprecated/CCString.h"
|
||||
#include <sstream>
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
@ -142,8 +141,8 @@ void TileMapAtlas::setTile(const Color3B& tile, const Vec2& position)
|
|||
{
|
||||
ptr[(unsigned int)(position.x + position.y * _TGAInfo->width)] = tile;
|
||||
|
||||
// XXX: this method consumes a lot of memory
|
||||
// XXX: a tree of something like that shall be implemented
|
||||
// FIXME:: this method consumes a lot of memory
|
||||
// FIXME:: a tree of something like that shall be implemented
|
||||
std::string key = StringUtils::toString(position.x) + "," + StringUtils::toString(position.y);
|
||||
int num = _posToAtlasIndex[key].asInt();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ THE SOFTWARE.
|
|||
#ifndef __CCTILE_MAP_ATLAS__
|
||||
#define __CCTILE_MAP_ATLAS__
|
||||
|
||||
#include "CCAtlasNode.h"
|
||||
#include "2d/CCAtlasNode.h"
|
||||
#include "base/CCValue.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -1278,7 +1278,7 @@ void TransitionCrossFade::onEnter()
|
|||
LayerColor* layer = LayerColor::create(color);
|
||||
|
||||
// create the first render texture for inScene
|
||||
RenderTexture* inTexture = RenderTexture::create((int)size.width, (int)size.height);
|
||||
RenderTexture* inTexture = RenderTexture::create((int)size.width, (int)size.height,Texture2D::PixelFormat::RGBA8888,GL_DEPTH24_STENCIL8);
|
||||
|
||||
if (nullptr == inTexture)
|
||||
{
|
||||
|
@ -1295,7 +1295,7 @@ void TransitionCrossFade::onEnter()
|
|||
inTexture->end();
|
||||
|
||||
// create the second render texture for outScene
|
||||
RenderTexture* outTexture = RenderTexture::create((int)size.width, (int)size.height);
|
||||
RenderTexture* outTexture = RenderTexture::create((int)size.width, (int)size.height,Texture2D::PixelFormat::RGBA8888,GL_DEPTH24_STENCIL8);
|
||||
outTexture->getSprite()->setAnchorPoint( Vec2(0.5f,0.5f) );
|
||||
outTexture->setPosition(size.width/2, size.height/2);
|
||||
outTexture->setAnchorPoint( Vec2(0.5f,0.5f) );
|
||||
|
|
|
@ -62,7 +62,7 @@ TransitionPageTurn * TransitionPageTurn::create(float t, Scene *scene, bool back
|
|||
/** initializes a transition with duration and incoming scene */
|
||||
bool TransitionPageTurn::initWithDuration(float t, Scene *scene, bool backwards)
|
||||
{
|
||||
// XXX: needed before [super init]
|
||||
// FIXME:: needed before [super init]
|
||||
_back = backwards;
|
||||
|
||||
if (TransitionScene::initWithDuration(t, scene))
|
||||
|
|
|
@ -71,7 +71,7 @@ void TransitionProgress::onEnter()
|
|||
Size size = Director::getInstance()->getWinSize();
|
||||
|
||||
// create the second render texture for outScene
|
||||
RenderTexture *texture = RenderTexture::create((int)size.width, (int)size.height);
|
||||
RenderTexture *texture = RenderTexture::create((int)size.width, (int)size.height,Texture2D::PixelFormat::RGBA8888,GL_DEPTH24_STENCIL8);
|
||||
texture->getSprite()->setAnchorPoint(Vec2(0.5f,0.5f));
|
||||
texture->setPosition(size.width/2, size.height/2);
|
||||
texture->setAnchorPoint(Vec2(0.5f,0.5f));
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v110_xp</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0'">v120</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v120_xp</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v110_xp</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v110_xp</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0'">v120</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v120_xp</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v110_xp</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
|
@ -192,15 +192,11 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\spine\prebuilt\release-l
|
|||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlSwitch.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlUtils.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCInvocation.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCScale9Sprite.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCEditBox\CCEditBox.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCEditBox\CCEditBoxImplWin.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCScrollView\CCScrollView.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCScrollView\CCTableView.cpp" />
|
||||
<ClCompile Include="..\..\extensions\GUI\CCScrollView\CCTableViewCell.cpp" />
|
||||
<ClCompile Include="..\..\extensions\physics-nodes\CCPhysicsDebugNode.cpp" />
|
||||
<ClCompile Include="..\..\extensions\physics-nodes\CCPhysicsSprite.cpp" />
|
||||
<ClCompile Include="..\..\extensions\proj.win32\Win32InputBox.cpp" />
|
||||
<ClCompile Include="..\..\external\ConvertUTF\ConvertUTF.c" />
|
||||
<ClCompile Include="..\..\external\ConvertUTF\ConvertUTFWrapper.cpp" />
|
||||
<ClCompile Include="..\..\external\edtaa3func\edtaa3func.cpp" />
|
||||
|
@ -410,9 +406,12 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\spine\prebuilt\release-l
|
|||
<ClCompile Include="..\renderer\CCVertexIndexData.cpp" />
|
||||
<ClCompile Include="..\storage\local-storage\LocalStorage.cpp" />
|
||||
<ClCompile Include="..\ui\CocosGUI.cpp" />
|
||||
<ClCompile Include="..\ui\proj.win32\Win32InputBox.cpp" />
|
||||
<ClCompile Include="..\ui\UIButton.cpp" />
|
||||
<ClCompile Include="..\ui\UICheckBox.cpp" />
|
||||
<ClCompile Include="..\ui\UIDeprecated.cpp" />
|
||||
<ClCompile Include="..\ui\UIEditBox\UIEditBox.cpp" />
|
||||
<ClCompile Include="..\ui\UIEditBox\UIEditBoxImplWin.cpp" />
|
||||
<ClCompile Include="..\ui\UIHBox.cpp" />
|
||||
<ClCompile Include="..\ui\UIHelper.cpp" />
|
||||
<ClCompile Include="..\ui\UIImageView.cpp" />
|
||||
|
@ -517,16 +516,11 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\spine\prebuilt\release-l
|
|||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlSwitch.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlUtils.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCInvocation.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCScale9Sprite.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCEditBox\CCEditBox.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCEditBox\CCEditBoxImpl.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCEditBox\CCEditBoxImplWin.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCScrollView\CCScrollView.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCScrollView\CCTableView.h" />
|
||||
<ClInclude Include="..\..\extensions\GUI\CCScrollView\CCTableViewCell.h" />
|
||||
<ClInclude Include="..\..\extensions\physics-nodes\CCPhysicsDebugNode.h" />
|
||||
<ClInclude Include="..\..\extensions\physics-nodes\CCPhysicsSprite.h" />
|
||||
<ClInclude Include="..\..\extensions\proj.win32\Win32InputBox.h" />
|
||||
<ClInclude Include="..\..\external\ConvertUTF\ConvertUTF.h" />
|
||||
<ClInclude Include="..\..\external\edtaa3func\edtaa3func.h" />
|
||||
<ClInclude Include="..\..\external\json\document.h" />
|
||||
|
@ -788,9 +782,13 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\spine\prebuilt\release-l
|
|||
<ClInclude Include="..\storage\local-storage\LocalStorage.h" />
|
||||
<ClInclude Include="..\ui\CocosGUI.h" />
|
||||
<ClInclude Include="..\ui\GUIExport.h" />
|
||||
<ClInclude Include="..\ui\proj.win32\Win32InputBox.h" />
|
||||
<ClInclude Include="..\ui\UIButton.h" />
|
||||
<ClInclude Include="..\ui\UICheckBox.h" />
|
||||
<ClInclude Include="..\ui\UIDeprecated.h" />
|
||||
<ClInclude Include="..\ui\UIEditBox\UIEditBox.h" />
|
||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl.h" />
|
||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImplWin.h" />
|
||||
<ClInclude Include="..\ui\UIHBox.h" />
|
||||
<ClInclude Include="..\ui\UIHelper.h" />
|
||||
<ClInclude Include="..\ui\UIImageView.h" />
|
||||
|
|
|
@ -76,15 +76,9 @@
|
|||
<Filter Include="extension\GUI">
|
||||
<UniqueIdentifier>{b27aba95-51a2-413c-8570-0aff9adf2b6b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="extension\GUI\CCControlExtension">
|
||||
<UniqueIdentifier>{220cf2ee-61b0-40cf-a88a-8627e4e609f1}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="extension\GUI\CCScrollView">
|
||||
<UniqueIdentifier>{a1f539bc-d5be-4224-a4d2-01c0b6f17d6e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="extension\GUI\CCEditBox">
|
||||
<UniqueIdentifier>{dc45cd54-4576-4401-87b7-a276f91a45bd}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="extension\physics_nodes">
|
||||
<UniqueIdentifier>{1de7fce7-0dee-4571-8fcd-43eb617aaf8b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
|
@ -211,6 +205,12 @@
|
|||
<Filter Include="cocosbuilder\Source Files">
|
||||
<UniqueIdentifier>{8579ed15-b266-4f80-818d-a3a9251c4248}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="ui\UIWidgets\EditBox">
|
||||
<UniqueIdentifier>{89eb6312-dc7f-4fda-b9b2-ab67c31ddd55}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="extension\GUI\CCControlExtensions">
|
||||
<UniqueIdentifier>{118d80ca-ccf2-480c-b87d-25220af23440}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\physics\CCPhysicsBody.cpp">
|
||||
|
@ -787,42 +787,6 @@
|
|||
<ClCompile Include="..\..\extensions\assets-manager\AssetsManager.cpp">
|
||||
<Filter>extension\AssetsManager</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControl.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlButton.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlColourPicker.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlHuePicker.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlPotentiometer.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlSaturationBrightnessPicker.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlSlider.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlStepper.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlSwitch.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlUtils.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCInvocation.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCScale9Sprite.cpp">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCScrollView\CCScrollView.cpp">
|
||||
<Filter>extension\GUI\CCScrollView</Filter>
|
||||
</ClCompile>
|
||||
|
@ -832,15 +796,6 @@
|
|||
<ClCompile Include="..\..\extensions\GUI\CCScrollView\CCTableViewCell.cpp">
|
||||
<Filter>extension\GUI\CCScrollView</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCEditBox\CCEditBox.cpp">
|
||||
<Filter>extension\GUI\CCEditBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCEditBox\CCEditBoxImplWin.cpp">
|
||||
<Filter>extension\GUI\CCEditBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\proj.win32\Win32InputBox.cpp">
|
||||
<Filter>extension\GUI\CCEditBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\physics-nodes\CCPhysicsDebugNode.cpp">
|
||||
<Filter>extension\physics_nodes</Filter>
|
||||
</ClCompile>
|
||||
|
@ -1168,6 +1123,48 @@
|
|||
<ClCompile Include="..\3d\CCBillBoard.cpp">
|
||||
<Filter>3d</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\ui\UIEditBox\UIEditBox.cpp">
|
||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\ui\UIEditBox\UIEditBoxImplWin.cpp">
|
||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControl.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlButton.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlColourPicker.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlHuePicker.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlPotentiometer.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlSaturationBrightnessPicker.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlSlider.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlStepper.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlSwitch.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControlUtils.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCInvocation.cpp">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\ui\proj.win32\Win32InputBox.cpp">
|
||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\physics\CCPhysicsBody.h">
|
||||
|
@ -1828,45 +1825,6 @@
|
|||
<ClInclude Include="..\..\extensions\assets-manager\AssetsManager.h">
|
||||
<Filter>extension\AssetsManager</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControl.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlButton.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlColourPicker.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlExtensions.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlHuePicker.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlPotentiometer.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlSaturationBrightnessPicker.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlSlider.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlStepper.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlSwitch.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlUtils.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCInvocation.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCScale9Sprite.h">
|
||||
<Filter>extension\GUI\CCControlExtension</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCScrollView\CCScrollView.h">
|
||||
<Filter>extension\GUI\CCScrollView</Filter>
|
||||
</ClInclude>
|
||||
|
@ -1876,18 +1834,6 @@
|
|||
<ClInclude Include="..\..\extensions\GUI\CCScrollView\CCTableViewCell.h">
|
||||
<Filter>extension\GUI\CCScrollView</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCEditBox\CCEditBox.h">
|
||||
<Filter>extension\GUI\CCEditBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCEditBox\CCEditBoxImpl.h">
|
||||
<Filter>extension\GUI\CCEditBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCEditBox\CCEditBoxImplWin.h">
|
||||
<Filter>extension\GUI\CCEditBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\proj.win32\Win32InputBox.h">
|
||||
<Filter>extension\GUI\CCEditBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\physics-nodes\CCPhysicsDebugNode.h">
|
||||
<Filter>extension\physics_nodes</Filter>
|
||||
</ClInclude>
|
||||
|
@ -2296,6 +2242,54 @@
|
|||
<ClInclude Include="..\3d\CCBillBoard.h">
|
||||
<Filter>3d</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\ui\UIEditBox\UIEditBox.h">
|
||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl.h">
|
||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImplWin.h">
|
||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControl.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlButton.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlColourPicker.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlExtensions.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlHuePicker.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlPotentiometer.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlSaturationBrightnessPicker.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlSlider.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlStepper.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlSwitch.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControlUtils.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCInvocation.h">
|
||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\ui\proj.win32\Win32InputBox.h">
|
||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\math\Mat4.inl">
|
||||
|
|
|
@ -23,12 +23,9 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "3d/CCAnimate3D.h"
|
||||
#include "3d/CCAnimation3D.h"
|
||||
#include "3d/CCSprite3D.h"
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
#include "3d/CCMeshSkin.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -28,17 +28,13 @@
|
|||
#include <map>
|
||||
|
||||
#include "3d/CCAnimation3D.h"
|
||||
|
||||
#include "3d/3dExport.h"
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "base/CCPlatformMacros.h"
|
||||
#include "2d/CCActionInterval.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class Animation3D;
|
||||
class Bone3D;
|
||||
/**
|
||||
* Animate3D, Animates a Sprite3D given with an Animation3D
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
|
||||
#include "3d/CCAnimation3D.h"
|
||||
#include "3d/CCBundle3D.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -31,8 +31,7 @@
|
|||
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "CCBundle3DData.h"
|
||||
#include "3d/CCBundle3DData.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -24,10 +24,8 @@
|
|||
#ifndef __CCANIMATIONCURVE_H__
|
||||
#define __CCANIMATIONCURVE_H__
|
||||
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
|
||||
#include "base/ccTypes.h"
|
||||
#include "base/CCPlatformMacros.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "math/CCMath.h"
|
||||
|
|
|
@ -25,12 +25,6 @@
|
|||
#include "3d/CCAttachNode.h"
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
|
||||
#include "2d/CCNode.h"
|
||||
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCPlatformMacros.h"
|
||||
#include "base/ccMacros.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
AttachNode* AttachNode::create(Bone3D* attachBone)
|
||||
|
|
|
@ -25,14 +25,8 @@
|
|||
#ifndef __CCATTACHNODE_H__
|
||||
#define __CCATTACHNODE_H__
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/CCVector.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "base/CCProtocols.h"
|
||||
#include "math/CCMath.h"
|
||||
#include "2d/CCNode.h"
|
||||
#include "renderer/CCMeshCommand.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -201,7 +201,7 @@ bool Bundle3D::load(const std::string& path)
|
|||
}
|
||||
else
|
||||
{
|
||||
CCLOGINFO("%s is invalid file formate", path);
|
||||
CCLOG("warning: %s is invalid file formate", path.c_str());
|
||||
}
|
||||
|
||||
ret?(_path = path):(_path = "");
|
||||
|
@ -302,7 +302,7 @@ bool Bundle3D::loadObj(MeshDatas& meshdatas, MaterialDatas& materialdatas, NodeD
|
|||
}
|
||||
return true;
|
||||
}
|
||||
CCLOG("load %s file error: %s", fullPath.c_str(), ret.c_str());
|
||||
CCLOG("warning: load %s file error: %s", fullPath.c_str(), ret.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -376,7 +376,7 @@ bool Bundle3D::loadMeshDatas(MeshDatas& meshdatas)
|
|||
{
|
||||
return loadMeshDatasBinary_0_2(meshdatas);
|
||||
}
|
||||
else if(_version == "0.3")
|
||||
else
|
||||
{
|
||||
return loadMeshDatasBinary(meshdatas);
|
||||
}
|
||||
|
@ -391,7 +391,7 @@ bool Bundle3D::loadMeshDatas(MeshDatas& meshdatas)
|
|||
{
|
||||
return loadMeshDataJson_0_2(meshdatas);
|
||||
}
|
||||
else if(_version == "0.3")
|
||||
else
|
||||
{
|
||||
return loadMeshDatasJson(meshdatas);
|
||||
}
|
||||
|
@ -405,7 +405,7 @@ bool Bundle3D::loadMeshDatasBinary(MeshDatas& meshdatas)
|
|||
unsigned int meshSize = 0;
|
||||
if (_binaryReader.read(&meshSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
for(int i = 0; i < meshSize ; i++ )
|
||||
|
@ -415,7 +415,7 @@ bool Bundle3D::loadMeshDatasBinary(MeshDatas& meshdatas)
|
|||
// read mesh data
|
||||
if (_binaryReader.read(&attribSize, 4, 1) != 1 || attribSize < 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
meshData->attribCount = attribSize;
|
||||
|
@ -426,7 +426,7 @@ bool Bundle3D::loadMeshDatasBinary(MeshDatas& meshdatas)
|
|||
unsigned int vSize;
|
||||
if (_binaryReader.read(&vSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
std::string type = _binaryReader.readString();
|
||||
|
@ -440,14 +440,14 @@ bool Bundle3D::loadMeshDatasBinary(MeshDatas& meshdatas)
|
|||
// Read vertex data
|
||||
if (_binaryReader.read(&vertexSizeInFloat, 4, 1) != 1 || vertexSizeInFloat == 0)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
meshData->vertex.resize(vertexSizeInFloat);
|
||||
if (_binaryReader.read(&meshData->vertex[0], 4, vertexSizeInFloat) != vertexSizeInFloat)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -463,13 +463,13 @@ bool Bundle3D::loadMeshDatasBinary(MeshDatas& meshdatas)
|
|||
unsigned int nIndexCount;
|
||||
if (_binaryReader.read(&nIndexCount, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
indexArray.resize(nIndexCount);
|
||||
if (_binaryReader.read(&indexArray[0], 2, nIndexCount) != nIndexCount)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
meshData->subMeshIndices.push_back(indexArray);
|
||||
|
@ -492,7 +492,7 @@ bool Bundle3D::loadMeshDatasBinary_0_1(MeshDatas& meshdatas)
|
|||
unsigned int attribSize=0;
|
||||
if (_binaryReader.read(&attribSize, 4, 1) != 1 || attribSize < 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
enum
|
||||
|
@ -514,7 +514,7 @@ bool Bundle3D::loadMeshDatasBinary_0_1(MeshDatas& meshdatas)
|
|||
unsigned int vUsage, vSize;
|
||||
if (_binaryReader.read(&vUsage, 4, 1) != 1 || _binaryReader.read(&vSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -550,14 +550,14 @@ bool Bundle3D::loadMeshDatasBinary_0_1(MeshDatas& meshdatas)
|
|||
// Read vertex data
|
||||
if (_binaryReader.read(&meshdata->vertexSizeInFloat, 4, 1) != 1 || meshdata->vertexSizeInFloat == 0)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
meshdata->vertex.resize(meshdata->vertexSizeInFloat);
|
||||
if (_binaryReader.read(&meshdata->vertex[0], 4, meshdata->vertexSizeInFloat) != meshdata->vertexSizeInFloat)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -568,7 +568,7 @@ bool Bundle3D::loadMeshDatasBinary_0_1(MeshDatas& meshdatas)
|
|||
unsigned int nIndexCount;
|
||||
if (_binaryReader.read(&nIndexCount, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -576,7 +576,7 @@ bool Bundle3D::loadMeshDatasBinary_0_1(MeshDatas& meshdatas)
|
|||
indices.resize(nIndexCount);
|
||||
if (_binaryReader.read(&indices[0], 2, nIndexCount) != nIndexCount)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -600,7 +600,7 @@ bool Bundle3D::loadMeshDatasBinary_0_2(MeshDatas& meshdatas)
|
|||
unsigned int attribSize=0;
|
||||
if (_binaryReader.read(&attribSize, 4, 1) != 1 || attribSize < 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
enum
|
||||
|
@ -622,7 +622,7 @@ bool Bundle3D::loadMeshDatasBinary_0_2(MeshDatas& meshdatas)
|
|||
unsigned int vUsage, vSize;
|
||||
if (_binaryReader.read(&vUsage, 4, 1) != 1 || _binaryReader.read(&vSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -658,14 +658,14 @@ bool Bundle3D::loadMeshDatasBinary_0_2(MeshDatas& meshdatas)
|
|||
// Read vertex data
|
||||
if (_binaryReader.read(&meshdata->vertexSizeInFloat, 4, 1) != 1 || meshdata->vertexSizeInFloat == 0)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
meshdata->vertex.resize(meshdata->vertexSizeInFloat);
|
||||
if (_binaryReader.read(&meshdata->vertex[0], 4, meshdata->vertexSizeInFloat) != meshdata->vertexSizeInFloat)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -673,7 +673,7 @@ bool Bundle3D::loadMeshDatasBinary_0_2(MeshDatas& meshdatas)
|
|||
unsigned int submeshCount;
|
||||
if (_binaryReader.read(&submeshCount, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: submeshCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: submeshCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -682,7 +682,7 @@ bool Bundle3D::loadMeshDatasBinary_0_2(MeshDatas& meshdatas)
|
|||
unsigned int nIndexCount;
|
||||
if (_binaryReader.read(&nIndexCount, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -690,7 +690,7 @@ bool Bundle3D::loadMeshDatasBinary_0_2(MeshDatas& meshdatas)
|
|||
indices.resize(nIndexCount);
|
||||
if (_binaryReader.read(&indices[0], 2, nIndexCount) != nIndexCount)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -823,7 +823,7 @@ bool Bundle3D::loadMaterials(MaterialDatas& materialdatas)
|
|||
{
|
||||
return loadMaterialsBinary_0_2(materialdatas);
|
||||
}
|
||||
else if (_version == "0.3")
|
||||
else
|
||||
{
|
||||
return loadMaterialsBinary(materialdatas);
|
||||
}
|
||||
|
@ -838,7 +838,7 @@ bool Bundle3D::loadMaterials(MaterialDatas& materialdatas)
|
|||
{
|
||||
return loadMaterialDataJson_0_2(materialdatas);
|
||||
}
|
||||
else if (_version == "0.3")
|
||||
else
|
||||
{
|
||||
return loadMaterialsJson(materialdatas);
|
||||
}
|
||||
|
@ -866,13 +866,13 @@ bool Bundle3D::loadMaterialsBinary(MaterialDatas& materialdatas)
|
|||
textureData.id = _binaryReader.readString();
|
||||
if (textureData.id.empty())
|
||||
{
|
||||
CCLOGINFO("Failed to read Materialdata: texturePath is empty '%s'.", textureID.c_str());
|
||||
CCLOG("warning: Failed to read Materialdata: texturePath is empty '%s'.", textureData.id.c_str());
|
||||
return false;
|
||||
}
|
||||
std::string texturePath = _binaryReader.readString();
|
||||
if (texturePath.empty())
|
||||
{
|
||||
CCLOGINFO("Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -898,7 +898,7 @@ bool Bundle3D::loadMaterialsBinary_0_1(MaterialDatas& materialdatas)
|
|||
std::string texturePath = _binaryReader.readString();
|
||||
if (texturePath.empty())
|
||||
{
|
||||
CCLOGINFO("Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -926,7 +926,7 @@ bool Bundle3D::loadMaterialsBinary_0_2(MaterialDatas& materialdatas)
|
|||
std::string texturePath = _binaryReader.readString();
|
||||
if (texturePath.empty())
|
||||
{
|
||||
CCLOGINFO("Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -987,7 +987,11 @@ bool Bundle3D::loadJson(const std::string& path)
|
|||
}
|
||||
|
||||
const rapidjson::Value& mash_data_array = _jsonReader[VERSION];
|
||||
if (mash_data_array.IsArray()) // Compatible with the old version
|
||||
_version = "1.2";
|
||||
else
|
||||
_version = mash_data_array.GetString();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1251,7 +1255,7 @@ bool Bundle3D::loadBinary(const std::string& path)
|
|||
if (_binaryBuffer->isNull())
|
||||
{
|
||||
clear();
|
||||
CCLOGINFO(false, "Failed to read file: %s", path.c_str());
|
||||
CCLOG("warning: Failed to read file: %s", path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1264,14 +1268,14 @@ bool Bundle3D::loadBinary(const std::string& path)
|
|||
if (_binaryReader.read(sig, 1, 4) != 4 || memcmp(sig, identifier, 4) != 0)
|
||||
{
|
||||
clear();
|
||||
CCLOGINFO(false, "Invalid identifier: %s", path.c_str());
|
||||
CCLOG("warning: Invalid identifier: %s", path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
// Read version
|
||||
unsigned char ver[2];
|
||||
if (_binaryReader.read(ver, 1, 2)!= 2){
|
||||
CCLOG("Failed to read version:");
|
||||
CCLOG("warning: Failed to read version:");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1283,7 +1287,7 @@ bool Bundle3D::loadBinary(const std::string& path)
|
|||
if (_binaryReader.read(&_referenceCount, 4, 1) != 1)
|
||||
{
|
||||
clear();
|
||||
CCLOGINFO("Failed to read ref table size '%s'.", path.c_str());
|
||||
CCLOG("warning: Failed to read ref table size '%s'.", path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1297,7 +1301,7 @@ bool Bundle3D::loadBinary(const std::string& path)
|
|||
_binaryReader.read(&_references[i].offset, 4, 1) != 1)
|
||||
{
|
||||
clear();
|
||||
CCLOGINFO("Failed to read ref number %d for bundle '%s'.", i, path.c_str());
|
||||
CCLOG("warning: Failed to read ref number %d for bundle '%s'.", (int)i, path.c_str());
|
||||
CC_SAFE_DELETE_ARRAY(_references);
|
||||
return false;
|
||||
}
|
||||
|
@ -1318,7 +1322,7 @@ bool Bundle3D::loadMeshDataBinary(MeshData* meshdata)
|
|||
}
|
||||
else
|
||||
{
|
||||
CCLOGINFO(false, "Unsupported version of loadMeshDataBinary() : %s", _version);
|
||||
CCLOG("warning: Unsupported version of loadMeshDataBinary() : %s", _version.c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -1331,7 +1335,7 @@ bool Bundle3D::loadMeshDataBinary_0_1(MeshData* meshdata)
|
|||
// read mesh data
|
||||
if (_binaryReader.read(&meshdata->attribCount, 4, 1) != 1 || meshdata->attribCount < 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1341,7 +1345,7 @@ bool Bundle3D::loadMeshDataBinary_0_1(MeshData* meshdata)
|
|||
unsigned int vUsage, vSize;
|
||||
if (_binaryReader.read(&vUsage, 4, 1) != 1 || _binaryReader.read(&vSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1354,14 +1358,14 @@ bool Bundle3D::loadMeshDataBinary_0_1(MeshData* meshdata)
|
|||
// Read vertex data
|
||||
if (_binaryReader.read(&meshdata->vertexSizeInFloat, 4, 1) != 1 || meshdata->vertexSizeInFloat == 0)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
meshdata->vertex.resize(meshdata->vertexSizeInFloat);
|
||||
if (_binaryReader.read(&meshdata->vertex[0], 4, meshdata->vertexSizeInFloat) != meshdata->vertexSizeInFloat)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1374,7 +1378,7 @@ bool Bundle3D::loadMeshDataBinary_0_1(MeshData* meshdata)
|
|||
unsigned int nIndexCount;
|
||||
if (_binaryReader.read(&nIndexCount, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1382,7 +1386,7 @@ bool Bundle3D::loadMeshDataBinary_0_1(MeshData* meshdata)
|
|||
indices.resize(nIndexCount);
|
||||
if (_binaryReader.read(&indices[0], 2, nIndexCount) != nIndexCount)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1402,7 +1406,7 @@ bool Bundle3D::loadMeshDataBinary_0_2(MeshData* meshdata)
|
|||
// read mesh data
|
||||
if (_binaryReader.read(&meshdata->attribCount, 4, 1) != 1 || meshdata->attribCount < 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1412,7 +1416,7 @@ bool Bundle3D::loadMeshDataBinary_0_2(MeshData* meshdata)
|
|||
unsigned int vUsage, vSize;
|
||||
if (_binaryReader.read(&vUsage, 4, 1) != 1 || _binaryReader.read(&vSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: usage or size '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1425,14 +1429,14 @@ bool Bundle3D::loadMeshDataBinary_0_2(MeshData* meshdata)
|
|||
// Read vertex data
|
||||
if (_binaryReader.read(&meshdata->vertexSizeInFloat, 4, 1) != 1 || meshdata->vertexSizeInFloat == 0)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertexSizeInFloat '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
meshdata->vertex.resize(meshdata->vertexSizeInFloat);
|
||||
if (_binaryReader.read(&meshdata->vertex[0], 4, meshdata->vertexSizeInFloat) != meshdata->vertexSizeInFloat)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: vertex element '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1440,7 +1444,7 @@ bool Bundle3D::loadMeshDataBinary_0_2(MeshData* meshdata)
|
|||
unsigned int submeshCount;
|
||||
if (_binaryReader.read(&submeshCount, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: submeshCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: submeshCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1449,7 +1453,7 @@ bool Bundle3D::loadMeshDataBinary_0_2(MeshData* meshdata)
|
|||
unsigned int nIndexCount;
|
||||
if (_binaryReader.read(&nIndexCount, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: nIndexCount '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1457,7 +1461,7 @@ bool Bundle3D::loadMeshDataBinary_0_2(MeshData* meshdata)
|
|||
indices.resize(nIndexCount);
|
||||
if (_binaryReader.read(&indices[0], 2, nIndexCount) != nIndexCount)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: indices '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1478,7 +1482,7 @@ bool Bundle3D::loadSkinDataBinary(SkinData* skindata)
|
|||
float bindShape[16];
|
||||
if (!_binaryReader.readMatrix(bindShape))
|
||||
{
|
||||
CCLOGINFO("Failed to read SkinData: bindShape matrix '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read SkinData: bindShape matrix '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1486,7 +1490,7 @@ bool Bundle3D::loadSkinDataBinary(SkinData* skindata)
|
|||
unsigned int boneNum;
|
||||
if (!_binaryReader.read(&boneNum))
|
||||
{
|
||||
CCLOGINFO("Failed to read SkinData: boneNum '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read SkinData: boneNum '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1498,7 +1502,7 @@ bool Bundle3D::loadSkinDataBinary(SkinData* skindata)
|
|||
skindata->skinBoneNames.push_back(skinBoneName);
|
||||
if (!_binaryReader.readMatrix(bindpos))
|
||||
{
|
||||
CCLOGINFO("Failed to load SkinData: bindpos '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to load SkinData: bindpos '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
skindata->inverseBindPoseMatrices.push_back(bindpos);
|
||||
|
@ -1539,7 +1543,7 @@ bool Bundle3D::loadSkinDataBinary(SkinData* skindata)
|
|||
|
||||
if (!_binaryReader.readMatrix(transform))
|
||||
{
|
||||
CCLOGINFO("Failed to load SkinData: transform '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to load SkinData: transform '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1584,7 +1588,7 @@ bool Bundle3D::loadMaterialDataBinary(MaterialData* materialdata)
|
|||
std::string texturePath = _binaryReader.readString();
|
||||
if (texturePath.empty())
|
||||
{
|
||||
CCLOGINFO("Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read Materialdata: texturePath is empty '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1600,11 +1604,11 @@ bool Bundle3D::loadAnimationDataBinary(Animation3DData* animationdata)
|
|||
if (!seekToFirstType(BUNDLE_TYPE_ANIMATIONS))
|
||||
return false;
|
||||
unsigned int animNum=0;
|
||||
if( _version == "0.3")
|
||||
if( _version == "0.3"|| _version == "0.4")
|
||||
{
|
||||
if (!_binaryReader.read(&animNum))
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: animNum '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: animNum '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -1612,14 +1616,14 @@ bool Bundle3D::loadAnimationDataBinary(Animation3DData* animationdata)
|
|||
|
||||
if (!_binaryReader.read(&animationdata->_totalTime))
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: totalTime '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: totalTime '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned int nodeAnimationNum;
|
||||
if (!_binaryReader.read(&nodeAnimationNum))
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: animNum '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: animNum '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
for (unsigned int i = 0; i < nodeAnimationNum; ++i)
|
||||
|
@ -1628,7 +1632,7 @@ bool Bundle3D::loadAnimationDataBinary(Animation3DData* animationdata)
|
|||
unsigned int keyframeNum;
|
||||
if (!_binaryReader.read(&keyframeNum))
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: keyframeNum '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: keyframeNum '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1641,35 +1645,70 @@ bool Bundle3D::loadAnimationDataBinary(Animation3DData* animationdata)
|
|||
float keytime;
|
||||
if (!_binaryReader.read(&keytime))
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: keytime '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: keytime '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
// transform flag
|
||||
unsigned char transformFlag(0);
|
||||
if (_version == "0.4")
|
||||
{
|
||||
if (!_binaryReader.read(&transformFlag))
|
||||
{
|
||||
CCLOG("warning: Failed to read AnimationData: transformFlag '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// rotation
|
||||
bool hasRotate = true;
|
||||
if (_version == "0.4")
|
||||
hasRotate = transformFlag & 0x01;
|
||||
|
||||
if (hasRotate)
|
||||
{
|
||||
Quaternion rotate;
|
||||
if (_binaryReader.read(&rotate, 4, 4) != 4)
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: rotate '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: rotate '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
animationdata->_rotationKeys[boneName].push_back(Animation3DData::QuatKey(keytime, rotate));
|
||||
}
|
||||
|
||||
// scale
|
||||
bool hasScale = true;
|
||||
if (_version == "0.4")
|
||||
hasScale = (transformFlag >> 1) & 0x01;
|
||||
|
||||
if (hasScale)
|
||||
{
|
||||
Vec3 scale;
|
||||
if (_binaryReader.read(&scale, 4, 3) != 3)
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: scale '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: scale '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
animationdata->_scaleKeys[boneName].push_back(Animation3DData::Vec3Key(keytime, scale));
|
||||
}
|
||||
|
||||
// translation
|
||||
bool hasTranslation = true;
|
||||
if (_version == "0.4")
|
||||
hasTranslation = (transformFlag >> 2) & 0x01;
|
||||
|
||||
if (hasTranslation)
|
||||
{
|
||||
Vec3 position;
|
||||
if (_binaryReader.read(&position, 4, 3) != 3)
|
||||
{
|
||||
CCLOGINFO("Failed to read AnimationData: position '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read AnimationData: position '%s'.", _path.c_str());
|
||||
return false;
|
||||
}
|
||||
animationdata->_translationKeys[boneName].push_back(Animation3DData::Vec3Key(keytime, position));
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1697,11 +1736,6 @@ bool Bundle3D::loadNodesJson(NodeDatas& nodedatas)
|
|||
NodeData* Bundle3D::parseNodesRecursivelyJson(const rapidjson::Value& jvalue)
|
||||
{
|
||||
NodeData* nodedata = new (std::nothrow) NodeData();;
|
||||
//if (jvalue.HasMember(PARTS))
|
||||
// nodedata = new (std::nothrow) ModelNodeData();
|
||||
//else
|
||||
//nodedata = new (std::nothrow) NodeData();
|
||||
|
||||
// id
|
||||
nodedata->id = jvalue[ID].GetString();
|
||||
|
||||
|
@ -1732,7 +1766,7 @@ NodeData* Bundle3D::parseNodesRecursivelyJson(const rapidjson::Value& jvalue)
|
|||
if (modelnodedata->subMeshId == "" || modelnodedata->matrialId == "")
|
||||
{
|
||||
std::string err = "Node " + nodedata->id + " part is missing meshPartId or materialId";
|
||||
CCASSERT(false, err.c_str());
|
||||
CCLOG("warning: Node %s part is missing meshPartId or materialId", nodedata->id.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -1747,7 +1781,7 @@ NodeData* Bundle3D::parseNodesRecursivelyJson(const rapidjson::Value& jvalue)
|
|||
// node
|
||||
if (!bone.HasMember(NODE))
|
||||
{
|
||||
CCASSERT(false, "Bone node ID missing");
|
||||
CCLOG("warning: Bone node ID missing");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -1791,7 +1825,7 @@ bool Bundle3D::loadNodesBinary(NodeDatas& nodedatas)
|
|||
unsigned int nodeSize = 0;
|
||||
if (_binaryReader.read(&nodeSize, 4, 1) != 1)
|
||||
{
|
||||
CCASSERT(false, "Failed to read nodes");
|
||||
CCLOG("warning: Failed to read nodes");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1816,7 +1850,7 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
bool skeleton_;
|
||||
if (_binaryReader.read(&skeleton_, 1, 1) != 1)
|
||||
{
|
||||
CCASSERT(false, "Failed to read is sleleton");
|
||||
CCLOG("warning: Failed to read is sleleton");
|
||||
return nullptr;
|
||||
}
|
||||
if (skeleton_)
|
||||
|
@ -1826,14 +1860,14 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
Mat4 transform;
|
||||
if (!_binaryReader.readMatrix(transform.m))
|
||||
{
|
||||
CCASSERT(false,"Failed to read transform matrix");
|
||||
CCLOG("warning: Failed to read transform matrix");
|
||||
return nullptr;
|
||||
}
|
||||
// parts
|
||||
unsigned int partsSize = 0;
|
||||
if (_binaryReader.read(&partsSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -1842,7 +1876,7 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
nodedata->transform = transform;
|
||||
if (partsSize > 0)
|
||||
{
|
||||
for (rapidjson::SizeType i = 0; i < partsSize; i++)
|
||||
for (unsigned int i = 0; i < partsSize; i++)
|
||||
{
|
||||
auto modelnodedata = new (std::nothrow) ModelData();
|
||||
modelnodedata->subMeshId = _binaryReader.readString();
|
||||
|
@ -1851,7 +1885,7 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
if (modelnodedata->subMeshId == "" || modelnodedata->matrialId == "")
|
||||
{
|
||||
std::string err = "Node " + nodedata->id + " part is missing meshPartId or materialId";
|
||||
CCASSERT(false, err.c_str());
|
||||
CCLOG("Node %s part is missing meshPartId or materialId", nodedata->id.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -1859,13 +1893,13 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
unsigned int bonesSize = 0;
|
||||
if (_binaryReader.read(&bonesSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (bonesSize > 0)
|
||||
{
|
||||
for (rapidjson::SizeType j = 0; j < bonesSize; j++)
|
||||
for (unsigned int j = 0; j < bonesSize; j++)
|
||||
{
|
||||
std::string name = _binaryReader.readString();
|
||||
modelnodedata->bones.push_back(name);
|
||||
|
@ -1882,7 +1916,7 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
unsigned int uvMapping = 0;
|
||||
if (_binaryReader.read(&uvMapping, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read nodedata: uvMapping '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read nodedata: uvMapping '%s'.", _path.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
for( int j = 0 ;j < uvMapping ; j++ )
|
||||
|
@ -1890,7 +1924,7 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
unsigned int textureIndexSize=0;
|
||||
if (_binaryReader.read(&textureIndexSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
for(int k =0; k < textureIndexSize ; k++ )
|
||||
|
@ -1905,22 +1939,16 @@ NodeData* Bundle3D::parseNodesRecursivelyBinary(bool& skeleton)
|
|||
nodedata->modelNodeDatas.push_back(modelnodedata);
|
||||
}
|
||||
}
|
||||
//else
|
||||
//{
|
||||
// nodedata = new (std::nothrow) NodeData();
|
||||
// nodedata->id = id;
|
||||
// nodedata->transform = transform;
|
||||
//}
|
||||
|
||||
unsigned int childrenSize = 0;
|
||||
if (_binaryReader.read(&childrenSize, 4, 1) != 1)
|
||||
{
|
||||
CCLOGINFO("Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
CCLOG("warning: Failed to read meshdata: attribCount '%s'.", _path.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
if (childrenSize > 0)
|
||||
{
|
||||
for (rapidjson::SizeType i = 0; i < childrenSize; i++)
|
||||
for (unsigned int i = 0; i < childrenSize; i++)
|
||||
{
|
||||
NodeData* tempdata = parseNodesRecursivelyBinary(skeleton);
|
||||
nodedata->children.push_back(tempdata);
|
||||
|
@ -1969,7 +1997,7 @@ GLenum Bundle3D::parseGLType(const std::string& str)
|
|||
}
|
||||
else
|
||||
{
|
||||
CCASSERT(false, "Wrong GL type");
|
||||
CCASSERT(false, "Invalid GL type");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -2100,7 +2128,7 @@ Reference* Bundle3D::seekToFirstType(unsigned int type)
|
|||
// Found a match
|
||||
if (_binaryReader.seek(ref->offset, SEEK_SET) == false)
|
||||
{
|
||||
CCLOGINFO("Failed to seek to object '%s' in bundle '%s'.", ref->id.c_str(), _path.c_str());
|
||||
CCLOG("warning: Failed to seek to object '%s' in bundle '%s'.", ref->id.c_str(), _path.c_str());
|
||||
return nullptr;
|
||||
}
|
||||
return ref;
|
||||
|
|
|
@ -25,18 +25,10 @@
|
|||
#ifndef __CCBUNDLE3D_H__
|
||||
#define __CCBUNDLE3D_H__
|
||||
|
||||
#include <map>
|
||||
#include <list>
|
||||
|
||||
#include "3d/CCBundle3DData.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "base/ccTypes.h"
|
||||
|
||||
#include "json/document.h"
|
||||
#include "CCBundleReader.h"
|
||||
#include "3d/3dExport.h"
|
||||
#include "3d/CCBundleReader.h"
|
||||
#include "json/document.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
class Animation3D;
|
||||
|
|
|
@ -29,9 +29,9 @@ NS_CC_BEGIN
|
|||
|
||||
BundleReader::BundleReader()
|
||||
{
|
||||
m_buffer = nullptr;
|
||||
m_position = 0;
|
||||
m_length = 0;
|
||||
_buffer = nullptr;
|
||||
_position = 0;
|
||||
_length = 0;
|
||||
};
|
||||
|
||||
BundleReader::~BundleReader()
|
||||
|
@ -39,41 +39,42 @@ BundleReader::~BundleReader()
|
|||
|
||||
};
|
||||
|
||||
void BundleReader::init(char* lpbuffer, ssize_t length)
|
||||
void BundleReader::init(char* buffer, ssize_t length)
|
||||
{
|
||||
m_position = 0;
|
||||
m_buffer = lpbuffer;
|
||||
m_length = length;
|
||||
_position = 0;
|
||||
_buffer = buffer;
|
||||
_length = length;
|
||||
}
|
||||
|
||||
ssize_t BundleReader::read(void* ptr, ssize_t size, ssize_t count)
|
||||
{
|
||||
if (!m_buffer || eof())
|
||||
if (!_buffer || eof())
|
||||
return 0;
|
||||
|
||||
ssize_t validCount;
|
||||
ssize_t validLength = m_length - m_position;
|
||||
ssize_t validLength = _length - _position;
|
||||
ssize_t needLength = size*count;
|
||||
char* ptr1 = (char*)ptr;
|
||||
if(validLength <= needLength)
|
||||
{
|
||||
validCount = validLength/size;
|
||||
ssize_t readLength = size*validCount;
|
||||
memcpy(ptr1,(char*)m_buffer+m_position,readLength);
|
||||
memcpy(ptr1,(char*)_buffer+_position,readLength);
|
||||
ptr1 += readLength;
|
||||
m_position += readLength;
|
||||
_position += readLength;
|
||||
readLength = validLength - readLength;
|
||||
if(readLength>0)
|
||||
{
|
||||
memcpy(ptr1,(char*)m_buffer+m_position,readLength);
|
||||
m_position += readLength;
|
||||
memcpy(ptr1,(char*)_buffer+_position,readLength);
|
||||
_position += readLength;
|
||||
validCount+=1;
|
||||
}
|
||||
CCLOG("warning: bundle reader out of range");
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy(ptr1,(char*)m_buffer+m_position,needLength);
|
||||
m_position += needLength;
|
||||
memcpy(ptr1,(char*)_buffer+_position,needLength);
|
||||
_position += needLength;
|
||||
validCount = count;
|
||||
}
|
||||
|
||||
|
@ -82,19 +83,19 @@ ssize_t BundleReader::read(void* ptr, ssize_t size, ssize_t count)
|
|||
|
||||
char* BundleReader::readLine(int num,char* line)
|
||||
{
|
||||
if (!m_buffer)
|
||||
if (!_buffer)
|
||||
return 0;
|
||||
|
||||
char* buffer = (char*)m_buffer+m_position;
|
||||
char* buffer = (char*)_buffer+_position;
|
||||
char* p = line;
|
||||
char c;
|
||||
ssize_t readNum = 0;
|
||||
while((c=*buffer) != 10 && readNum < (ssize_t)num && m_position < m_length)
|
||||
while((c=*buffer) != 10 && readNum < (ssize_t)num && _position < _length)
|
||||
{
|
||||
*p = c;
|
||||
p++;
|
||||
buffer++;
|
||||
m_position++;
|
||||
_position++;
|
||||
readNum++;
|
||||
}
|
||||
*p = '\0';
|
||||
|
@ -104,7 +105,7 @@ char* BundleReader::readLine(int num,char* line)
|
|||
|
||||
bool BundleReader::eof()
|
||||
{
|
||||
if (!m_buffer)
|
||||
if (!_buffer)
|
||||
return true;
|
||||
|
||||
return ((ssize_t)tell()) >= length();
|
||||
|
@ -112,32 +113,32 @@ bool BundleReader::eof()
|
|||
|
||||
ssize_t BundleReader::length()
|
||||
{
|
||||
return m_length;
|
||||
return _length;
|
||||
}
|
||||
|
||||
ssize_t BundleReader::tell()
|
||||
{
|
||||
if (!m_buffer)
|
||||
if (!_buffer)
|
||||
return -1;
|
||||
return m_position;
|
||||
return _position;
|
||||
}
|
||||
|
||||
bool BundleReader::seek(long int offset, int origin)
|
||||
{
|
||||
if (!m_buffer)
|
||||
if (!_buffer)
|
||||
return false;
|
||||
|
||||
if(origin == SEEK_CUR)
|
||||
{
|
||||
m_position += offset;
|
||||
_position += offset;
|
||||
}
|
||||
else if(origin == SEEK_SET)
|
||||
{
|
||||
m_position = offset;
|
||||
_position = offset;
|
||||
}
|
||||
else if(origin == SEEK_END)
|
||||
{
|
||||
m_position = m_length+offset;
|
||||
_position = _length+offset;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
@ -147,9 +148,9 @@ bool BundleReader::seek(long int offset, int origin)
|
|||
|
||||
bool BundleReader::rewind()
|
||||
{
|
||||
if (m_buffer != nullptr)
|
||||
if (_buffer != nullptr)
|
||||
{
|
||||
m_position = 0;
|
||||
_position = 0;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
* @param lpbuffer The data buffer pointer
|
||||
* @param length The data buffer size
|
||||
*/
|
||||
void init(char* lpbuffer, ssize_t length);
|
||||
void init(char* buffer, ssize_t length);
|
||||
|
||||
/**
|
||||
* Reads an array of elements.
|
||||
|
@ -112,9 +112,9 @@ public:
|
|||
bool readMatrix(float* m);
|
||||
|
||||
private:
|
||||
ssize_t m_position;
|
||||
ssize_t m_length;
|
||||
char* m_buffer;
|
||||
ssize_t _position;
|
||||
ssize_t _length;
|
||||
char* _buffer;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,26 +22,14 @@
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include <list>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include "3d/CCMesh.h"
|
||||
#include "3d/CCMeshSkin.h"
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
#include "3d/CCMeshVertexIndexData.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCEventCustom.h"
|
||||
#include "base/CCEventListenerCustom.h"
|
||||
#include "base/CCEventDispatcher.h"
|
||||
#include "base/CCEventType.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "renderer/ccGLStateCache.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "renderer/CCGLProgramCache.h"
|
||||
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -26,17 +26,13 @@
|
|||
#define __CCMESH_H__
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "3d/CCBundle3DData.h"
|
||||
#include "3d/CCAABB.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
#include "base/CCRef.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "math/CCMath.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCGLProgramState.h"
|
||||
#include "renderer/CCMeshCommand.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -44,6 +40,8 @@ NS_CC_BEGIN
|
|||
class Texture2D;
|
||||
class MeshSkin;
|
||||
class MeshIndexData;
|
||||
class GLProgramState;
|
||||
class GLProgram;
|
||||
/**
|
||||
* Mesh: contains ref to index buffer, GLProgramState, texture, skin, blend function, aabb and so on
|
||||
*/
|
||||
|
|
|
@ -25,10 +25,7 @@
|
|||
#include "3d/CCMeshSkin.h"
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
#include "3d/CCBundle3D.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCPlatformMacros.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -25,17 +25,12 @@
|
|||
#ifndef __CCMESHSKIN_H__
|
||||
#define __CCMESHSKIN_H__
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "3d/CCBundle3DData.h"
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "3d/3dExport.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "base/CCVector.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "math/CCMath.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -30,14 +30,15 @@
|
|||
|
||||
#include "3d/CCBundle3DData.h"
|
||||
#include "3d/CCAABB.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
#include "base/CCRef.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "base/CCVector.h"
|
||||
#include "math/CCMath.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCVertexIndexData.h"
|
||||
#include "renderer/CCVertexIndexBuffer.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -16,17 +16,11 @@
|
|||
// version 0.9.0: Initial
|
||||
//
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
#include "CCObjLoader.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
#include "CCObjLoader.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "base/ccUtils.h"
|
||||
|
||||
|
|
|
@ -20,9 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "CCRay.h"
|
||||
#include "CCAABB.h"
|
||||
#include "CCOBB.h"
|
||||
#include "3d/CCRay.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -25,10 +25,9 @@
|
|||
#ifndef __CC_RAY_H_
|
||||
#define __CC_RAY_H_
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "math/CCMath.h"
|
||||
#include "CCAABB.h"
|
||||
#include "CCOBB.h"
|
||||
#include "3d/CCAABB.h"
|
||||
#include "3d/CCOBB.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -23,11 +23,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
#include "3d/CCBundle3D.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/CCPlatformMacros.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -25,16 +25,11 @@
|
|||
#ifndef __CCSKELETON3D_H__
|
||||
#define __CCSKELETON3D_H__
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "3d/CCBundle3DData.h"
|
||||
|
||||
#include "base/ccMacros.h"
|
||||
#include "3d/3dExport.h"
|
||||
#include "base/CCRef.h"
|
||||
#include "base/CCVector.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "math/CCMath.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "3d/CCBundle3D.h"
|
||||
#include "3d/CCSprite3DMaterial.h"
|
||||
#include "3d/CCAttachNode.h"
|
||||
#include "3d/CCSkeleton3D.h"
|
||||
#include "3d/CCMesh.h"
|
||||
|
||||
#include "base/CCDirector.h"
|
||||
#include "base/CCPlatformMacros.h"
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#ifndef __CCSPRITE3D_H__
|
||||
#define __CCSPRITE3D_H__
|
||||
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "base/CCVector.h"
|
||||
|
@ -33,9 +32,9 @@
|
|||
#include "base/CCProtocols.h"
|
||||
#include "2d/CCNode.h"
|
||||
#include "renderer/CCMeshCommand.h"
|
||||
#include "3d/CCSkeleton3D.h" // need to include for lua-binding
|
||||
#include "3d/CCAABB.h"
|
||||
#include "3d/CCBundle3DData.h"
|
||||
#include "3d/CCMesh.h"
|
||||
#include "3d/CCMeshVertexIndexData.h"
|
||||
#include "3d/3dExport.h"
|
||||
|
||||
|
@ -47,10 +46,7 @@ class Mesh;
|
|||
class Texture2D;
|
||||
class MeshSkin;
|
||||
class AttachNode;
|
||||
class SubMeshState;
|
||||
class Skeleton3D;
|
||||
struct NodeData;
|
||||
class SubMesh;
|
||||
/** Sprite3D: A sprite can be loaded from 3D model files, .obj, .c3t, .c3b, then can be drawed as sprite */
|
||||
class CC_3D_DLL Sprite3D : public Node, public BlendProtocol
|
||||
{
|
||||
|
|
|
@ -24,13 +24,7 @@
|
|||
|
||||
#include "3d/CCSprite3DMaterial.h"
|
||||
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
#include "base/CCEventCustom.h"
|
||||
#include "base/CCEventListenerCustom.h"
|
||||
#include "base/CCEventDispatcher.h"
|
||||
#include "base/CCEventType.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "renderer/CCTexture2D.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -28,14 +28,9 @@
|
|||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include "base/ccTypes.h"
|
||||
#include "base/CCMap.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class Sprite3D;
|
||||
class Mesh;
|
||||
class EventListenerCustom;
|
||||
class EventCustom;
|
||||
class Texture2D;
|
||||
|
||||
/**
|
||||
|
|
|
@ -85,12 +85,11 @@ list(REMOVE_ITEM cocos2d_source_files
|
|||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCController-android.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCUserDefaultAndroid.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui/UIVideoPlayerAndroid.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui/UIWebView.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui/UIWebViewImpl_android.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/storage/local-storage/LocalStorageAndroid.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCEventController.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCEventListenerController.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../extensions/GUI/CCEditBox/CCEditBoxImplAndroid.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../extensions/GUI/CCEditBox/CCEditBoxImplWin.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../extensions/GUI/CCEditBox/CCEditBoxImplWp8.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/editor-support/cocostudio/proj.wp8/pch.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../extensions/proj.wp8/pch.cpp")
|
||||
|
||||
|
|
|
@ -27,11 +27,7 @@ THE SOFTWARE.
|
|||
#ifndef _SIMPLE_AUDIO_ENGINE_H_
|
||||
#define _SIMPLE_AUDIO_ENGINE_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include "Export.h"
|
||||
#include <typeinfo>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||
#define CC_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
|
||||
|
|
|
@ -338,7 +338,7 @@ typedef struct _sourceInfo {
|
|||
#pragma mark CDAsynchBufferLoader
|
||||
|
||||
/** CDAsynchBufferLoader
|
||||
TODO
|
||||
* TODO: ???
|
||||
*/
|
||||
@interface CDAsynchBufferLoader : NSOperation {
|
||||
NSArray *_loadRequests;
|
||||
|
|
|
@ -25,7 +25,6 @@ THE SOFTWARE.
|
|||
#ifndef __AUTORELEASEPOOL_H__
|
||||
#define __AUTORELEASEPOOL_H__
|
||||
|
||||
#include <stack>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "base/CCRef.h"
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include "base/CCDirector.h"
|
||||
#include "platform/CCGLView.h"
|
||||
#include "2d/CCScene.h"
|
||||
#include "2d/CCNode.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ THE SOFTWARE.
|
|||
#ifndef _CCCAMERA_H__
|
||||
#define _CCCAMERA_H__
|
||||
|
||||
#include "base/CCVector.h"
|
||||
#include "2d/CCNode.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -25,9 +25,6 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "base/CCConfiguration.h"
|
||||
#include <string.h>
|
||||
#include "base/ccMacros.h"
|
||||
#include "base/ccConfig.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -161,13 +158,13 @@ void Configuration::destroyInstance()
|
|||
CC_SAFE_RELEASE_NULL(s_sharedConfiguration);
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME: deprecated
|
||||
Configuration* Configuration::sharedConfiguration()
|
||||
{
|
||||
return Configuration::getInstance();
|
||||
}
|
||||
|
||||
// XXX: deprecated
|
||||
// FIXME: deprecated
|
||||
void Configuration::purgeConfiguration()
|
||||
{
|
||||
Configuration::destroyInstance();
|
||||
|
|
|
@ -237,7 +237,7 @@ static void _log(const char *format, va_list args)
|
|||
|
||||
}
|
||||
|
||||
// XXX: Deprecated
|
||||
// FIXME: Deprecated
|
||||
void CCLog(const char * format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
|
|
@ -23,15 +23,13 @@
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "CCController.h"
|
||||
#include "base/CCController.h"
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
|
||||
#include "ccMacros.h"
|
||||
#include "CCEventDispatcher.h"
|
||||
#include "CCEventController.h"
|
||||
#include "CCEventListenerController.h"
|
||||
#include "CCDirector.h"
|
||||
#include "base/CCEventDispatcher.h"
|
||||
#include "base/CCEventController.h"
|
||||
#include "base/CCDirector.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "base/CCData.h"
|
||||
#include "platform/CCCommon.h"
|
||||
#include "base/ccMacros.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -32,16 +32,16 @@ THE SOFTWARE.
|
|||
#include <string>
|
||||
|
||||
#include "2d/CCDrawingPrimitives.h"
|
||||
#include "2d/CCScene.h"
|
||||
#include "2d/CCSpriteFrameCache.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "platform/CCImage.h"
|
||||
|
||||
#include "2d/CCActionManager.h"
|
||||
#include "2d/CCFontFNT.h"
|
||||
#include "2d/CCFontAtlasCache.h"
|
||||
#include "2d/CCAnimationCache.h"
|
||||
#include "2d/CCTransition.h"
|
||||
#include "2d/CCFontFreeType.h"
|
||||
#include "2d/CCLabelAtlas.h"
|
||||
#include "renderer/CCGLProgramCache.h"
|
||||
#include "renderer/CCGLProgramStateCache.h"
|
||||
#include "renderer/CCTextureCache.h"
|
||||
|
@ -55,12 +55,9 @@ THE SOFTWARE.
|
|||
#include "base/CCEventDispatcher.h"
|
||||
#include "base/CCEventCustom.h"
|
||||
#include "base/CCConsole.h"
|
||||
#include "base/CCTouch.h"
|
||||
#include "base/CCAutoreleasePool.h"
|
||||
#include "base/CCProfiling.h"
|
||||
#include "base/CCConfiguration.h"
|
||||
#include "base/CCNS.h"
|
||||
#include "math/CCMath.h"
|
||||
|
||||
#include "CCApplication.h"
|
||||
#include "CCGLViewImpl.h"
|
||||
|
||||
|
@ -76,7 +73,7 @@ THE SOFTWARE.
|
|||
using namespace std;
|
||||
|
||||
NS_CC_BEGIN
|
||||
// XXX it should be a Director ivar. Move it there once support for multiple directors is added
|
||||
// FIXME: it should be a Director ivar. Move it there once support for multiple directors is added
|
||||
|
||||
// singleton stuff
|
||||
static DisplayLinkDirector *s_SharedDirector = nullptr;
|
||||
|
@ -241,7 +238,7 @@ void Director::setGLDefaultValues()
|
|||
CCASSERT(_openGLView, "opengl view should not be null");
|
||||
|
||||
setAlphaBlending(true);
|
||||
// XXX: Fix me, should enable/disable depth test according the depth format as cocos2d-iphone did
|
||||
// FIXME: Fix me, should enable/disable depth test according the depth format as cocos2d-iphone did
|
||||
// [self setDepthTest: view_.depthFormat];
|
||||
setDepthTest(false);
|
||||
setProjection(_projection);
|
||||
|
@ -277,7 +274,8 @@ void Director::drawScene()
|
|||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
/* to avoid flickr, nextScene MUST be here: after tick and before draw.
|
||||
XXX: Which bug is this one. It seems that it can't be reproduced with v0.9 */
|
||||
* FIXME: Which bug is this one. It seems that it can't be reproduced with v0.9
|
||||
*/
|
||||
if (_nextScene)
|
||||
{
|
||||
setNextScene();
|
||||
|
@ -1161,7 +1159,7 @@ void Director::calculateMPF()
|
|||
// returns the FPS image data pointer and len
|
||||
void Director::getFPSImageData(unsigned char** datapointer, ssize_t* length)
|
||||
{
|
||||
// XXX fixed me if it should be used
|
||||
// FIXME: fixed me if it should be used
|
||||
*datapointer = cc_fps_images_png;
|
||||
*length = cc_fps_images_len();
|
||||
}
|
||||
|
|
|
@ -31,12 +31,9 @@ THE SOFTWARE.
|
|||
#include "base/CCPlatformMacros.h"
|
||||
|
||||
#include "base/CCRef.h"
|
||||
#include "base/ccTypes.h"
|
||||
#include "math/CCGeometry.h"
|
||||
#include "base/CCVector.h"
|
||||
#include "CCGL.h"
|
||||
#include "2d/CCLabelAtlas.h"
|
||||
#include "2d/CCScene.h"
|
||||
#include "CCGL.h"
|
||||
#include <stack>
|
||||
#include "math/CCMath.h"
|
||||
#include "platform/CCGLView.h"
|
||||
|
@ -50,7 +47,6 @@ NS_CC_BEGIN
|
|||
|
||||
/* Forward declarations. */
|
||||
class LabelAtlas;
|
||||
class Scene;
|
||||
//class GLView;
|
||||
class DirectorDelegate;
|
||||
class Node;
|
||||
|
@ -246,7 +242,7 @@ public:
|
|||
*/
|
||||
Vec2 convertToUI(const Vec2& point);
|
||||
|
||||
/// XXX: missing description
|
||||
/// FIXME: missing description
|
||||
float getZEye() const;
|
||||
|
||||
// Scene Management
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue