From 2f10a26b888b3afbc76022739b1d3a583ed906c9 Mon Sep 17 00:00:00 2001
From: matcool <26722564+matcool@users.noreply.github.com>
Date: Thu, 11 Mar 2021 13:31:05 -0300
Subject: [PATCH 01/95] move files
---
.gitignore | 3 ++-
GameManager.cpp => src/GameManager.cpp | 0
GameManager.h => src/GameManager.h | 0
PauseLayer.cpp => src/PauseLayer.cpp | 0
PauseLayer.h => src/PauseLayer.h | 0
PlayLayer.cpp => src/PlayLayer.cpp | 0
PlayLayer.h => src/PlayLayer.h | 0
PlayerObject.cpp => src/PlayerObject.cpp | 0
PlayerObject.h => src/PlayerObject.h | 0
PracticeFixes.cpp => src/PracticeFixes.cpp | 0
PracticeFixes.h => src/PracticeFixes.h | 0
Replay.cpp => src/Replay.cpp | 0
Replay.h => src/Replay.h | 0
ReplaySystem.cpp => src/ReplaySystem.cpp | 0
ReplaySystem.h => src/ReplaySystem.h | 0
dllmain.cpp => src/dllmain.cpp | 0
framework.h => src/framework.h | 0
pch.cpp => src/pch.cpp | 0
pch.h => src/pch.h | 0
utils.hpp => src/utils.hpp | 0
20 files changed, 2 insertions(+), 1 deletion(-)
rename GameManager.cpp => src/GameManager.cpp (100%)
rename GameManager.h => src/GameManager.h (100%)
rename PauseLayer.cpp => src/PauseLayer.cpp (100%)
rename PauseLayer.h => src/PauseLayer.h (100%)
rename PlayLayer.cpp => src/PlayLayer.cpp (100%)
rename PlayLayer.h => src/PlayLayer.h (100%)
rename PlayerObject.cpp => src/PlayerObject.cpp (100%)
rename PlayerObject.h => src/PlayerObject.h (100%)
rename PracticeFixes.cpp => src/PracticeFixes.cpp (100%)
rename PracticeFixes.h => src/PracticeFixes.h (100%)
rename Replay.cpp => src/Replay.cpp (100%)
rename Replay.h => src/Replay.h (100%)
rename ReplaySystem.cpp => src/ReplaySystem.cpp (100%)
rename ReplaySystem.h => src/ReplaySystem.h (100%)
rename dllmain.cpp => src/dllmain.cpp (100%)
rename framework.h => src/framework.h (100%)
rename pch.cpp => src/pch.cpp (100%)
rename pch.h => src/pch.h (100%)
rename utils.hpp => src/utils.hpp (100%)
diff --git a/.gitignore b/.gitignore
index a816690..b80582d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -361,4 +361,5 @@ MigrationBackup/
# Fody - auto-generated XML schema
FodyWeavers.xsd
-ffmpeg/
\ No newline at end of file
+ffmpeg/
+inject.py
\ No newline at end of file
diff --git a/GameManager.cpp b/src/GameManager.cpp
similarity index 100%
rename from GameManager.cpp
rename to src/GameManager.cpp
diff --git a/GameManager.h b/src/GameManager.h
similarity index 100%
rename from GameManager.h
rename to src/GameManager.h
diff --git a/PauseLayer.cpp b/src/PauseLayer.cpp
similarity index 100%
rename from PauseLayer.cpp
rename to src/PauseLayer.cpp
diff --git a/PauseLayer.h b/src/PauseLayer.h
similarity index 100%
rename from PauseLayer.h
rename to src/PauseLayer.h
diff --git a/PlayLayer.cpp b/src/PlayLayer.cpp
similarity index 100%
rename from PlayLayer.cpp
rename to src/PlayLayer.cpp
diff --git a/PlayLayer.h b/src/PlayLayer.h
similarity index 100%
rename from PlayLayer.h
rename to src/PlayLayer.h
diff --git a/PlayerObject.cpp b/src/PlayerObject.cpp
similarity index 100%
rename from PlayerObject.cpp
rename to src/PlayerObject.cpp
diff --git a/PlayerObject.h b/src/PlayerObject.h
similarity index 100%
rename from PlayerObject.h
rename to src/PlayerObject.h
diff --git a/PracticeFixes.cpp b/src/PracticeFixes.cpp
similarity index 100%
rename from PracticeFixes.cpp
rename to src/PracticeFixes.cpp
diff --git a/PracticeFixes.h b/src/PracticeFixes.h
similarity index 100%
rename from PracticeFixes.h
rename to src/PracticeFixes.h
diff --git a/Replay.cpp b/src/Replay.cpp
similarity index 100%
rename from Replay.cpp
rename to src/Replay.cpp
diff --git a/Replay.h b/src/Replay.h
similarity index 100%
rename from Replay.h
rename to src/Replay.h
diff --git a/ReplaySystem.cpp b/src/ReplaySystem.cpp
similarity index 100%
rename from ReplaySystem.cpp
rename to src/ReplaySystem.cpp
diff --git a/ReplaySystem.h b/src/ReplaySystem.h
similarity index 100%
rename from ReplaySystem.h
rename to src/ReplaySystem.h
diff --git a/dllmain.cpp b/src/dllmain.cpp
similarity index 100%
rename from dllmain.cpp
rename to src/dllmain.cpp
diff --git a/framework.h b/src/framework.h
similarity index 100%
rename from framework.h
rename to src/framework.h
diff --git a/pch.cpp b/src/pch.cpp
similarity index 100%
rename from pch.cpp
rename to src/pch.cpp
diff --git a/pch.h b/src/pch.h
similarity index 100%
rename from pch.h
rename to src/pch.h
diff --git a/utils.hpp b/src/utils.hpp
similarity index 100%
rename from utils.hpp
rename to src/utils.hpp
From b7c55433e02dfc52e8eed1018e54ddc161e829dc Mon Sep 17 00:00:00 2001
From: matcool <26722564+matcool@users.noreply.github.com>
Date: Thu, 11 Mar 2021 13:37:51 -0300
Subject: [PATCH 02/95] move to cmake + submodules
---
.gitignore | 370 +--
.gitmodules | 6 +
CMakeLists.txt | 39 +
ReplayBot.sln | 31 -
ReplayBot.vcxproj | 576 ----
ReplayBot.vcxproj.filters | 1254 --------
cappuccino-sdk/LICENSE | 21 -
cappuccino-sdk/incl/cocos2dx/Android.mk | 178 --
cappuccino-sdk/incl/cocos2dx/CCCamera.h | 145 -
.../incl/cocos2dx/CCConfiguration.h | 164 --
cappuccino-sdk/incl/cocos2dx/CCDirector.h | 579 ----
cappuccino-sdk/incl/cocos2dx/CCScheduler.h | 319 ---
.../incl/cocos2dx/actions/CCAction.h | 295 --
.../incl/cocos2dx/actions/CCActionCamera.h | 147 -
.../cocos2dx/actions/CCActionCatmullRom.h | 275 --
.../incl/cocos2dx/actions/CCActionEase.h | 567 ----
.../incl/cocos2dx/actions/CCActionGrid.h | 241 --
.../incl/cocos2dx/actions/CCActionGrid3D.h | 296 --
.../incl/cocos2dx/actions/CCActionInstant.h | 526 ----
.../incl/cocos2dx/actions/CCActionInterval.h | 962 -------
.../incl/cocos2dx/actions/CCActionManager.h | 142 -
.../cocos2dx/actions/CCActionPageTurn3D.h | 62 -
.../cocos2dx/actions/CCActionProgressTimer.h | 94 -
.../incl/cocos2dx/actions/CCActionTiledGrid.h | 330 ---
.../incl/cocos2dx/actions/CCActionTween.h | 90 -
.../incl/cocos2dx/base_nodes/CCAtlasNode.h | 139 -
.../cocos2dx/base_nodes/CCGLBufferedNode.h | 48 -
.../incl/cocos2dx/base_nodes/CCNode.h | 1546 ----------
cappuccino-sdk/incl/cocos2dx/ccFPSImages.c | 613 ----
cappuccino-sdk/incl/cocos2dx/ccFPSImages.h | 34 -
.../incl/cocos2dx/cocoa/CCAffineTransform.h | 61 -
cappuccino-sdk/incl/cocos2dx/cocoa/CCArray.h | 254 --
.../incl/cocos2dx/cocoa/CCAutoreleasePool.h | 83 -
cappuccino-sdk/incl/cocos2dx/cocoa/CCBool.h | 68 -
.../incl/cocos2dx/cocoa/CCDataVisitor.h | 115 -
.../incl/cocos2dx/cocoa/CCDictionary.h | 436 ---
cappuccino-sdk/incl/cocos2dx/cocoa/CCDouble.h | 68 -
cappuccino-sdk/incl/cocos2dx/cocoa/CCFloat.h | 68 -
.../incl/cocos2dx/cocoa/CCGeometry.h | 347 ---
.../incl/cocos2dx/cocoa/CCInteger.h | 42 -
cappuccino-sdk/incl/cocos2dx/cocoa/CCNS.h | 80 -
cappuccino-sdk/incl/cocos2dx/cocoa/CCObject.h | 126 -
cappuccino-sdk/incl/cocos2dx/cocoa/CCSet.h | 125 -
cappuccino-sdk/incl/cocos2dx/cocoa/CCString.h | 164 --
cappuccino-sdk/incl/cocos2dx/cocoa/CCZone.h | 58 -
.../custom/Delegates/CCKeyboardDelegate.h | 15 -
.../custom/Delegates/CCMouseDelegate.h | 15 -
.../CCMenuItemSpriteExtra.cpp | 38 -
.../CCMenuItemSpriteExtra.h | 15 -
.../Sprites/CCSpriteExtra/CCSpriteExtra.h | 14 -
.../incl/cocos2dx/draw_nodes/CCDrawNode.h | 107 -
.../cocos2dx/draw_nodes/CCDrawingPrimitives.h | 160 --
.../incl/cocos2dx/effects/CCGrabber.h | 66 -
cappuccino-sdk/incl/cocos2dx/effects/CCGrid.h | 244 --
.../incl/cocos2dx/include/CCEventType.h | 19 -
.../incl/cocos2dx/include/CCProtocols.h | 225 --
.../incl/cocos2dx/include/ccConfig.h | 269 --
.../incl/cocos2dx/include/ccMacros.h | 259 --
.../incl/cocos2dx/include/ccTypeInfo.h | 57 -
.../incl/cocos2dx/include/ccTypes.h | 441 ---
.../incl/cocos2dx/include/cocos2d.h | 311 --
.../kazmath/include/kazmath/GL/mat4stack.h | 51 -
.../kazmath/include/kazmath/GL/matrix.h | 60 -
.../cocos2dx/kazmath/include/kazmath/aabb.h | 54 -
.../kazmath/include/kazmath/kazmath.h | 39 -
.../cocos2dx/kazmath/include/kazmath/mat3.h | 76 -
.../cocos2dx/kazmath/include/kazmath/mat4.h | 94 -
.../include/kazmath/neon_matrix_impl.h | 45 -
.../cocos2dx/kazmath/include/kazmath/plane.h | 71 -
.../kazmath/include/kazmath/quaternion.h | 114 -
.../cocos2dx/kazmath/include/kazmath/ray2.h | 51 -
.../kazmath/include/kazmath/utility.h | 75 -
.../cocos2dx/kazmath/include/kazmath/vec2.h | 66 -
.../cocos2dx/kazmath/include/kazmath/vec3.h | 69 -
.../cocos2dx/kazmath/include/kazmath/vec4.h | 69 -
.../incl/cocos2dx/kazmath/src/CMakeLists.txt | 14 -
.../incl/cocos2dx/kazmath/src/ChangeLog | 738 -----
.../incl/cocos2dx/kazmath/src/GL/mat4stack.c | 74 -
.../incl/cocos2dx/kazmath/src/GL/matrix.c | 191 --
.../incl/cocos2dx/kazmath/src/aabb.c | 63 -
.../incl/cocos2dx/kazmath/src/mat3.c | 372 ---
.../incl/cocos2dx/kazmath/src/mat4.c | 790 -----
.../cocos2dx/kazmath/src/neon_matrix_impl.c | 97 -
.../incl/cocos2dx/kazmath/src/plane.c | 175 --
.../incl/cocos2dx/kazmath/src/quaternion.c | 586 ----
.../incl/cocos2dx/kazmath/src/ray2.c | 186 --
.../incl/cocos2dx/kazmath/src/utility.c | 59 -
.../incl/cocos2dx/kazmath/src/vec2.c | 118 -
.../incl/cocos2dx/kazmath/src/vec3.c | 310 --
.../incl/cocos2dx/kazmath/src/vec4.c | 154 -
.../keypad_dispatcher/CCKeypadDelegate.h | 82 -
.../keypad_dispatcher/CCKeypadDispatcher.h | 98 -
.../incl/cocos2dx/label_nodes/CCLabelAtlas.h | 113 -
.../incl/cocos2dx/label_nodes/CCLabelBMFont.h | 344 ---
.../incl/cocos2dx/label_nodes/CCLabelTTF.h | 212 --
.../layers_scenes_transitions_nodes/CCLayer.h | 457 ---
.../layers_scenes_transitions_nodes/CCScene.h | 74 -
.../CCTransition.h | 845 ------
.../CCTransitionPageTurn.h | 96 -
.../CCTransitionProgress.h | 145 -
.../incl/cocos2dx/menu_nodes/CCMenu.h | 200 --
.../incl/cocos2dx/menu_nodes/CCMenuItem.h | 433 ---
.../incl/cocos2dx/misc_nodes/CCClippingNode.h | 121 -
.../incl/cocos2dx/misc_nodes/CCMotionStreak.h | 140 -
.../cocos2dx/misc_nodes/CCProgressTimer.h | 156 -
.../cocos2dx/misc_nodes/CCRenderTexture.h | 192 --
.../particle_nodes/CCParticleBatchNode.h | 142 -
.../particle_nodes/CCParticleExamples.h | 263 --
.../particle_nodes/CCParticleSystem.h | 457 ---
.../particle_nodes/CCParticleSystemQuad.h | 151 -
.../cocos2dx/particle_nodes/firePngData.h | 48 -
.../platform/CCAccelerometerDelegate.h | 59 -
.../cocos2dx/platform/CCApplicationProtocol.h | 101 -
.../incl/cocos2dx/platform/CCCommon.h | 80 -
.../incl/cocos2dx/platform/CCDevice.h | 26 -
.../cocos2dx/platform/CCEGLViewProtocol.h | 202 --
.../incl/cocos2dx/platform/CCFileUtils.h | 445 ---
.../incl/cocos2dx/platform/CCImage.h | 211 --
.../cocos2dx/platform/CCImageCommon_cpp.h | 986 -------
.../incl/cocos2dx/platform/CCPlatformConfig.h | 148 -
.../incl/cocos2dx/platform/CCPlatformMacros.h | 327 ---
.../incl/cocos2dx/platform/CCSAXParser.h | 78 -
.../incl/cocos2dx/platform/CCThread.h | 60 -
.../incl/cocos2dx/platform/platform.h | 60 -
.../incl/cocos2dx/proj.win32/cocos2d.vcxproj | 441 ---
.../proj.win32/cocos2d.vcxproj.filters | 956 -------
.../cocos2dx/script_support/CCScriptSupport.h | 298 --
.../incl/cocos2dx/shaders/CCGLProgram.h | 298 --
.../incl/cocos2dx/shaders/CCShaderCache.h | 94 -
.../incl/cocos2dx/shaders/ccGLStateCache.h | 161 --
.../shaders/ccShaderEx_SwitchMask_frag.h | 18 -
...ccShader_PositionColorLengthTexture_frag.h | 41 -
...ccShader_PositionColorLengthTexture_vert.h | 47 -
.../shaders/ccShader_PositionColor_frag.h | 37 -
.../shaders/ccShader_PositionColor_vert.h | 40 -
.../ccShader_PositionTextureA8Color_frag.h | 41 -
.../ccShader_PositionTextureA8Color_vert.h | 45 -
...hader_PositionTextureColorAlphaTest_frag.h | 47 -
.../ccShader_PositionTextureColor_frag.h | 39 -
.../ccShader_PositionTextureColor_vert.h | 45 -
.../shaders/ccShader_PositionTexture_frag.h | 38 -
.../ccShader_PositionTexture_uColor_frag.h | 41 -
.../ccShader_PositionTexture_uColor_vert.h | 41 -
.../shaders/ccShader_PositionTexture_vert.h | 41 -
.../shaders/ccShader_Position_uColor_frag.h | 37 -
.../shaders/ccShader_Position_uColor_vert.h | 43 -
.../incl/cocos2dx/shaders/ccShaders.h | 68 -
.../winrt/precompiledshaders.h.REMOVED.git-id | 1 -
.../wp8/precompiledshaders.h.REMOVED.git-id | 1 -
.../incl/cocos2dx/sprite_nodes/CCAnimation.h | 203 --
.../cocos2dx/sprite_nodes/CCAnimationCache.h | 116 -
.../incl/cocos2dx/sprite_nodes/CCSprite.h | 595 ----
.../cocos2dx/sprite_nodes/CCSpriteBatchNode.h | 202 --
.../cocos2dx/sprite_nodes/CCSpriteFrame.h | 167 --
.../sprite_nodes/CCSpriteFrameCache.h | 170 --
.../cocos2dx/support/CCNotificationCenter.h | 149 -
.../incl/cocos2dx/support/CCPointExtension.h | 343 ---
.../incl/cocos2dx/support/CCProfiling.h | 113 -
.../incl/cocos2dx/support/CCVertex.h | 54 -
.../incl/cocos2dx/support/TransformUtils.h | 41 -
cappuccino-sdk/incl/cocos2dx/support/base64.h | 54 -
cappuccino-sdk/incl/cocos2dx/support/ccUTF8.h | 97 -
.../incl/cocos2dx/support/ccUtils.h | 50 -
.../cocos2dx/support/component/CCComponent.h | 74 -
.../support/component/CCComponentContainer.h | 66 -
.../cocos2dx/support/data_support/ccCArray.h | 209 --
.../cocos2dx/support/data_support/uthash.h | 940 ------
.../cocos2dx/support/data_support/utlist.h | 728 -----
.../cocos2dx/support/image_support/TGAlib.h | 72 -
.../incl/cocos2dx/support/tinyxml2/tinyxml2.h | 1914 -------------
.../support/user_default/CCUserDefault.h | 130 -
.../support/user_default/CCUserDefault.mm | 486 ----
.../cocos2dx/support/zip_support/ZipUtils.h | 233 --
.../incl/cocos2dx/support/zip_support/ioapi.h | 197 --
.../incl/cocos2dx/support/zip_support/unzip.h | 455 ---
.../cocos2dx/text_input_node/CCIMEDelegate.h | 113 -
.../text_input_node/CCIMEDispatcher.h | 113 -
.../cocos2dx/text_input_node/CCTextFieldTTF.h | 187 --
.../incl/cocos2dx/textures/CCTexture2D.h | 311 --
.../incl/cocos2dx/textures/CCTextureAtlas.h | 237 --
.../incl/cocos2dx/textures/CCTextureCache.h | 265 --
.../incl/cocos2dx/textures/CCTextureETC.h | 60 -
.../incl/cocos2dx/textures/CCTexturePVR.h | 152 -
.../tilemap_parallax_nodes/CCParallaxNode.h | 84 -
.../tilemap_parallax_nodes/CCTMXLayer.h | 229 --
.../tilemap_parallax_nodes/CCTMXObjectGroup.h | 84 -
.../tilemap_parallax_nodes/CCTMXTiledMap.h | 179 --
.../tilemap_parallax_nodes/CCTMXXMLParser.h | 241 --
.../tilemap_parallax_nodes/CCTileMapAtlas.h | 111 -
.../incl/cocos2dx/touch_dispatcher/CCTouch.h | 101 -
.../CCTouchDelegateProtocol.h | 121 -
.../touch_dispatcher/CCTouchDispatcher.h | 227 --
.../touch_dispatcher/CCTouchHandler.h | 129 -
.../extensions/AssetsManager/AssetsManager.h | 221 --
.../CCBReader/CCBAnimationManager.h | 251 --
.../incl/extensions/CCBReader/CCBFileLoader.h | 28 -
.../incl/extensions/CCBReader/CCBKeyframe.h | 39 -
.../CCBReader/CCBMemberVariableAssigner.h | 58 -
.../incl/extensions/CCBReader/CCBReader.h | 440 ---
.../CCBReader/CCBSelectorResolver.h | 46 -
.../incl/extensions/CCBReader/CCBSequence.h | 50 -
.../CCBReader/CCBSequenceProperty.h | 37 -
.../incl/extensions/CCBReader/CCBValue.h | 74 -
.../CCBReader/CCControlButtonLoader.h | 32 -
.../extensions/CCBReader/CCControlLoader.h | 28 -
.../incl/extensions/CCBReader/CCData.h | 30 -
.../CCBReader/CCLabelBMFontLoader.h | 31 -
.../extensions/CCBReader/CCLabelTTFLoader.h | 34 -
.../extensions/CCBReader/CCLayerColorLoader.h | 29 -
.../CCBReader/CCLayerGradientLoader.h | 30 -
.../incl/extensions/CCBReader/CCLayerLoader.h | 27 -
.../CCBReader/CCMenuItemImageLoader.h | 27 -
.../extensions/CCBReader/CCMenuItemLoader.h | 27 -
.../incl/extensions/CCBReader/CCMenuLoader.h | 25 -
.../CCBReader/CCNode+CCBRelativePositioning.h | 15 -
.../incl/extensions/CCBReader/CCNodeLoader.h | 128 -
.../CCBReader/CCNodeLoaderLibrary.h | 45 -
.../CCBReader/CCNodeLoaderListener.h | 20 -
.../CCBReader/CCParticleSystemQuadLoader.h | 34 -
.../CCBReader/CCScale9SpriteLoader.h | 34 -
.../extensions/CCBReader/CCScrollViewLoader.h | 31 -
.../extensions/CCBReader/CCSpriteLoader.h | 31 -
.../CocoStudio/Action/CCActionEaseEx.h | 363 ---
.../CocoStudio/Action/CCActionFrame.h | 453 ---
.../CocoStudio/Action/CCActionFrameEasing.h | 76 -
.../CocoStudio/Action/CCActionManager.h | 108 -
.../CocoStudio/Action/CCActionNode.h | 182 --
.../CocoStudio/Action/CCActionObject.h | 181 --
.../CocoStudio/Armature/CCArmature.h | 216 --
.../extensions/CocoStudio/Armature/CCBone.h | 242 --
.../Armature/animation/CCArmatureAnimation.h | 324 ---
.../Armature/animation/CCProcessBase.h | 168 --
.../CocoStudio/Armature/animation/CCTween.h | 147 -
.../CocoStudio/Armature/datas/CCDatas.h | 473 ---
.../CocoStudio/Armature/display/CCBatchNode.h | 69 -
.../Armature/display/CCDecorativeDisplay.h | 64 -
.../Armature/display/CCDisplayFactory.h | 65 -
.../Armature/display/CCDisplayManager.h | 156 -
.../CocoStudio/Armature/display/CCSkin.h | 67 -
.../Armature/external_tool/sigslot.h | 2540 -----------------
.../Armature/physics/CCColliderDetector.h | 160 --
.../Armature/utils/CCArmatureDataManager.h | 203 --
.../Armature/utils/CCArmatureDefine.h | 71 -
.../Armature/utils/CCDataReaderHelper.h | 133 -
.../Armature/utils/CCSpriteFrameCacheHelper.h | 60 -
.../Armature/utils/CCTransformHelp.h | 64 -
.../Armature/utils/CCTweenFunction.h | 141 -
.../CocoStudio/Armature/utils/CCUtilMath.h | 55 -
.../CocoStudio/Components/CCComAttribute.h | 70 -
.../CocoStudio/Components/CCComAudio.h | 90 -
.../CocoStudio/Components/CCComBase.h | 51 -
.../CocoStudio/Components/CCComController.h | 59 -
.../CocoStudio/Components/CCComRender.h | 66 -
.../CocoStudio/Components/CCInputDelegate.h | 83 -
.../CocoStudio/GUI/BaseClasses/UIWidget.h | 730 -----
.../CocoStudio/GUI/Layouts/UILayout.h | 316 --
.../CocoStudio/GUI/Layouts/UILayoutDefine.h | 96 -
.../GUI/Layouts/UILayoutParameter.h | 226 --
.../CocoStudio/GUI/System/CocosGUI.h | 55 -
.../CocoStudio/GUI/System/GUIDefine.h | 75 -
.../CocoStudio/GUI/System/UIHelper.h | 81 -
.../CocoStudio/GUI/System/UITouchGroup.h | 132 -
.../UIWidgets/Compatible/CompatibleClasses.h | 58 -
.../GUI/UIWidgets/ScrollWidget/UIListView.h | 215 --
.../GUI/UIWidgets/ScrollWidget/UIPageView.h | 221 --
.../ScrollWidget/UIScrollInterface.h | 49 -
.../GUI/UIWidgets/ScrollWidget/UIScrollView.h | 442 ---
.../CocoStudio/GUI/UIWidgets/UIButton.h | 225 --
.../CocoStudio/GUI/UIWidgets/UICheckBox.h | 210 --
.../CocoStudio/GUI/UIWidgets/UIImageView.h | 129 -
.../CocoStudio/GUI/UIWidgets/UILabel.h | 164 --
.../CocoStudio/GUI/UIWidgets/UILabelAtlas.h | 128 -
.../CocoStudio/GUI/UIWidgets/UILabelBMFont.h | 92 -
.../CocoStudio/GUI/UIWidgets/UILoadingBar.h | 161 --
.../CocoStudio/GUI/UIWidgets/UIRichText.h | 133 -
.../CocoStudio/GUI/UIWidgets/UISlider.h | 249 --
.../CocoStudio/GUI/UIWidgets/UITextField.h | 195 --
.../CocoStudio/Json/DictionaryHelper.h | 81 -
.../CocoStudio/Json/rapidjson/document.h | 821 ------
.../CocoStudio/Json/rapidjson/filestream.h | 46 -
.../Json/rapidjson/internal/pow10.h | 54 -
.../Json/rapidjson/internal/stack.h | 82 -
.../Json/rapidjson/internal/strfunc.h | 24 -
.../CocoStudio/Json/rapidjson/prettywriter.h | 156 -
.../CocoStudio/Json/rapidjson/rapidjson.h | 525 ----
.../CocoStudio/Json/rapidjson/reader.h | 683 -----
.../CocoStudio/Json/rapidjson/stringbuffer.h | 49 -
.../CocoStudio/Json/rapidjson/writer.h | 241 --
.../extensions/CocoStudio/Reader/GUIReader.h | 185 --
.../CocoStudio/Reader/SceneReader.h | 70 -
.../WidgetReader/ButtonReader/ButtonReader.h | 48 -
.../CheckBoxReader/CheckBoxReader.h | 48 -
.../ImageViewReader/ImageViewReader.h | 48 -
.../LabelAtlasReader/LabelAtlasReader.h | 47 -
.../LabelBMFontReader/LabelBMFontReader.h | 48 -
.../WidgetReader/LabelReader/LabelReader.h | 48 -
.../WidgetReader/LayoutReader/LayoutReader.h | 48 -
.../ListViewReader/ListViewReader.h | 48 -
.../LoadingBarReader/LoadingBarReader.h | 48 -
.../PageViewReader/PageViewReader.h | 48 -
.../ScrollViewReader/ScrollViewReader.h | 48 -
.../WidgetReader/SliderReader/SliderReader.h | 48 -
.../TextFieldReader/TextFieldReader.h | 48 -
.../Reader/WidgetReader/WidgetReader.h | 52 -
.../WidgetReader/WidgetReaderProtocol.h | 48 -
.../CocoStudio/Trigger/ObjectFactory.h | 81 -
.../CocoStudio/Trigger/TriggerBase.h | 54 -
.../CocoStudio/Trigger/TriggerMng.h | 86 -
.../CocoStudio/Trigger/TriggerObj.h | 89 -
.../incl/extensions/ExtensionMacros.h | 34 -
.../GUI/CCControlExtension/CCControl.h | 292 --
.../GUI/CCControlExtension/CCControlButton.h | 253 --
.../CCControlColourPicker.h | 85 -
.../CCControlExtension/CCControlExtensions.h | 37 -
.../CCControlExtension/CCControlHuePicker.h | 83 -
.../CCControlPotentiometer.h | 110 -
.../CCControlSaturationBrightnessPicker.h | 91 -
.../GUI/CCControlExtension/CCControlSlider.h | 119 -
.../GUI/CCControlExtension/CCControlStepper.h | 114 -
.../GUI/CCControlExtension/CCControlSwitch.h | 106 -
.../GUI/CCControlExtension/CCControlUtils.h | 90 -
.../GUI/CCControlExtension/CCInvocation.h | 74 -
.../GUI/CCControlExtension/CCScale9Sprite.h | 332 ---
.../incl/extensions/GUI/CCEditBox/CCEditBox.h | 429 ---
.../extensions/GUI/CCEditBox/CCEditBoxImpl.h | 90 -
.../GUI/CCEditBox/CCEditBoxImplAndroid.h | 97 -
.../GUI/CCEditBox/CCEditBoxImplIOS.h | 130 -
.../GUI/CCEditBox/CCEditBoxImplIOS.mm | 622 ----
.../GUI/CCEditBox/CCEditBoxImplMac.h | 120 -
.../GUI/CCEditBox/CCEditBoxImplMac.mm | 419 ---
.../GUI/CCEditBox/CCEditBoxImplTizen.h | 98 -
.../GUI/CCEditBox/CCEditBoxImplWin.h | 103 -
.../GUI/CCEditBox/CCEditBoxImplWp8.h | 87 -
.../GUI/CCScrollView/CCScrollView.h | 356 ---
.../extensions/GUI/CCScrollView/CCSorting.h | 116 -
.../extensions/GUI/CCScrollView/CCTableView.h | 305 --
.../GUI/CCScrollView/CCTableViewCell.h | 60 -
.../extensions/LocalStorage/LocalStorage.h | 51 -
cappuccino-sdk/incl/extensions/cocos-ext.h | 83 -
.../incl/extensions/network/HttpClient.h | 120 -
.../incl/extensions/network/HttpRequest.h | 235 --
.../incl/extensions/network/HttpResponse.h | 185 --
.../incl/extensions/network/WebSocket.h | 166 --
.../physics_nodes/CCPhysicsDebugNode.h | 70 -
.../physics_nodes/CCPhysicsSprite.h | 134 -
.../incl/extensions/spine/Animation.h | 132 -
.../incl/extensions/spine/AnimationState.h | 66 -
.../extensions/spine/AnimationStateData.h | 49 -
cappuccino-sdk/incl/extensions/spine/Atlas.h | 106 -
.../extensions/spine/AtlasAttachmentLoader.h | 43 -
.../incl/extensions/spine/Attachment.h | 49 -
.../incl/extensions/spine/AttachmentLoader.h | 52 -
cappuccino-sdk/incl/extensions/spine/Bone.h | 59 -
.../incl/extensions/spine/BoneData.h | 46 -
.../incl/extensions/spine/CCSkeleton.h | 100 -
.../extensions/spine/CCSkeletonAnimation.h | 73 -
cappuccino-sdk/incl/extensions/spine/Json.h | 77 -
.../incl/extensions/spine/RegionAttachment.h | 60 -
.../incl/extensions/spine/Skeleton.h | 92 -
.../incl/extensions/spine/SkeletonData.h | 66 -
.../incl/extensions/spine/SkeletonJson.h | 52 -
cappuccino-sdk/incl/extensions/spine/Skin.h | 55 -
cappuccino-sdk/incl/extensions/spine/Slot.h | 58 -
.../incl/extensions/spine/SlotData.h | 48 -
.../incl/extensions/spine/extension.h | 145 -
.../incl/extensions/spine/spine-cocos2dx.h | 40 -
cappuccino-sdk/incl/extensions/spine/spine.h | 46 -
cappuccino-sdk/lib/cappuccino.lib | Bin 2029696 -> 0 bytes
cappuccino-sdk/lib/libExtensions.lib | Bin 357688 -> 0 bytes
libraries/cappuccino-sdk | 1 +
libraries/minhook | 1 +
minhook/LICENSE.txt | 81 -
minhook/include/MinHook.h | 186 --
minhook/lib/libMinHook-x86-v141-mtd.lib | Bin 26514 -> 0 bytes
minhook/readme.txt | 12 -
375 files changed, 53 insertions(+), 65785 deletions(-)
create mode 100644 .gitmodules
create mode 100644 CMakeLists.txt
delete mode 100644 ReplayBot.sln
delete mode 100644 ReplayBot.vcxproj
delete mode 100644 ReplayBot.vcxproj.filters
delete mode 100644 cappuccino-sdk/LICENSE
delete mode 100644 cappuccino-sdk/incl/cocos2dx/Android.mk
delete mode 100644 cappuccino-sdk/incl/cocos2dx/CCCamera.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/CCConfiguration.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/CCDirector.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/CCScheduler.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCAction.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionCamera.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionCatmullRom.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionEase.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid3D.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionInstant.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionInterval.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionManager.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionPageTurn3D.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionProgressTimer.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionTiledGrid.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/actions/CCActionTween.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/base_nodes/CCAtlasNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/base_nodes/CCGLBufferedNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/base_nodes/CCNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/ccFPSImages.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/ccFPSImages.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCAffineTransform.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCArray.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCAutoreleasePool.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCBool.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCDataVisitor.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCDictionary.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCDouble.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCFloat.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCGeometry.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCInteger.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCNS.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCObject.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCSet.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCString.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/cocoa/CCZone.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCKeyboardDelegate.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCMouseDelegate.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.cpp
delete mode 100644 cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCSpriteExtra/CCSpriteExtra.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawingPrimitives.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/effects/CCGrabber.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/effects/CCGrid.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/include/CCEventType.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/include/CCProtocols.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/include/ccConfig.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/include/ccMacros.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/include/ccTypeInfo.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/include/ccTypes.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/include/cocos2d.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/mat4stack.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/matrix.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/aabb.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/kazmath.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat3.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat4.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/neon_matrix_impl.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/plane.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/quaternion.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/ray2.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/utility.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec2.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec3.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec4.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/CMakeLists.txt
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/ChangeLog
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/mat4stack.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/matrix.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/aabb.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/mat3.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/mat4.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/neon_matrix_impl.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/plane.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/quaternion.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/ray2.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/utility.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/vec2.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/vec3.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/kazmath/src/vec4.c
delete mode 100644 cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDelegate.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDispatcher.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelAtlas.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelBMFont.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelTTF.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/layers_scenes_transitions_nodes/CCLayer.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/layers_scenes_transitions_nodes/CCScene.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/layers_scenes_transitions_nodes/CCTransition.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/layers_scenes_transitions_nodes/CCTransitionPageTurn.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/layers_scenes_transitions_nodes/CCTransitionProgress.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/menu_nodes/CCMenu.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/menu_nodes/CCMenuItem.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/misc_nodes/CCClippingNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/misc_nodes/CCMotionStreak.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/misc_nodes/CCProgressTimer.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/misc_nodes/CCRenderTexture.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/particle_nodes/CCParticleBatchNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/particle_nodes/CCParticleExamples.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/particle_nodes/CCParticleSystem.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/particle_nodes/CCParticleSystemQuad.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/particle_nodes/firePngData.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCAccelerometerDelegate.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCApplicationProtocol.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCCommon.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCDevice.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCEGLViewProtocol.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCFileUtils.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCImage.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCImageCommon_cpp.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCPlatformConfig.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCPlatformMacros.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCSAXParser.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/CCThread.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/platform/platform.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/proj.win32/cocos2d.vcxproj
delete mode 100644 cappuccino-sdk/incl/cocos2dx/proj.win32/cocos2d.vcxproj.filters
delete mode 100644 cappuccino-sdk/incl/cocos2dx/script_support/CCScriptSupport.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/CCGLProgram.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/CCShaderCache.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccGLStateCache.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShaderEx_SwitchMask_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColorLengthTexture_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColorLengthTexture_vert.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColor_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColor_vert.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureA8Color_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureA8Color_vert.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureColorAlphaTest_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureColor_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureColor_vert.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_uColor_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_uColor_vert.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_vert.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_Position_uColor_frag.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShader_Position_uColor_vert.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/ccShaders.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/precompiled/winrt/precompiledshaders.h.REMOVED.git-id
delete mode 100644 cappuccino-sdk/incl/cocos2dx/shaders/precompiled/wp8/precompiledshaders.h.REMOVED.git-id
delete mode 100644 cappuccino-sdk/incl/cocos2dx/sprite_nodes/CCAnimation.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/sprite_nodes/CCAnimationCache.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/sprite_nodes/CCSprite.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/sprite_nodes/CCSpriteBatchNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/sprite_nodes/CCSpriteFrame.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/sprite_nodes/CCSpriteFrameCache.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/CCNotificationCenter.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/CCPointExtension.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/CCProfiling.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/CCVertex.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/TransformUtils.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/base64.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/ccUTF8.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/ccUtils.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/component/CCComponent.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/component/CCComponentContainer.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/data_support/ccCArray.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/data_support/uthash.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/data_support/utlist.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/image_support/TGAlib.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/tinyxml2/tinyxml2.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/user_default/CCUserDefault.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/user_default/CCUserDefault.mm
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/zip_support/ZipUtils.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/zip_support/ioapi.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/support/zip_support/unzip.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/text_input_node/CCIMEDelegate.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/text_input_node/CCIMEDispatcher.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/text_input_node/CCTextFieldTTF.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/textures/CCTexture2D.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/textures/CCTextureAtlas.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/textures/CCTextureCache.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/textures/CCTextureETC.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/textures/CCTexturePVR.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/tilemap_parallax_nodes/CCParallaxNode.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/tilemap_parallax_nodes/CCTMXLayer.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/tilemap_parallax_nodes/CCTMXObjectGroup.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/tilemap_parallax_nodes/CCTMXTiledMap.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/tilemap_parallax_nodes/CCTMXXMLParser.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/tilemap_parallax_nodes/CCTileMapAtlas.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/touch_dispatcher/CCTouch.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/touch_dispatcher/CCTouchDelegateProtocol.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/touch_dispatcher/CCTouchDispatcher.h
delete mode 100644 cappuccino-sdk/incl/cocos2dx/touch_dispatcher/CCTouchHandler.h
delete mode 100644 cappuccino-sdk/incl/extensions/AssetsManager/AssetsManager.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBAnimationManager.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBFileLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBKeyframe.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBMemberVariableAssigner.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBSelectorResolver.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBSequence.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBSequenceProperty.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCBValue.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCControlButtonLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCControlLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCData.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCLabelBMFontLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCLabelTTFLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCLayerColorLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCLayerGradientLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCLayerLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCMenuItemImageLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCMenuItemLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCMenuLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCNode+CCBRelativePositioning.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCNodeLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCNodeLoaderLibrary.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCNodeLoaderListener.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCParticleSystemQuadLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCScale9SpriteLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCScrollViewLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CCBReader/CCSpriteLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Action/CCActionEaseEx.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Action/CCActionFrame.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Action/CCActionFrameEasing.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Action/CCActionManager.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Action/CCActionNode.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Action/CCActionObject.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/CCArmature.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/CCBone.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/animation/CCArmatureAnimation.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/animation/CCProcessBase.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/animation/CCTween.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/datas/CCDatas.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/display/CCBatchNode.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/display/CCDecorativeDisplay.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/display/CCDisplayFactory.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/display/CCDisplayManager.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/display/CCSkin.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/external_tool/sigslot.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/physics/CCColliderDetector.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCArmatureDataManager.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCArmatureDefine.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCDataReaderHelper.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCSpriteFrameCacheHelper.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCTransformHelp.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCTweenFunction.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCUtilMath.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Components/CCComAttribute.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Components/CCComAudio.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Components/CCComBase.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Components/CCComController.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Components/CCComRender.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Components/CCInputDelegate.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/BaseClasses/UIWidget.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/Layouts/UILayout.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/Layouts/UILayoutDefine.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/Layouts/UILayoutParameter.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/System/CocosGUI.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/System/GUIDefine.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/System/UIHelper.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/System/UITouchGroup.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/Compatible/CompatibleClasses.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/ScrollWidget/UIListView.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/ScrollWidget/UIPageView.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/ScrollWidget/UIScrollInterface.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/ScrollWidget/UIScrollView.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UIButton.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UICheckBox.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UIImageView.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UILabel.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UILabelAtlas.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UILabelBMFont.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UILoadingBar.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UIRichText.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UISlider.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/UITextField.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/DictionaryHelper.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/document.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/filestream.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/internal/pow10.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/internal/stack.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/internal/strfunc.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/prettywriter.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/rapidjson.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/reader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/stringbuffer.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/writer.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/GUIReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/SceneReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ButtonReader/ButtonReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/CheckBoxReader/CheckBoxReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ImageViewReader/ImageViewReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LabelAtlasReader/LabelAtlasReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LabelBMFontReader/LabelBMFontReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LabelReader/LabelReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LayoutReader/LayoutReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ListViewReader/ListViewReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LoadingBarReader/LoadingBarReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/PageViewReader/PageViewReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ScrollViewReader/ScrollViewReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/SliderReader/SliderReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/TextFieldReader/TextFieldReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/WidgetReader.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/WidgetReaderProtocol.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Trigger/ObjectFactory.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Trigger/TriggerBase.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Trigger/TriggerMng.h
delete mode 100644 cappuccino-sdk/incl/extensions/CocoStudio/Trigger/TriggerObj.h
delete mode 100644 cappuccino-sdk/incl/extensions/ExtensionMacros.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControl.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlButton.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlColourPicker.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlExtensions.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlHuePicker.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlPotentiometer.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlSlider.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlStepper.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlSwitch.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlUtils.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCInvocation.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCScale9Sprite.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBox.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImpl.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplAndroid.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplIOS.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplIOS.mm
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplMac.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplMac.mm
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplTizen.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplWin.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCEditBox/CCEditBoxImplWp8.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCScrollView/CCScrollView.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCScrollView/CCSorting.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCScrollView/CCTableView.h
delete mode 100644 cappuccino-sdk/incl/extensions/GUI/CCScrollView/CCTableViewCell.h
delete mode 100644 cappuccino-sdk/incl/extensions/LocalStorage/LocalStorage.h
delete mode 100644 cappuccino-sdk/incl/extensions/cocos-ext.h
delete mode 100644 cappuccino-sdk/incl/extensions/network/HttpClient.h
delete mode 100644 cappuccino-sdk/incl/extensions/network/HttpRequest.h
delete mode 100644 cappuccino-sdk/incl/extensions/network/HttpResponse.h
delete mode 100644 cappuccino-sdk/incl/extensions/network/WebSocket.h
delete mode 100644 cappuccino-sdk/incl/extensions/physics_nodes/CCPhysicsDebugNode.h
delete mode 100644 cappuccino-sdk/incl/extensions/physics_nodes/CCPhysicsSprite.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Animation.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/AnimationState.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/AnimationStateData.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Atlas.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/AtlasAttachmentLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Attachment.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/AttachmentLoader.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Bone.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/BoneData.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/CCSkeleton.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/CCSkeletonAnimation.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Json.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/RegionAttachment.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Skeleton.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/SkeletonData.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/SkeletonJson.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Skin.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/Slot.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/SlotData.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/extension.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/spine-cocos2dx.h
delete mode 100644 cappuccino-sdk/incl/extensions/spine/spine.h
delete mode 100644 cappuccino-sdk/lib/cappuccino.lib
delete mode 100644 cappuccino-sdk/lib/libExtensions.lib
create mode 160000 libraries/cappuccino-sdk
create mode 160000 libraries/minhook
delete mode 100644 minhook/LICENSE.txt
delete mode 100644 minhook/include/MinHook.h
delete mode 100644 minhook/lib/libMinHook-x86-v141-mtd.lib
delete mode 100644 minhook/readme.txt
diff --git a/.gitignore b/.gitignore
index b80582d..f9098dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,365 +1,7 @@
-## Ignore Visual Studio temporary files, build results, and
-## files generated by popular Visual Studio add-ons.
-##
-## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
-
-# User-specific files
-*.rsuser
-*.suo
-*.user
-*.userosscache
-*.sln.docstates
-
-# User-specific files (MonoDevelop/Xamarin Studio)
-*.userprefs
-
-# Mono auto generated files
-mono_crash.*
-
-# Build results
-[Dd]ebug/
-[Dd]ebugPublic/
-[Rr]elease/
-[Rr]eleases/
-x64/
-x86/
-[Ww][Ii][Nn]32/
-[Aa][Rr][Mm]/
-[Aa][Rr][Mm]64/
-bld/
-[Bb]in/
-[Oo]bj/
-[Ll]og/
-[Ll]ogs/
-
-# Visual Studio 2015/2017 cache/options directory
-.vs/
-# Uncomment if you have tasks that create the project's static files in wwwroot
-#wwwroot/
-
-# Visual Studio 2017 auto generated files
-Generated\ Files/
-
-# MSTest test Results
-[Tt]est[Rr]esult*/
-[Bb]uild[Ll]og.*
-
-# NUnit
-*.VisualState.xml
-TestResult.xml
-nunit-*.xml
-
-# Build Results of an ATL Project
-[Dd]ebugPS/
-[Rr]eleasePS/
-dlldata.c
-
-# Benchmark Results
-BenchmarkDotNet.Artifacts/
-
-# .NET Core
-project.lock.json
-project.fragment.lock.json
-artifacts/
-
-# ASP.NET Scaffolding
-ScaffoldingReadMe.txt
-
-# StyleCop
-StyleCopReport.xml
-
-# Files built by Visual Studio
-*_i.c
-*_p.c
-*_h.h
-*.ilk
-*.meta
-*.obj
-*.iobj
-*.pch
-*.pdb
-*.ipdb
-*.pgc
-*.pgd
-*.rsp
-*.sbr
-*.tlb
-*.tli
-*.tlh
-*.tmp
-*.tmp_proj
-*_wpftmp.csproj
-*.log
-*.vspscc
-*.vssscc
-.builds
-*.pidb
-*.svclog
-*.scc
-
-# Chutzpah Test files
-_Chutzpah*
-
-# Visual C++ cache files
-ipch/
-*.aps
-*.ncb
-*.opendb
-*.opensdf
-*.sdf
-*.cachefile
-*.VC.db
-*.VC.VC.opendb
-
-# Visual Studio profiler
-*.psess
-*.vsp
-*.vspx
-*.sap
-
-# Visual Studio Trace Files
-*.e2e
-
-# TFS 2012 Local Workspace
-$tf/
-
-# Guidance Automation Toolkit
-*.gpState
-
-# ReSharper is a .NET coding add-in
-_ReSharper*/
-*.[Rr]e[Ss]harper
-*.DotSettings.user
-
-# TeamCity is a build add-in
-_TeamCity*
-
-# DotCover is a Code Coverage Tool
-*.dotCover
-
-# AxoCover is a Code Coverage Tool
-.axoCover/*
-!.axoCover/settings.json
-
-# Coverlet is a free, cross platform Code Coverage Tool
-coverage*.json
-coverage*.xml
-coverage*.info
-
-# Visual Studio code coverage results
-*.coverage
-*.coveragexml
-
-# NCrunch
-_NCrunch_*
-.*crunch*.local.xml
-nCrunchTemp_*
-
-# MightyMoose
-*.mm.*
-AutoTest.Net/
-
-# Web workbench (sass)
-.sass-cache/
-
-# Installshield output folder
-[Ee]xpress/
-
-# DocProject is a documentation generator add-in
-DocProject/buildhelp/
-DocProject/Help/*.HxT
-DocProject/Help/*.HxC
-DocProject/Help/*.hhc
-DocProject/Help/*.hhk
-DocProject/Help/*.hhp
-DocProject/Help/Html2
-DocProject/Help/html
-
-# Click-Once directory
-publish/
-
-# Publish Web Output
-*.[Pp]ublish.xml
-*.azurePubxml
-# Note: Comment the next line if you want to checkin your web deploy settings,
-# but database connection strings (with potential passwords) will be unencrypted
-*.pubxml
-*.publishproj
-
-# Microsoft Azure Web App publish settings. Comment the next line if you want to
-# checkin your Azure Web App publish settings, but sensitive information contained
-# in these scripts will be unencrypted
-PublishScripts/
-
-# NuGet Packages
-*.nupkg
-# NuGet Symbol Packages
-*.snupkg
-# The packages folder can be ignored because of Package Restore
-**/[Pp]ackages/*
-# except build/, which is used as an MSBuild target.
-!**/[Pp]ackages/build/
-# Uncomment if necessary however generally it will be regenerated when needed
-#!**/[Pp]ackages/repositories.config
-# NuGet v3's project.json files produces more ignorable files
-*.nuget.props
-*.nuget.targets
-
-# Microsoft Azure Build Output
-csx/
-*.build.csdef
-
-# Microsoft Azure Emulator
-ecf/
-rcf/
-
-# Windows Store app package directories and files
-AppPackages/
-BundleArtifacts/
-Package.StoreAssociation.xml
-_pkginfo.txt
-*.appx
-*.appxbundle
-*.appxupload
-
-# Visual Studio cache files
-# files ending in .cache can be ignored
-*.[Cc]ache
-# but keep track of directories ending in .cache
-!?*.[Cc]ache/
-
-# Others
-ClientBin/
-~$*
-*~
-*.dbmdl
-*.dbproj.schemaview
-*.jfm
-*.pfx
-*.publishsettings
-orleans.codegen.cs
-
-# Including strong name files can present a security risk
-# (https://github.com/github/gitignore/pull/2483#issue-259490424)
-#*.snk
-
-# Since there are multiple workflows, uncomment next line to ignore bower_components
-# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
-#bower_components/
-
-# RIA/Silverlight projects
-Generated_Code/
-
-# Backup & report files from converting an old project file
-# to a newer Visual Studio version. Backup files are not needed,
-# because we have git ;-)
-_UpgradeReport_Files/
-Backup*/
-UpgradeLog*.XML
-UpgradeLog*.htm
-ServiceFabricBackup/
-*.rptproj.bak
-
-# SQL Server files
-*.mdf
-*.ldf
-*.ndf
-
-# Business Intelligence projects
-*.rdl.data
-*.bim.layout
-*.bim_*.settings
-*.rptproj.rsuser
-*- [Bb]ackup.rdl
-*- [Bb]ackup ([0-9]).rdl
-*- [Bb]ackup ([0-9][0-9]).rdl
-
-# Microsoft Fakes
-FakesAssemblies/
-
-# GhostDoc plugin setting file
-*.GhostDoc.xml
-
-# Node.js Tools for Visual Studio
-.ntvs_analysis.dat
-node_modules/
-
-# Visual Studio 6 build log
-*.plg
-
-# Visual Studio 6 workspace options file
-*.opt
-
-# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
-*.vbw
-
-# Visual Studio LightSwitch build output
-**/*.HTMLClient/GeneratedArtifacts
-**/*.DesktopClient/GeneratedArtifacts
-**/*.DesktopClient/ModelManifest.xml
-**/*.Server/GeneratedArtifacts
-**/*.Server/ModelManifest.xml
-_Pvt_Extensions
-
-# Paket dependency manager
-.paket/paket.exe
-paket-files/
-
-# FAKE - F# Make
-.fake/
-
-# CodeRush personal settings
-.cr/personal
-
-# Python Tools for Visual Studio (PTVS)
-__pycache__/
-*.pyc
-
-# Cake - Uncomment if you are using it
-# tools/**
-# !tools/packages.config
-
-# Tabs Studio
-*.tss
-
-# Telerik's JustMock configuration file
-*.jmconfig
-
-# BizTalk build output
-*.btp.cs
-*.btm.cs
-*.odx.cs
-*.xsd.cs
-
-# OpenCover UI analysis results
-OpenCover/
-
-# Azure Stream Analytics local run output
-ASALocalRun/
-
-# MSBuild Binary and Structured Log
-*.binlog
-
-# NVidia Nsight GPU debugger configuration file
-*.nvuser
-
-# MFractors (Xamarin productivity tool) working folder
-.mfractor/
-
-# Local History for Visual Studio
-.localhistory/
-
-# BeatPulse healthcheck temp database
-healthchecksdb
-
-# Backup folder for Package Reference Convert tool in Visual Studio 2017
-MigrationBackup/
-
-# Ionide (cross platform F# VS Code tools) working folder
-.ionide/
-
-# Fody - auto-generated XML schema
-FodyWeavers.xsd
-
+build/
ffmpeg/
-inject.py
\ No newline at end of file
+inject.py
+Debug/
+Release/
+.vs/
+.vscode/
\ No newline at end of file
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..8c24773
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,6 @@
+[submodule "libraries/cappuccino-sdk"]
+ path = libraries/cappuccino-sdk
+ url = https://github.com/AndreNIH/CappuccinoSDK.git
+[submodule "libraries/minhook"]
+ path = libraries/minhook
+ url = https://github.com/TsudaKageyu/minhook.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d535c8b
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,39 @@
+cmake_minimum_required(VERSION 3.0.0)
+set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_EXTENSIONS OFF)
+
+project(replay-bot VERSION 1.0.0)
+
+find_file(WINDOWS_HEADER windows.h)
+if(NOT WINDOWS_HEADER)
+ message(FATAL_ERROR "Can't find windows.h!")
+endif()
+
+file(
+ GLOB_RECURSE SOURCE_FILES
+ src/*.cpp
+ # nice
+ libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.cpp
+)
+add_library(replay-bot SHARED ${SOURCE_FILES})
+
+target_include_directories(replay-bot PRIVATE
+ libraries/minhook/include
+ libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/incl/cocos2dx/
+ libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/incl/cocos2dx/include
+ libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/incl/cocos2dx/kazmath/include
+ libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/incl/cocos2dx/platform/win32
+ libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/incl/cocos2dx/platform/third_party/win32
+ libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/OGLES
+)
+
+add_subdirectory(libraries/minhook)
+# TODO: make it not build minhook every time
+target_link_libraries(replay-bot minhook)
+
+target_link_libraries(replay-bot ${CMAKE_SOURCE_DIR}/libraries/cappuccino-sdk/template/default-cpp/cappuccino-sdk/lib/cappuccino.lib)
+
+set_target_properties(replay-bot PROPERTIES PREFIX "")
+set(CPACK_PROJECT_NAME ${PROJECT_NAME})
+set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
\ No newline at end of file
diff --git a/ReplayBot.sln b/ReplayBot.sln
deleted file mode 100644
index 4833d07..0000000
--- a/ReplayBot.sln
+++ /dev/null
@@ -1,31 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.30804.86
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReplayBot", "ReplayBot.vcxproj", "{D2F6430A-3721-410E-80BA-D6BC6DD95A61}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Debug|x64.ActiveCfg = Debug|x64
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Debug|x64.Build.0 = Debug|x64
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Debug|x86.ActiveCfg = Debug|Win32
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Debug|x86.Build.0 = Debug|Win32
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Release|x64.ActiveCfg = Release|x64
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Release|x64.Build.0 = Release|x64
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Release|x86.ActiveCfg = Release|Win32
- {D2F6430A-3721-410E-80BA-D6BC6DD95A61}.Release|x86.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {F31C5776-6146-4D80-B31F-2F95AF57270A}
- EndGlobalSection
-EndGlobal
diff --git a/ReplayBot.vcxproj b/ReplayBot.vcxproj
deleted file mode 100644
index 7dca5aa..0000000
--- a/ReplayBot.vcxproj
+++ /dev/null
@@ -1,576 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Release
- Win32
-
-
- Debug
- x64
-
-
- Release
- x64
-
-
-
- 16.0
- Win32Proj
- {d2f6430a-3721-410e-80ba-d6bc6dd95a61}
- ReplayBot
- 10.0
-
-
-
- DynamicLibrary
- true
- v142
- Unicode
-
-
- DynamicLibrary
- false
- v142
- true
- Unicode
-
-
- DynamicLibrary
- true
- v142
- Unicode
-
-
- DynamicLibrary
- false
- v142
- true
- Unicode
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
-
-
- false
-
-
- true
-
-
- false
-
-
-
- Level3
- true
- WIN32;_DEBUG;CAPPUCCINOTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
- true
- NotUsing
- pch.h
- $(SolutionDir)minhook\include;$(SolutionDir)cappuccino-sdk\incl\cocos2dx;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\include;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\kazmath\include;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\platform\win32;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\platform\third_party\win32;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\platform\third_party\win32\OGLES;$(SolutionDir)cappuccino-sdk\incl\extensions;%(AdditionalIncludeDirectories)
- stdcpp17
-
-
- Windows
- true
- false
- $(SolutionDir)cappuccino-sdk\lib\cappuccino.lib;$(SolutionDir)cappuccino-sdk\lib\libExtensions.lib;$(SolutionDir)minhook\lib\libMinHook-x86-v141-mtd.lib;%(AdditionalDependencies)
-
-
-
-
- Level3
- true
- true
- true
- WIN32;NDEBUG;CAPPUCCINOTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
- true
- NotUsing
- pch.h
- $(SolutionDir)minhook\include;$(SolutionDir)cappuccino-sdk\incl\cocos2dx;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\include;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\kazmath\include;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\platform\win32;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\platform\third_party\win32;$(SolutionDir)cappuccino-sdk\incl\cocos2dx\platform\third_party\win32\OGLES;$(SolutionDir)cappuccino-sdk\incl\extensions;%(AdditionalIncludeDirectories)
- stdcpp17
-
-
- Windows
- true
- true
- false
- false
- $(SolutionDir)cappuccino-sdk\lib\cappuccino.lib;$(SolutionDir)cappuccino-sdk\lib\libExtensions.lib;$(SolutionDir)minhook\lib\libMinHook-x86-v141-mtd.lib;%(AdditionalDependencies)
-
-
-
-
- Level3
- true
- _DEBUG;CAPPUCCINOTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
- true
- Use
- pch.h
-
-
- Windows
- true
- false
-
-
-
-
- Level3
- true
- true
- true
- NDEBUG;CAPPUCCINOTEMPLATE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
- true
- Use
- pch.h
-
-
- Windows
- true
- true
- true
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ReplayBot.vcxproj.filters b/ReplayBot.vcxproj.filters
deleted file mode 100644
index 94c6421..0000000
--- a/ReplayBot.vcxproj.filters
+++ /dev/null
@@ -1,1254 +0,0 @@
-
-
-
-
- {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
- cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx
-
-
- {93995380-89BD-4b04-88EB-625FBE52EBFB}
- h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd
-
-
- {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
- rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
-
-
- {53fe1fca-e9f6-4c20-933a-86b685a26920}
-
-
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
- Header Files
-
-
-
-
- Source Files
-
-
- Source Files
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Header Files\cocos2d
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
-
\ No newline at end of file
diff --git a/cappuccino-sdk/LICENSE b/cappuccino-sdk/LICENSE
deleted file mode 100644
index 22136e2..0000000
--- a/cappuccino-sdk/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2021 AndreNIH
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
diff --git a/cappuccino-sdk/incl/cocos2dx/Android.mk b/cappuccino-sdk/incl/cocos2dx/Android.mk
deleted file mode 100644
index cf308a6..0000000
--- a/cappuccino-sdk/incl/cocos2dx/Android.mk
+++ /dev/null
@@ -1,178 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := cocos2dx_static
-
-LOCAL_MODULE_FILENAME := libcocos2d
-
-LOCAL_SRC_FILES := \
-CCConfiguration.cpp \
-CCScheduler.cpp \
-CCCamera.cpp \
-ccFPSImages.c \
-actions/CCAction.cpp \
-actions/CCActionCamera.cpp \
-actions/CCActionCatmullRom.cpp \
-actions/CCActionEase.cpp \
-actions/CCActionGrid.cpp \
-actions/CCActionGrid3D.cpp \
-actions/CCActionInstant.cpp \
-actions/CCActionInterval.cpp \
-actions/CCActionManager.cpp \
-actions/CCActionPageTurn3D.cpp \
-actions/CCActionProgressTimer.cpp \
-actions/CCActionTiledGrid.cpp \
-actions/CCActionTween.cpp \
-base_nodes/CCAtlasNode.cpp \
-base_nodes/CCNode.cpp \
-cocoa/CCAffineTransform.cpp \
-cocoa/CCGeometry.cpp \
-cocoa/CCAutoreleasePool.cpp \
-cocoa/CCDictionary.cpp \
-cocoa/CCNS.cpp \
-cocoa/CCObject.cpp \
-cocoa/CCSet.cpp \
-cocoa/CCString.cpp \
-cocoa/CCZone.cpp \
-cocoa/CCArray.cpp \
-cocoa/CCDataVisitor.cpp \
-cocos2d.cpp \
-CCDirector.cpp \
-draw_nodes/CCDrawingPrimitives.cpp \
-draw_nodes/CCDrawNode.cpp \
-effects/CCGrabber.cpp \
-effects/CCGrid.cpp \
-kazmath/src/aabb.c \
-kazmath/src/mat3.c \
-kazmath/src/mat4.c \
-kazmath/src/neon_matrix_impl.c \
-kazmath/src/plane.c \
-kazmath/src/quaternion.c \
-kazmath/src/ray2.c \
-kazmath/src/utility.c \
-kazmath/src/vec2.c \
-kazmath/src/vec3.c \
-kazmath/src/vec4.c \
-kazmath/src/GL/mat4stack.c \
-kazmath/src/GL/matrix.c \
-keypad_dispatcher/CCKeypadDelegate.cpp \
-keypad_dispatcher/CCKeypadDispatcher.cpp \
-label_nodes/CCLabelAtlas.cpp \
-label_nodes/CCLabelBMFont.cpp \
-label_nodes/CCLabelTTF.cpp \
-layers_scenes_transitions_nodes/CCLayer.cpp \
-layers_scenes_transitions_nodes/CCScene.cpp \
-layers_scenes_transitions_nodes/CCTransitionPageTurn.cpp \
-layers_scenes_transitions_nodes/CCTransition.cpp \
-layers_scenes_transitions_nodes/CCTransitionProgress.cpp \
-menu_nodes/CCMenu.cpp \
-menu_nodes/CCMenuItem.cpp \
-misc_nodes/CCClippingNode.cpp \
-misc_nodes/CCMotionStreak.cpp \
-misc_nodes/CCProgressTimer.cpp \
-misc_nodes/CCRenderTexture.cpp \
-particle_nodes/CCParticleExamples.cpp \
-particle_nodes/CCParticleSystem.cpp \
-particle_nodes/CCParticleBatchNode.cpp \
-particle_nodes/CCParticleSystemQuad.cpp \
-platform/CCImageCommonWebp.cpp \
-platform/CCSAXParser.cpp \
-platform/CCThread.cpp \
-platform/CCFileUtils.cpp \
-platform/platform.cpp \
-platform/CCEGLViewProtocol.cpp \
-platform/android/CCDevice.cpp \
-platform/android/CCEGLView.cpp \
-platform/android/CCAccelerometer.cpp \
-platform/android/CCApplication.cpp \
-platform/android/CCCommon.cpp \
-platform/android/CCFileUtilsAndroid.cpp \
-platform/android/CCImage.cpp \
-platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp \
-platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp \
-platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp \
-platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp \
-platform/android/jni/JniHelper.cpp \
-platform/android/jni/IMEJni.cpp \
-platform/android/jni/TouchesJni.cpp \
-platform/android/jni/DPIJni.cpp \
-script_support/CCScriptSupport.cpp \
-shaders/ccShaders.cpp \
-shaders/CCGLProgram.cpp \
-shaders/ccGLStateCache.cpp \
-shaders/CCShaderCache.cpp \
-sprite_nodes/CCAnimation.cpp \
-sprite_nodes/CCAnimationCache.cpp \
-sprite_nodes/CCSprite.cpp \
-sprite_nodes/CCSpriteBatchNode.cpp \
-sprite_nodes/CCSpriteFrame.cpp \
-sprite_nodes/CCSpriteFrameCache.cpp \
-support/ccUTF8.cpp \
-support/CCNotificationCenter.cpp \
-support/CCProfiling.cpp \
-support/CCPointExtension.cpp \
-support/TransformUtils.cpp \
-support/user_default/CCUserDefaultAndroid.cpp \
-support/base64.cpp \
-support/ccUtils.cpp \
-support/CCVertex.cpp \
-support/data_support/ccCArray.cpp \
-support/image_support/TGAlib.cpp \
-support/tinyxml2/tinyxml2.cpp \
-support/zip_support/ZipUtils.cpp \
-support/zip_support/ioapi.cpp \
-support/zip_support/unzip.cpp \
-support/component/CCComponent.cpp \
-support/component/CCComponentContainer.cpp \
-text_input_node/CCIMEDispatcher.cpp \
-text_input_node/CCTextFieldTTF.cpp \
-textures/CCTexture2D.cpp \
-textures/CCTextureAtlas.cpp \
-textures/CCTextureCache.cpp \
-textures/CCTextureETC.cpp \
-textures/CCTexturePVR.cpp \
-tilemap_parallax_nodes/CCParallaxNode.cpp \
-tilemap_parallax_nodes/CCTMXLayer.cpp \
-tilemap_parallax_nodes/CCTMXObjectGroup.cpp \
-tilemap_parallax_nodes/CCTMXTiledMap.cpp \
-tilemap_parallax_nodes/CCTMXXMLParser.cpp \
-tilemap_parallax_nodes/CCTileMapAtlas.cpp \
-touch_dispatcher/CCTouchDispatcher.cpp \
-touch_dispatcher/CCTouchHandler.cpp \
-touch_dispatcher/CCTouch.cpp
-
-LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
- $(LOCAL_PATH)/include \
- $(LOCAL_PATH)/kazmath/include \
- $(LOCAL_PATH)/platform/android
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH) \
- $(LOCAL_PATH)/include \
- $(LOCAL_PATH)/kazmath/include \
- $(LOCAL_PATH)/platform/android
-
-LOCAL_LDLIBS := -lGLESv2 \
- -llog \
- -lz
-
-LOCAL_EXPORT_LDLIBS := -lGLESv2 \
- -llog \
- -lz
-
-LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libpng_static
-LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jpeg_static
-LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libxml2_static
-LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libtiff_static
-LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libwebp_static
-
-# define the macro to compile through support/zip_support/ioapi.c
-LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API
-LOCAL_EXPORT_CFLAGS := -Wno-psabi -DUSE_FILE32API
-
-include $(BUILD_STATIC_LIBRARY)
-
-$(call import-module,libjpeg)
-$(call import-module,libpng)
-$(call import-module,libtiff)
-$(call import-module,libwebp)
diff --git a/cappuccino-sdk/incl/cocos2dx/CCCamera.h b/cappuccino-sdk/incl/cocos2dx/CCCamera.h
deleted file mode 100644
index b3df361..0000000
--- a/cappuccino-sdk/incl/cocos2dx/CCCamera.h
+++ /dev/null
@@ -1,145 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCCAMERA_H__
-#define __CCCAMERA_H__
-
-#include "cocoa/CCObject.h"
-#include "ccMacros.h"
-#include "kazmath/mat4.h"
-#include
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup base_nodes
- * @{
- */
-
-/**
-A CCCamera is used in every CCNode.
-Useful to look at the object from different views.
-The OpenGL gluLookAt() function is used to locate the
-camera.
-
-If the object is transformed by any of the scale, rotation or
-position attributes, then they will override the camera.
-
-IMPORTANT: Either your use the camera or the rotation/scale/position properties. You can't use both.
-World coordinates won't work if you use the camera.
-
-Limitations:
-
-- Some nodes, like CCParallaxNode, CCParticle uses world node coordinates, and they won't work properly if you move them (or any of their ancestors)
-using the camera.
-
-- It doesn't work on batched nodes like CCSprite objects when they are parented to a CCSpriteBatchNode object.
-
-- It is recommended to use it ONLY if you are going to create 3D effects. For 2D effects, use the action CCFollow or position/scale/rotate.
-
-*/
-class CC_DLL CCCamera : public CCObject
-{
-protected:
- float m_fEyeX;
- float m_fEyeY;
- float m_fEyeZ;
-
- float m_fCenterX;
- float m_fCenterY;
- float m_fCenterZ;
-
- float m_fUpX;
- float m_fUpY;
- float m_fUpZ;
-
- bool m_bDirty;
- kmMat4 m_lookupMatrix;
-public:
- /**
- * @js ctor
- */
- CCCamera(void);
- /**
- * @js NA
- * @lua NA
- */
- ~CCCamera(void);
-
- void init(void);
- /**
- * @js NA
- */
- const char* description(void);
-
- /** sets the dirty value */
- inline void setDirty(bool bValue) { m_bDirty = bValue; }
- /** get the dirty value */
- inline bool isDirty(void) { return m_bDirty; }
-
- /** sets the camera in the default position */
- void restore(void);
- /** Sets the camera using gluLookAt using its eye, center and up_vector */
- void locate(void);
- /** sets the eye values in points
- * @js setEye
- */
- void setEyeXYZ(float fEyeX, float fEyeY, float fEyeZ);
- /** sets the center values in points
- * @js setCenter
- */
- void setCenterXYZ(float fCenterX, float fCenterY, float fCenterZ);
- /** sets the up values
- * @js setUp
- */
- void setUpXYZ(float fUpX, float fUpY, float fUpZ);
-
- /** get the eye vector values in points
- * @js NA
- */
- void getEyeXYZ(float *pEyeX, float *pEyeY, float *pEyeZ);
- /** get the center vector values int points
- * @js NA
- */
- void getCenterXYZ(float *pCenterX, float *pCenterY, float *pCenterZ);
- /** get the up vector values
- * @js NA
- */
- void getUpXYZ(float *pUpX, float *pUpY, float *pUpZ);
-public:
- /** returns the Z eye */
- static float getZEye();
-
-private:
- DISALLOW_COPY_AND_ASSIGN(CCCamera);
-};
-
-// end of base_node group
-/// @}
-
-NS_CC_END
-
-#endif // __CCCAMERA_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/CCConfiguration.h b/cappuccino-sdk/incl/cocos2dx/CCConfiguration.h
deleted file mode 100644
index c6f506d..0000000
--- a/cappuccino-sdk/incl/cocos2dx/CCConfiguration.h
+++ /dev/null
@@ -1,164 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2010 Ricardo Quesada
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCCONFIGURATION_H__
-#define __CCCONFIGURATION_H__
-
-#include "cocoa/CCObject.h"
-#include "CCGL.h"
-#include "cocoa/CCString.h"
-#include
-
-
-
-NS_CC_BEGIN
-
-typedef enum _ccConfigurationType {
- ConfigurationError,
- ConfigurationString,
- ConfigurationInt,
- ConfigurationDouble,
- ConfigurationBoolean
-} ccConfigurationType;
-
-
-/**
- * @addtogroup global
- * @{
- */
-/**
- @brief CCConfiguration contains some openGL variables
- @since v0.99.0
- */
-class CC_DLL CCConfiguration : public CCObject
-{
-public:
- /** returns a shared instance of CCConfiguration */
- static CCConfiguration *sharedConfiguration(void);
-
- /** purge the shared instance of CCConfiguration */
- static void purgeConfiguration(void);
-
-public:
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCConfiguration(void);
-
- /** OpenGL Max texture size. */
- int getMaxTextureSize(void) const;
-
- /** OpenGL Max Modelview Stack Depth. */
- int getMaxModelviewStackDepth(void) const;
-
- /** returns the maximum texture units
- @since v2.0.0
- */
- int getMaxTextureUnits(void) const;
-
- /** Whether or not the GPU supports NPOT (Non Power Of Two) textures.
- OpenGL ES 2.0 already supports NPOT (iOS).
-
- @since v0.99.2
- */
- bool supportsNPOT(void) const;
-
- /** Whether or not PVR Texture Compressed is supported */
- bool supportsPVRTC(void) const;
-
- /** Whether or not BGRA8888 textures are supported.
- @since v0.99.2
- */
- bool supportsBGRA8888(void) const;
-
- /** Whether or not glDiscardFramebufferEXT is supported
- @since v0.99.2
- */
- bool supportsDiscardFramebuffer(void) const;
-
- /** Whether or not shareable VAOs are supported.
- @since v2.0.0
- */
- bool supportsShareableVAO(void) const;
-
- /** returns whether or not an OpenGL is supported */
- bool checkForGLExtension(const std::string &searchName) const;
-
- bool init(void);
-
- /** returns the value of a given key as a string.
- If the key is not found, it will return the default value */
- const char* getCString( const char *key, const char *default_value=NULL ) const;
-
- /** returns the value of a given key as a boolean.
- If the key is not found, it will return the default value */
- bool getBool( const char *key, bool default_value=false ) const;
-
- /** returns the value of a given key as a double.
- If the key is not found, it will return the default value */
- double getNumber( const char *key, double default_value=0.0 ) const;
-
- /** returns the value of a given key as a double */
- CCObject * getObject( const char *key ) const;
-
- /** sets a new key/value pair in the configuration dictionary */
- void setObject( const char *key, CCObject *value );
-
- /** dumps the current configuration on the console */
- void dumpInfo(void) const;
-
- /** gathers OpenGL / GPU information */
- void gatherGPUInfo( void );
-
- /** Loads a config file. If the keys are already present, then they are going to be replaced. Otherwise the new keys are added. */
- void loadConfigFile( const char *filename );
-
-private:
- CCConfiguration(void);
- static CCConfiguration *s_gSharedConfiguration;
- static std::string s_sConfigfile;
-
-protected:
- GLint m_nMaxTextureSize;
- GLint m_nMaxModelviewStackDepth;
- bool m_bSupportsPVRTC;
- bool m_bSupportsNPOT;
- bool m_bSupportsBGRA8888;
- bool m_bSupportsDiscardFramebuffer;
- bool m_bSupportsShareableVAO;
- GLint m_nMaxSamplesAllowed;
- GLint m_nMaxTextureUnits;
- char * m_pGlExtensions;
-
- CCDictionary *m_pValueDict;
-};
-
-// end of global group
-/// @}
-
-NS_CC_END
-
-#endif // __CCCONFIGURATION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/CCDirector.h b/cappuccino-sdk/incl/cocos2dx/CCDirector.h
deleted file mode 100644
index 2c7655c..0000000
--- a/cappuccino-sdk/incl/cocos2dx/CCDirector.h
+++ /dev/null
@@ -1,579 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCDIRECTOR_H__
-#define __CCDIRECTOR_H__
-
-#include "platform/CCPlatformMacros.h"
-#include "cocoa/CCObject.h"
-#include "ccTypes.h"
-#include "cocoa/CCGeometry.h"
-#include "cocoa/CCArray.h"
-#include "CCGL.h"
-#include "kazmath/mat4.h"
-#include "label_nodes/CCLabelAtlas.h"
-#include "ccTypeInfo.h"
-
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup base_nodes
- * @{
- */
-
- /** @typedef ccDirectorProjection
- Possible OpenGL projections used by director
- */
- typedef enum {
- /// sets a 2D projection (orthogonal projection)
- kCCDirectorProjection2D,
-
- /// sets a 3D projection with a fovy=60, znear=0.5f and zfar=1500.
- kCCDirectorProjection3D,
-
- /// it calls "updateProjection" on the projection delegate.
- kCCDirectorProjectionCustom,
-
- /// Default projection is 3D projection
- kCCDirectorProjectionDefault = kCCDirectorProjection3D,
-} ccDirectorProjection;
-
- typedef enum {
- LOW=1,
- MEDIUM,
- HIGH
- }TextureQuality;
-
- typedef enum{
- FadeTransition,
- MoveInTransition
- }PopTransition;
-
-/* Forward declarations. */
-
-//Robtop Modification : New Classes
-
-class CCLabelAtlas;
-class CCScene;
-class CCEGLView;
-class CCDirectorDelegate;
-class CCNode;
-class CCScheduler;
-class CCActionManager;
-class CCTouchDispatcher;
-class CCKeypadDispatcher;
-class CCKeyboardDispatcher;
-class CCMouseDispatcher;
-class CCSceneDelegate;
-class CCAccelerometer;
-
-
-/**
-@brief Class that creates and handle the main Window and manages how
-and when to execute the Scenes.
-
- The CCDirector is also responsible for:
- - initializing the OpenGL context
- - setting the OpenGL pixel format (default on is RGB565)
- - setting the OpenGL buffer depth (default one is 0-bit)
- - setting the projection (default one is 3D)
- - setting the orientation (default one is Portrait)
-
- Since the CCDirector is a singleton, the standard way to use it is by calling:
- _ CCDirector::sharedDirector()->methodName();
-
- The CCDirector also sets the default OpenGL context:
- - GL_TEXTURE_2D is enabled
- - GL_VERTEX_ARRAY is enabled
- - GL_COLOR_ARRAY is enabled
- - GL_TEXTURE_COORD_ARRAY is enabled
-*/
-class CC_DLL CCDirector : public CCObject, public TypeInfo
-{
-public:
- /**
- * @js ctor
- */
- CCDirector(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCDirector(void);
- virtual bool init(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual long getClassTypeInfo() {
- static const long id = cocos2d::getHashCodeByString(typeid(cocos2d::CCDirector).name());
- return id;
- }
-
- // attribute
-
- /** Get current running Scene. Director can only run one Scene at the time */
- inline CCScene* getRunningScene(void) { return m_pRunningScene; }
-
- /** Get the FPS value */
- inline double getAnimationInterval(void) { return m_dAnimationInterval; }
- /** Set the FPS value. */
- virtual void setAnimationInterval(double dValue) = 0;
-
- /** Whether or not to display the FPS on the bottom-left corner */
- inline bool isDisplayStats(void) { return m_bDisplayStats; }
- /** Display the FPS on the bottom-left corner */
- inline void setDisplayStats(bool bDisplayStats) { m_bDisplayStats = bDisplayStats; }
-
- /** seconds per frame */
- inline float getSecondsPerFrame() { return m_fSecondsPerFrame; }
-
- /** Get the CCEGLView, where everything is rendered
- * @js NA
- */
- inline CCEGLView* getOpenGLView(void) { return m_pobOpenGLView; }
- void setOpenGLView(CCEGLView* pobOpenGLView);
-
- inline bool isNextDeltaTimeZero(void) { return m_bNextDeltaTimeZero; }
- void setNextDeltaTimeZero(bool bNextDeltaTimeZero);
-
- /** Whether or not the Director is paused */
- inline bool isPaused(void) { return m_bPaused; }
-
- /** How many frames were called since the director started */
- inline unsigned int getTotalFrames(void) { return m_uTotalFrames; }
-
- /** Sets an OpenGL projection
- @since v0.8.2
- @js NA
- */
- inline ccDirectorProjection getProjection(void) { return m_eProjection; }
- void setProjection(ccDirectorProjection kProjection);
- /** reshape projection matrix when canvas has been change"*/
- void reshapeProjection(const CCSize& newWindowSize);
-
- /** Sets the glViewport*/
- void setViewport();
-
- /** How many frames were called since the director started */
-
-
- /** Whether or not the replaced scene will receive the cleanup message.
- If the new scene is pushed, then the old scene won't receive the "cleanup" message.
- If the new scene replaces the old one, the it will receive the "cleanup" message.
- @since v0.99.0
- */
- inline bool isSendCleanupToScene(void) { return m_bSendCleanupToScene; }
-
- /** This object will be visited after the main scene is visited.
- This object MUST implement the "visit" selector.
- Useful to hook a notification object, like CCNotifications (http://github.com/manucorporat/CCNotifications)
- @since v0.99.5
- */
- CCNode* getNotificationNode();
- void setNotificationNode(CCNode* node);
-
- /** CCDirector delegate. It shall implemente the CCDirectorDelegate protocol
- @since v0.99.5
- */
- CCDirectorDelegate* getDelegate() const;
- void setDelegate(CCDirectorDelegate* pDelegate);
-
- // window size
-
- /** returns the size of the OpenGL view in points.
- */
- CCSize getWinSize(void);
-
- /** returns the size of the OpenGL view in pixels.
- */
- CCSize getWinSizeInPixels(void);
-
- /** returns visible size of the OpenGL view in points.
- * the value is equal to getWinSize if don't invoke
- * CCEGLView::setDesignResolutionSize()
- */
- CCSize getVisibleSize();
-
- /** returns visible origin of the OpenGL view in points.
- */
- CCPoint getVisibleOrigin();
-
- /** converts a UIKit coordinate to an OpenGL coordinate
- Useful to convert (multi) touch coordinates to the current layout (portrait or landscape)
- */
- CCPoint convertToGL(const CCPoint& obPoint);
-
- /** converts an OpenGL coordinate to a UIKit coordinate
- Useful to convert node points to window points for calls such as glScissor
- */
- CCPoint convertToUI(const CCPoint& obPoint);
-
- /// XXX: missing description
- float getZEye(void);
-
- // Scene Management
-
- /** Enters the Director's main loop with the given Scene.
- * Call it to run only your FIRST scene.
- * Don't call it if there is already a running scene.
- *
- * It will call pushScene: and then it will call startAnimation
- */
- void runWithScene(CCScene* pScene);
-
- /** Suspends the execution of the running scene, pushing it on the stack of suspended scenes.
- * The new scene will be executed.
- * Try to avoid big stacks of pushed scenes to reduce memory allocation.
- * ONLY call it if there is a running scene.
- */
-
- //Robtop Modification: changed return type to BOOL
- bool pushScene(CCScene* pScene);
-
- /** Pops out a scene from the queue.
- * This scene will replace the running one.
- * The running scene will be deleted. If there are no more scenes in the stack the execution is terminated.
- * ONLY call it if there is a running scene.
- */
- void popScene(void);
-
- /** Pops out all scenes from the queue until the root scene in the queue.
- * This scene will replace the running one.
- * Internally it will call `popToSceneStackLevel(1)`
- */
- void popToRootScene(void);
-
- /** Pops out all scenes from the queue until it reaches `level`.
- If level is 0, it will end the director.
- If level is 1, it will pop all scenes until it reaches to root scene.
- If level is <= than the current stack level, it won't do anything.
- */
- void popToSceneStackLevel(int level);
-
- /** Replaces the running scene with a new one. The running scene is terminated.
- * ONLY call it if there is a running scene.
- */
- //Robtop Modification: changed return type to BOOL
- bool replaceScene(CCScene* pScene);
-
- /** Ends the execution, releases the running scene.
- It doesn't remove the OpenGL view from its parent. You have to do it manually.
- */
- void end(void);
-
- /** Pauses the running scene.
- The running scene will be _drawed_ but all scheduled timers will be paused
- While paused, the draw rate will be 4 FPS to reduce CPU consumption
- */
- void pause(void);
-
- /** Resumes the paused scene
- The scheduled timers will be activated again.
- The "delta time" will be 0 (as if the game wasn't paused)
- */
- void resume(void);
-
- /** Stops the animation. Nothing will be drawn. The main loop won't be triggered anymore.
- If you don't want to pause your animation call [pause] instead.
- */
- virtual void stopAnimation(void) = 0;
-
- /** The main loop is triggered again.
- Call this function only if [stopAnimation] was called earlier
- @warning Don't call this function to start the main loop. To run the main loop call runWithScene
- */
- virtual void startAnimation(void) = 0;
-
- /** Draw the scene.
- This method is called every frame. Don't call it manually.
- */
- void drawScene(void);
-
- // Memory Helper
-
- /** Removes cached all cocos2d cached data.
- It will purge the CCTextureCache, CCSpriteFrameCache, CCLabelBMFont cache
- @since v0.99.3
- */
- void purgeCachedData(void);
-
- /** sets the default values based on the CCConfiguration info */
- void setDefaultValues(void);
-
- // OpenGL Helper
-
- /** sets the OpenGL default values */
- void setGLDefaultValues(void);
-
- /** enables/disables OpenGL alpha blending */
- void setAlphaBlending(bool bOn);
-
- /** enables/disables OpenGL depth test */
- void setDepthTest(bool bOn);
-
- virtual void mainLoop(void) = 0;
-
- /** The size in pixels of the surface. It could be different than the screen size.
- High-res devices might have a higher surface size than the screen size.
- Only available when compiled using SDK >= 4.0.
- @since v0.99.4
- */
- void setContentScaleFactor(float scaleFactor);
- float getContentScaleFactor(void);
-private:
- float m_fScreenScaleFactor; //0x24
- float m_fScreenScaleFactorMax; //0x28
- float m_fScreenScaleFactorW; //0x2C
- float m_fScreenScaleFactorH; //0x30
- float m_fScreenTop; //0x34
- float m_fScreenBottom; //0x38
- float m_fScreenLeft; //0x3C
- float m_fScreenRight; //0x40
- uint32_t m_uSceneReference; //0x44
-
-public:
- /** CCScheduler associated with this director
- @since v2.0
- */
- CC_PROPERTY(CCScheduler*, m_pScheduler, Scheduler); //0x48
-
- /** CCActionManager associated with this director
- @since v2.0
- */
- CC_PROPERTY(CCActionManager*, m_pActionManager, ActionManager); //0x4C
-
- /** CCTouchDispatcher associated with this director
- @since v2.0
- */
- CC_PROPERTY(CCTouchDispatcher*, m_pTouchDispatcher, TouchDispatcher); //0x50
-
- /** CCKeypadDispatcher associated with this director
- @since v2.0
- */
- CC_PROPERTY(CCKeypadDispatcher*, m_pKeypadDispatcher, KeypadDispatcher); //0x54
-
- //Robtop Modification: add getter/setter macros for CCKeyboardDispatcher
- CC_PROPERTY(CCKeyboardDispatcher*, m_pKeyboardDispatcher, KeyboardDispatcher); //0x58
-
- //Robtop Modification: add getter/setter macros for CCMouseDispatcher
- CC_PROPERTY(CCMouseDispatcher*, m_pMouseDispatcher, MouseDispatcher); //0x5C
-
-
- /** CCAccelerometer associated with this director
- @since v2.0
- @js NA
- @lua NA
- */
- CC_PROPERTY(CCAccelerometer*, m_pAccelerometer, Accelerometer); //0x60
-protected:
- float m_fDeltaTime; //0x64
-public:
- /* delta time since last tick to main loop */
- virtual float getDeltaTime(void);
- void setDeltaTime(float);
-
- //CC_PROPERTY(float, m_fDeltaTime, DeltaTime); //0x64
-
- CC_PROPERTY_NOVIRTUAL(float, m_fActualDeltaTime, ActualDeltaTime); //0x68;
-
- CC_SYNTHESIZE_READONLY(bool, m_bIsTransitioning, IsTransitioning) //0x6C;
-
-
-public:
- /** returns a shared instance of the director
- * @js getInstance
- */
- static CCDirector* sharedDirector(void);
-
-protected:
-
- void purgeDirector();
- bool m_bPurgeDirecotorInNextLoop; // this flag will be set to true in end() //0x70
-
- void setNextScene(void);
-
- void showStats();
- void createStatsLabel();
- void calculateMPF();
- void getFPSImageData(unsigned char** datapointer, unsigned int* length);
-
- /** calculates delta time since last time it was called */
- void calculateDeltaTime();
-protected:
- uint32_t m_uPadding00[2]; //0x74
- /* The CCEGLView, where everything is rendered */
- CCEGLView* m_pobOpenGLView; //0x78
-
- uint32_t m_uPadding01; //0x7C
-
- double m_dAnimationInterval; //0x80
- double m_dOldAnimationInterval; //0x88
-
- /* landscape mode ? */
- bool m_bLandscape; //0x89, struct alignment takes care of the rest
- //uint32_t m_uPadding02; //0x8D
-
- bool m_bDisplayStats; //0x91
- float m_fAccumDt; //0x94, struct alignment
- float m_fFrameRate; //0x98
-
- CCLabelAtlas* m_pFPSLabel; //0x9C
- CCLabelAtlas* m_pSPFLabel; //0xA0
- CCLabelAtlas* m_pDrawsLabel; //0xA4
-
- /** Whether or not the Director is paused */
- bool m_bPaused; //0xA8
-
- /* How many frames were called since the director started */
- unsigned int m_uTotalFrames; //0xAC
- unsigned int m_uFrames; //0xB0
- float m_fSecondsPerFrame; //0xB4
-
- /* The running scene */
- CCScene* m_pRunningScene; //0xB8
-
- /* will be the next 'runningScene' in the next frame
- nextScene is a weak reference. */
- CCScene* m_pNextScene; //0xBC
-
- /* If YES, then "old" scene will receive the cleanup message */
- bool m_bSendCleanupToScene; //0xC0
-
- /* scheduled scenes */
- CCArray* m_pobScenesStack; //0xC4
-
- /* last time the main loop was updated */
- struct cc_timeval* m_pLastUpdate; //0xC8
-
- /* whether or not the next delta time will be zero */
- bool m_bNextDeltaTimeZero; //0xCC
-
- /* projection used */
- ccDirectorProjection m_eProjection; //0xD0
-
- /* window size in points */
- CCSize m_obWinSizeInPoints; //0xD4
-
- /* content scale factor */
- float m_fContentScaleFactor; //0xDC
-
- /* store the fps string */
- char* m_pszFPS; //0xE0
-
- /* This object will be visited after the scene. Useful to hook a notification node */
- CCNode* m_pNotificationNode; //0xE4
-
- /* Projection protocol delegate */
- CCDirectorDelegate* m_pProjectionDelegate; //0xE8
-
- //I'm opting to replace this with a cocos macro
- //CCSceneDelegate* m_pSceneDelegate; //0xEC
- CC_PROPERTY_CONST(CCSceneDelegate*, m_pSceneDelegate, SceneDelegate);
-protected:
- CCSize m_sUnknown04; //0xF0 //These are referenced in CCDirector::updateScreenScale, no idea what they do
- CCSize m_sUnknown05; //0xF8
-
- TextureQuality m_eTextureQuality; //0x100
- bool m_bWillSwitchToScene;
-
-
- // CCEGLViewProtocol will recreate stats labels to fit visible rect
- friend class CCEGLViewProtocol;
-public:
- //Robtop Functions
- bool getDontCallWillSwitch(void) const;
- //bool getForceSmoothFix(void) const;
- //bool getIsTransitioning(void) const;
- //CCKeyboardDispatcher* getKeyboardDispatcher(void); //Already taken care of
- TextureQuality getLoadedTextureQuality(void) const;
- //getMouseDispatcher(void); //Already taken care of
- CCScene* getNextScene(void);
- //getSceneDelegate(void); //Already taken care of
- CCScene* getSceneReference(void) const;
- float getScreenBottom(void);
- float getScreenLeft(void);
- float getScreenRight(void);
- float getScreenScaleFactor(void);
- float getScreenScaleFactorH(void);
- float getScreenScaleFactorMax(void);
- float getScreenScaleFactorW(void);
- float getScreenTop(void);
- bool getSmoothFix(void) const;
- bool getSmoothFixCheck(void) const;
- int getSmoothFixCounter(void) const;
- int levelForSceneInStack(CCScene*);
- void popSceneWithTransition(float, PopTransition);
- int sceneCount(void);
- //void setActualDeltaTime(float); //Already taken care of
- //void setDeltaTime(float); //Already taken care of
- void setForceSmoothFix(bool);
- //setKeyboardDispatcher(CCKeyboardDispatcher*) //Already taken care of
- //setMouseDispatcher(CCMouseDispatcher*) //Already taken care of
- //setSceneDelegate(CCSceneDelegate*) //Already taken care of
- void setSceneReference(CCScene*);
- void setSmoothFix(bool);
- void setSmoothFixCheck(bool);
- void setupScreenScale(CCSize, CCSize, TextureQuality);
- void updateContentScale(TextureQuality);
- void updateScreenScale(CCSize);
- void willSwitchToScene(CCScene*);
-};
-
-/**
- @brief DisplayLinkDirector is a Director that synchronizes timers with the refresh rate of the display.
-
- Features and Limitations:
- - Scheduled timers & drawing are synchronizes with the refresh rate of the display
- - Only supports animation intervals of 1/60 1/30 & 1/15
-
- @since v0.8.2
- @js NA
- @lua NA
- */
-class CCDisplayLinkDirector : public CCDirector
-{
-public:
- CCDisplayLinkDirector(void)
- : m_bInvalid(false)
- {}
-
- virtual void mainLoop(void);
- virtual void setAnimationInterval(double dValue);
- virtual void startAnimation(void);
- virtual void stopAnimation();
-
-protected:
- bool m_bInvalid;
-};
-
-// end of base_node group
-/// @}
-
-NS_CC_END
-
-#endif // __CCDIRECTOR_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/CCScheduler.h b/cappuccino-sdk/incl/cocos2dx/CCScheduler.h
deleted file mode 100644
index 8c12e2d..0000000
--- a/cappuccino-sdk/incl/cocos2dx/CCScheduler.h
+++ /dev/null
@@ -1,319 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCSCHEDULER_H__
-#define __CCSCHEDULER_H__
-
-#include "cocoa/CCObject.h"
-#include "support/data_support/uthash.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup global
- * @{
- */
-
-// Priority level reserved for system services.
-#define kCCPrioritySystem INT_MIN
-
-// Minimum priority level for user scheduling.
-#define kCCPriorityNonSystemMin (kCCPrioritySystem+1)
-
-class CCSet;
-//
-// CCTimer
-//
-/** @brief Light-weight timer */
-//
-class CC_DLL CCTimer : public CCObject
-{
-public:
- /**
- * @js ctor
- * @lua NA
- */
- CCTimer(void);
-
- /** get interval in seconds */
- float getInterval(void) const;
- /** set interval in seconds */
- void setInterval(float fInterval);
- /**
- * @lua NA
- */
- SEL_SCHEDULE getSelector() const;
-
- /** Initializes a timer with a target and a selector.
- * @lua NA
- */
- bool initWithTarget(CCObject *pTarget, SEL_SCHEDULE pfnSelector);
-
- /** Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
- * @lua NA
- */
- bool initWithTarget(CCObject *pTarget, SEL_SCHEDULE pfnSelector, float fSeconds, unsigned int nRepeat, float fDelay);
-
- /** Initializes a timer with a script callback function and an interval in seconds. */
- bool initWithScriptHandler(int nHandler, float fSeconds);
-
- /** triggers the timer */
- void update(float dt);
-
-public:
- /** Allocates a timer with a target and a selector.
- * @lua NA
- */
- static CCTimer* timerWithTarget(CCObject *pTarget, SEL_SCHEDULE pfnSelector);
-
- /** Allocates a timer with a target, a selector and an interval in seconds.
- * @lua NA
- */
- static CCTimer* timerWithTarget(CCObject *pTarget, SEL_SCHEDULE pfnSelector, float fSeconds);
-
- /** Allocates a timer with a script callback function and an interval in seconds. */
- static CCTimer* timerWithScriptHandler(int nHandler, float fSeconds);
- /**
- * @lua NA
- */
- inline int getScriptHandler() { return m_nScriptHandler; };
-
-protected:
- CCObject *m_pTarget;
- float m_fElapsed;
- bool m_bRunForever;
- bool m_bUseDelay;
- unsigned int m_uTimesExecuted;
- unsigned int m_uRepeat; //0 = once, 1 is 2 x executed
- float m_fDelay;
- float m_fInterval;
- SEL_SCHEDULE m_pfnSelector;
-
- int m_nScriptHandler;
-};
-
-//
-// CCScheduler
-//
-struct _listEntry;
-struct _hashSelectorEntry;
-struct _hashUpdateEntry;
-
-class CCArray;
-
-/** @brief Scheduler is responsible for triggering the scheduled callbacks.
-You should not use NSTimer. Instead use this class.
-
-There are 2 different types of callbacks (selectors):
-
-- update selector: the 'update' selector will be called every frame. You can customize the priority.
-- custom selector: A custom selector will be called every frame, or with a custom interval of time
-
-The 'custom selectors' should be avoided when possible. It is faster, and consumes less memory to use the 'update selector'.
-
-*/
-class CC_DLL CCScheduler : public CCObject
-{
-public:
- CCScheduler();
- /**
- * @js NA
- * @lua NA
- */
- ~CCScheduler(void);
-
- inline float getTimeScale(void) { return m_fTimeScale; }
- /** Modifies the time of all scheduled callbacks.
- You can use this property to create a 'slow motion' or 'fast forward' effect.
- Default is 1.0. To create a 'slow motion' effect, use values below 1.0.
- To create a 'fast forward' effect, use values higher than 1.0.
- @since v0.8
- @warning It will affect EVERY scheduled selector / action.
- */
- inline void setTimeScale(float fTimeScale) { m_fTimeScale = fTimeScale; }
-
- /** 'update' the scheduler.
- * You should NEVER call this method, unless you know what you are doing.
- * @js NA
- * @lua NA
- */
- void update(float dt);
-
- /** The scheduled method will be called every 'interval' seconds.
- If paused is YES, then it won't be called until it is resumed.
- If 'interval' is 0, it will be called every frame, but if so, it's recommended to use 'scheduleUpdateForTarget:' instead.
- If the selector is already scheduled, then only the interval parameter will be updated without re-scheduling it again.
- repeat let the action be repeated repeat + 1 times, use kCCRepeatForever to let the action run continuously
- delay is the amount of time the action will wait before it'll start
-
- @since v0.99.3, repeat and delay added in v1.1
- @js NA
- @lua NA
- */
- void scheduleSelector(SEL_SCHEDULE pfnSelector, CCObject *pTarget, float fInterval, unsigned int repeat, float delay, bool bPaused);
-
- /** calls scheduleSelector with kCCRepeatForever and a 0 delay
- * @js NA
- * @lua NA
- */
- void scheduleSelector(SEL_SCHEDULE pfnSelector, CCObject *pTarget, float fInterval, bool bPaused);
- /** Schedules the 'update' selector for a given target with a given priority.
- The 'update' selector will be called every frame.
- The lower the priority, the earlier it is called.
- @since v0.99.3
- @lua NA
- */
- void scheduleUpdateForTarget(CCObject *pTarget, int nPriority, bool bPaused);
-
- /** Unschedule a selector for a given target.
- If you want to unschedule the "update", use unscheudleUpdateForTarget.
- @since v0.99.3
- @lua NA
- */
- void unscheduleSelector(SEL_SCHEDULE pfnSelector, CCObject *pTarget);
-
- /** Unschedules the update selector for a given target
- @since v0.99.3
- @lua NA
- */
- void unscheduleUpdateForTarget(const CCObject *pTarget);
-
- /** Unschedules all selectors for a given target.
- This also includes the "update" selector.
- @since v0.99.3
- @js unscheduleCallbackForTarget
- @lua NA
- */
- void unscheduleAllForTarget(CCObject *pTarget);
-
- /** Unschedules all selectors from all targets.
- You should NEVER call this method, unless you know what you are doing.
-
- @since v0.99.3
- @js unscheduleAllCallbacks
- @lua NA
- */
- void unscheduleAll(void);
-
- /** Unschedules all selectors from all targets with a minimum priority.
- You should only call this with kCCPriorityNonSystemMin or higher.
- @since v2.0.0
- @js unscheduleAllCallbacksWithMinPriority
- @lua NA
- */
- void unscheduleAllWithMinPriority(int nMinPriority);
-
- /** The scheduled script callback will be called every 'interval' seconds.
- If paused is YES, then it won't be called until it is resumed.
- If 'interval' is 0, it will be called every frame.
- return schedule script entry ID, used for unscheduleScriptFunc().
- @js NA
- */
- unsigned int scheduleScriptFunc(unsigned int nHandler, float fInterval, bool bPaused);
-
- /** Unschedule a script entry.
- * @js NA
- */
- void unscheduleScriptEntry(unsigned int uScheduleScriptEntryID);
-
- /** Pauses the target.
- All scheduled selectors/update for a given target won't be 'ticked' until the target is resumed.
- If the target is not present, nothing happens.
- @since v0.99.3
- @lua NA
- */
- void pauseTarget(CCObject *pTarget);
-
- /** Resumes the target.
- The 'target' will be unpaused, so all schedule selectors/update will be 'ticked' again.
- If the target is not present, nothing happens.
- @since v0.99.3
- @lua NA
- */
- void resumeTarget(CCObject *pTarget);
-
- /** Returns whether or not the target is paused
- @since v1.0.0
- @lua NA
- */
- bool isTargetPaused(CCObject *pTarget);
-
- /** Pause all selectors from all targets.
- You should NEVER call this method, unless you know what you are doing.
- @since v2.0.0
- @lua NA
- */
- CCSet* pauseAllTargets();
-
- /** Pause all selectors from all targets with a minimum priority.
- You should only call this with kCCPriorityNonSystemMin or higher.
- @since v2.0.0
- @lua NA
- */
- CCSet* pauseAllTargetsWithMinPriority(int nMinPriority);
-
- /** Resume selectors on a set of targets.
- This can be useful for undoing a call to pauseAllSelectors.
- @since v2.0.0
- @lua NA
- */
- void resumeTargets(CCSet* targetsToResume);
-
-private:
- void removeHashElement(struct _hashSelectorEntry *pElement);
- void removeUpdateFromHash(struct _listEntry *entry);
-
- // update specific
-
- void priorityIn(struct _listEntry **ppList, CCObject *pTarget, int nPriority, bool bPaused);
- void appendIn(struct _listEntry **ppList, CCObject *pTarget, bool bPaused);
-
-protected:
- float m_fTimeScale;
-
- //
- // "updates with priority" stuff
- //
- struct _listEntry *m_pUpdatesNegList; // list of priority < 0
- struct _listEntry *m_pUpdates0List; // list priority == 0
- struct _listEntry *m_pUpdatesPosList; // list priority > 0
- struct _hashUpdateEntry *m_pHashForUpdates; // hash used to fetch quickly the list entries for pause,delete,etc
-
- // Used for "selectors with interval"
- struct _hashSelectorEntry *m_pHashForTimers;
- struct _hashSelectorEntry *m_pCurrentTarget;
- bool m_bCurrentTargetSalvaged;
- // If true unschedule will not remove anything from a hash. Elements will only be marked for deletion.
- bool m_bUpdateHashLocked;
- CCArray* m_pScriptHandlerEntries;
-};
-
-// end of global group
-/// @}
-
-NS_CC_END
-
-#endif // __CCSCHEDULER_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCAction.h b/cappuccino-sdk/incl/cocos2dx/actions/CCAction.h
deleted file mode 100644
index 08a25a2..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCAction.h
+++ /dev/null
@@ -1,295 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __ACTIONS_CCACTION_H__
-#define __ACTIONS_CCACTION_H__
-
-#include "cocoa/CCObject.h"
-#include "cocoa/CCGeometry.h"
-#include "platform/CCPlatformMacros.h"
-
-NS_CC_BEGIN
-
-enum {
- //! Default tag
- kCCActionTagInvalid = -1,
-};
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
-@brief Base class for CCAction objects.
- */
-class CC_DLL CCAction : public CCObject
-{
-public:
- /**
- * @js ctor
- */
- CCAction(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCAction(void);
- /**
- * @js NA
- * @lua NA
- */
- const char* description();
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
-
- //! return true if the action has finished
- virtual bool isDone(void);
-
- //! called before the action start. It will also set the target.
- virtual void startWithTarget(CCNode *pTarget);
-
- /**
- called after the action has finished. It will set the 'target' to nil.
- IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
- */
- virtual void stop(void);
-
- //! called every frame with it's delta time. DON'T override unless you know what you are doing.
- virtual void step(float dt);
-
- /**
- called once per frame. time a value between 0 and 1
-
- For example:
- - 0 means that the action just started
- - 0.5 means that the action is in the middle
- - 1 means that the action is over
- */
- virtual void update(float time);
-
- inline CCNode* getTarget(void) { return m_pTarget; }
- /** The action will modify the target properties. */
- inline void setTarget(CCNode *pTarget) { m_pTarget = pTarget; }
-
- inline CCNode* getOriginalTarget(void) { return m_pOriginalTarget; }
- /** Set the original target, since target can be nil.
- Is the target that were used to run the action. Unless you are doing something complex, like CCActionManager, you should NOT call this method.
- The target is 'assigned', it is not 'retained'.
- @since v0.8.2
- */
- inline void setOriginalTarget(CCNode *pOriginalTarget) { m_pOriginalTarget = pOriginalTarget; }
-
- inline int getTag(void) { return m_nTag; }
- inline void setTag(int nTag) { m_nTag = nTag; }
-
-public:
- /** Create an action */
- static CCAction* create();
-protected:
- CCNode *m_pOriginalTarget;
- /** The "target".
- The target will be set with the 'startWithTarget' method.
- When the 'stop' method is called, target will be set to nil.
- The target is 'assigned', it is not 'retained'.
- */
- CCNode *m_pTarget;
- /** The action tag. An identifier of the action */
- int m_nTag;
-};
-
-/**
-@brief
- Base class actions that do have a finite time duration.
- Possible actions:
- - An action with a duration of 0 seconds
- - An action with a duration of 35.5 seconds
-
- Infinite time actions are valid
- */
-class CC_DLL CCFiniteTimeAction : public CCAction
-{
-public:
- /**
- * @js ctor
- */
- CCFiniteTimeAction()
- : m_fDuration(0)
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCFiniteTimeAction(){}
- //! get duration in seconds of the action
- inline float getDuration(void) { return m_fDuration; }
- //! set duration in seconds of the action
- inline void setDuration(float duration) { m_fDuration = duration; }
-
- /** returns a reversed action */
- virtual CCFiniteTimeAction* reverse(void);
-protected:
- //! duration in seconds
- float m_fDuration;
-};
-
-class CCActionInterval;
-class CCRepeatForever;
-
-/**
- @brief Changes the speed of an action, making it take longer (speed>1)
- or less (speed<1) time.
- Useful to simulate 'slow motion' or 'fast forward' effect.
- @warning This action can't be Sequenceable because it is not an CCIntervalAction
- */
-class CC_DLL CCSpeed : public CCAction
-{
-public:
- /**
- * @js ctor
- */
- CCSpeed()
- : m_fSpeed(0.0)
- , m_pInnerAction(NULL)
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCSpeed(void);
-
- inline float getSpeed(void) { return m_fSpeed; }
- /** alter the speed of the inner function in runtime */
- inline void setSpeed(float fSpeed) { m_fSpeed = fSpeed; }
-
- /** initializes the action */
- bool initWithAction(CCActionInterval *pAction, float fSpeed);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual void startWithTarget(CCNode* pTarget);
- virtual void stop();
- virtual void step(float dt);
- virtual bool isDone(void);
- virtual CCActionInterval* reverse(void);
-
- void setInnerAction(CCActionInterval *pAction);
-
- inline CCActionInterval* getInnerAction()
- {
- return m_pInnerAction;
- }
-
-public:
- /** create the action */
- static CCSpeed* create(CCActionInterval* pAction, float fSpeed);
-protected:
- float m_fSpeed;
- CCActionInterval *m_pInnerAction;
-};
-
-/**
-@brief CCFollow is an action that "follows" a node.
-
-Eg:
-layer->runAction(CCFollow::actionWithTarget(hero));
-
-Instead of using CCCamera as a "follower", use this action instead.
-@since v0.99.2
-*/
-class CC_DLL CCFollow : public CCAction
-{
-public:
- /**
- * @js ctor
- */
- CCFollow()
- : m_pobFollowedNode(NULL)
- , m_bBoundarySet(false)
- , m_bBoundaryFullyCovered(false)
- , m_fLeftBoundary(0.0)
- , m_fRightBoundary(0.0)
- , m_fTopBoundary(0.0)
- , m_fBottomBoundary(0.0)
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCFollow(void);
-
- inline bool isBoundarySet(void) { return m_bBoundarySet; }
- /** alter behavior - turn on/off boundary */
- inline void setBoudarySet(bool bValue) { m_bBoundarySet = bValue; }
-
- /** initializes the action with a set boundary */
- bool initWithTarget(CCNode *pFollowedNode, const CCRect& rect = CCRectZero);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual void step(float dt);
- virtual bool isDone(void);
- virtual void stop(void);
-
-public:
- /** creates the action with a set boundary,
- It will work with no boundary if @param rect is equal to CCRectZero.
- */
- static CCFollow* create(CCNode *pFollowedNode, const CCRect& rect = CCRectZero);
-protected:
- // node to follow
- CCNode *m_pobFollowedNode;
-
- // whether camera should be limited to certain area
- bool m_bBoundarySet;
-
- // if screen size is bigger than the boundary - update not needed
- bool m_bBoundaryFullyCovered;
-
- // fast access to the screen dimensions
- CCPoint m_obHalfScreenSize;
- CCPoint m_obFullScreenSize;
-
- // world boundaries
- float m_fLeftBoundary;
- float m_fRightBoundary;
- float m_fTopBoundary;
- float m_fBottomBoundary;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTIONS_CCACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionCamera.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionCamera.h
deleted file mode 100644
index 62c3449..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionCamera.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCCAMERA_ACTION_H__
-#define __CCCAMERA_ACTION_H__
-
-#include "CCActionInterval.h"
-
-NS_CC_BEGIN
-
-class CCCamera;
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
-@brief Base class for CCCamera actions
-@ingroup Actions
-*/
-class CC_DLL CCActionCamera : public CCActionInterval //
-{
-public:
- /**
- * @js ctor
- */
- CCActionCamera()
- :m_fCenterXOrig(0)
- ,m_fCenterYOrig(0)
- ,m_fCenterZOrig(0)
- ,m_fEyeXOrig(0)
- ,m_fEyeYOrig(0)
- ,m_fEyeZOrig(0)
- ,m_fUpXOrig(0)
- ,m_fUpYOrig(0)
- ,m_fUpZOrig(0)
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCActionCamera(){}
- // super methods
- virtual void startWithTarget(CCNode *pTarget);
- virtual CCActionInterval * reverse();
-protected:
- float m_fCenterXOrig;
- float m_fCenterYOrig;
- float m_fCenterZOrig;
-
- float m_fEyeXOrig;
- float m_fEyeYOrig;
- float m_fEyeZOrig;
-
- float m_fUpXOrig;
- float m_fUpYOrig;
- float m_fUpZOrig;
-};
-
-/**
-@brief CCOrbitCamera action
-Orbits the camera around the center of the screen using spherical coordinates
-@ingroup Actions
-*/
-class CC_DLL CCOrbitCamera : public CCActionCamera //
-{
-public:
- /**
- * @js ctor
- */
- CCOrbitCamera()
- : m_fRadius(0.0)
- , m_fDeltaRadius(0.0)
- , m_fAngleZ(0.0)
- , m_fDeltaAngleZ(0.0)
- , m_fAngleX(0.0)
- , m_fDeltaAngleX(0.0)
- , m_fRadZ(0.0)
- , m_fRadDeltaZ(0.0)
- , m_fRadX(0.0)
- , m_fRadDeltaX(0.0)
- {}
- /**
- * @js NA
- * @lua NA
- */
- ~CCOrbitCamera(){}
-
- /** creates a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
- static CCOrbitCamera* create(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX);
-
- /** initializes a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX */
- bool initWithDuration(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX);
- /** positions the camera according to spherical coordinates */
- void sphericalRadius(float *r, float *zenith, float *azimuth);
- // super methods
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-protected:
- float m_fRadius;
- float m_fDeltaRadius;
- float m_fAngleZ;
- float m_fDeltaAngleZ;
- float m_fAngleX;
- float m_fDeltaAngleX;
-
- float m_fRadZ;
- float m_fRadDeltaZ;
- float m_fRadX;
- float m_fRadDeltaX;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif //__CCCAMERA_ACTION_H__
\ No newline at end of file
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionCatmullRom.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionCatmullRom.h
deleted file mode 100644
index 85b5ca8..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionCatmullRom.h
+++ /dev/null
@@ -1,275 +0,0 @@
-/*
- * Copyright (c) 2012 cocos2d-x.org
- * cocos2d for iPhone: http://www.cocos2d-iphone.org
- *
- * Copyright (c) 2008 Radu Gruian
- *
- * Copyright (c) 2011 Vit Valentin
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * 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.
- *
- *
- * Original code by Radu Gruian: http://www.codeproject.com/Articles/30838/Overhauser-Catmull-Rom-Splines-for-Camera-Animatio.So
- *
- * Adapted to cocos2d-x by Vit Valentin
- *
- * Adapted from cocos2d-x to cocos2d-iphone by Ricardo Quesada
- */
-
-
-#ifndef __CCACTION_CATMULLROM_H__
-#define __CCACTION_CATMULLROM_H__
-
-#include
-
-#include "CCActionInterval.h"
-#include "base_nodes/CCNode.h"
-#include "cocoa/CCGeometry.h"
-
-NS_CC_BEGIN;
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/** An Array that contain control points.
- * Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.
- * @ingroup Actions
- * @js NA
- */
-class CC_DLL CCPointArray : public CCObject
-{
-public:
-
- /** creates and initializes a Points array with capacity
- * @lua NA
- */
- static CCPointArray* create(unsigned int capacity);
- /**
- * @lua NA
- */
- virtual ~CCPointArray();
- /**
- * @lua NA
- */
- CCPointArray();
-
- /** initializes a Catmull Rom config with a capacity hint */
- bool initWithCapacity(unsigned int capacity);
-
- /** appends a control point */
- void addControlPoint(CCPoint controlPoint);
-
- /** inserts a controlPoint at index */
- void insertControlPoint(CCPoint &controlPoint, unsigned int index);
-
- /** replaces an existing controlPoint at index */
- void replaceControlPoint(CCPoint &controlPoint, unsigned int index);
-
- /** get the value of a controlPoint at a given index */
- CCPoint getControlPointAtIndex(unsigned int index);
-
- /** deletes a control point at a given index */
- void removeControlPointAtIndex(unsigned int index);
-
- /** returns the number of objects of the control point array */
- unsigned int count();
-
- /** returns a new copy of the array reversed. User is responsible for releasing this copy */
- CCPointArray* reverse();
-
- /** reverse the current control point array inline, without generating a new one */
- void reverseInline();
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *zone);
-
- const std::vector* getControlPoints();
-
- void setControlPoints(std::vector *controlPoints);
-private:
- /** Array that contains the control points */
- std::vector *m_pControlPoints;
-};
-
-/** Cardinal Spline path.
- http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
-@ingroup Actions
- */
-class CC_DLL CCCardinalSplineTo : public CCActionInterval
-{
-public:
-
- /** creates an action with a Cardinal Spline array of points and tension
- * @code
- * when thie function bound to js,the input params are changed
- * js:var create(var duration,var pointTable,var tension)
- * @endcode
- */
- static CCCardinalSplineTo* create(float duration, CCPointArray* points, float tension);
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCCardinalSplineTo();
- /**
- * @js ctor
- * @lua NA
- */
- CCCardinalSplineTo();
-
- /** initializes the action with a duration and an array of points
- * @lua NA
- */
- bool initWithDuration(float duration, CCPointArray* points, float tension);
-
- // super virtual functions
- /**
- * @js NA
- * @lua NA
- */
- virtual CCCardinalSplineTo* copyWithZone(CCZone* pZone);
- /**
- * @lua NA
- */
- virtual void startWithTarget(CCNode *pTarget);
- /**
- * @lua NA
- */
- virtual void update(float time);
- virtual CCActionInterval* reverse();
- /**
- * @lua NA
- */
- virtual void updatePosition(CCPoint &newPos);
-
- inline CCPointArray* getPoints() { return m_pPoints; }
- /**
- * @js NA
- */
- inline void setPoints(CCPointArray* points)
- {
- CC_SAFE_RETAIN(points);
- CC_SAFE_RELEASE(m_pPoints);
- m_pPoints = points;
- }
-
-protected:
- /** Array of control points */
- CCPointArray *m_pPoints;
- float m_fDeltaT;
- float m_fTension;
- CCPoint m_previousPosition;
- CCPoint m_accumulatedDiff;
-};
-
-/** Cardinal Spline path.
- http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline
- @ingroup Actions
- */
-class CC_DLL CCCardinalSplineBy : public CCCardinalSplineTo
-{
-public:
-
- /** creates an action with a Cardinal Spline array of points and tension
- * @code
- * when thie function bound to js,the input params are changed
- * js:var create(var duration,var pointTable,var tension)
- * @endcode
- */
- static CCCardinalSplineBy* create(float duration, CCPointArray* points, float tension);
- /**
- * @js NA
- * @lua NA
- */
- CCCardinalSplineBy();
- /**
- * @lua NA
- */
- virtual void startWithTarget(CCNode *pTarget);
- virtual CCActionInterval* reverse();
- /**
- * @lua NA
- */
- virtual void updatePosition(CCPoint &newPos);
-protected:
- CCPoint m_startPosition;
-};
-
-/** An action that moves the target with a CatmullRom curve to a destination point.
- A Catmull Rom is a Cardinal Spline with a tension of 0.5.
- http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline
- @ingroup Actions
- */
-class CC_DLL CCCatmullRomTo : public CCCardinalSplineTo
-{
-public:
-
- /** creates an action with a Cardinal Spline array of points and tension
- * @code
- * when this function bound to js,the input params are changed
- * js:var create(var dt,var pointTable)
- * @endcode
- */
- static CCCatmullRomTo* create(float dt, CCPointArray* points);
-
- /** initializes the action with a duration and an array of points
- * @js NA
- * @lua NA
- */
- bool initWithDuration(float dt, CCPointArray* points);
-};
-
-/** An action that moves the target with a CatmullRom curve by a certain distance.
- A Catmull Rom is a Cardinal Spline with a tension of 0.5.
- http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline
- @ingroup Actions
- */
-class CC_DLL CCCatmullRomBy : public CCCardinalSplineBy
-{
-public:
-
- /** creates an action with a Cardinal Spline array of points and tension
- * @code
- * when this function bound to js,the input params are changed
- * js:var create(var dt,var pointTable)
- * @endcode
- */
- static CCCatmullRomBy* create(float dt, CCPointArray* points);
-
- /** initializes the action with a duration and an array of points
- * @js NA
- * @lua NA
- */
- bool initWithDuration(float dt, CCPointArray* points);
-};
-
-/** Returns the Cardinal Spline position for a given set of control points, tension and time */
-extern CC_DLL CCPoint ccCardinalSplineAt(CCPoint &p0, CCPoint &p1, CCPoint &p2, CCPoint &p3, float tension, float t);
-
-// end of actions group
-/// @}
-
-NS_CC_END;
-
-#endif // __CCACTION_CATMULLROM_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionEase.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionEase.h
deleted file mode 100644
index b913e91..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionEase.h
+++ /dev/null
@@ -1,567 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2009 Jason Booth
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __ACTION_CCEASE_ACTION_H__
-#define __ACTION_CCEASE_ACTION_H__
-
-#include "CCActionInterval.h"
-
-NS_CC_BEGIN
-
-class CCObject;
-class CCZone;
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
- @brief Base class for Easing actions
- @ingroup Actions
- */
-class CC_DLL CCActionEase : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCActionEase(void);
-
- /** initializes the action */
- bool initWithAction(CCActionInterval *pAction);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void stop(void);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- virtual CCActionInterval* getInnerAction();
-
-public:
-
- /** creates the action */
- static CCActionEase* create(CCActionInterval *pAction);
-
-protected:
- /** The inner action */
- CCActionInterval *m_pInner;
-};
-
-/**
- @brief Base class for Easing actions with rate parameters
- @ingroup Actions
- */
-class CC_DLL CCEaseRateAction : public CCActionEase
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCEaseRateAction(void);
-
- /** set rate value for the actions */
- inline void setRate(float rate) { m_fRate = rate; }
- /** get rate value for the actions */
- inline float getRate(void) { return m_fRate; }
-
- /** Initializes the action with the inner action and the rate parameter */
- bool initWithAction(CCActionInterval *pAction, float fRate);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual CCActionInterval* reverse(void);
-
-public:
-
- /** Creates the action with the inner action and the rate parameter */
- static CCEaseRateAction* create(CCActionInterval* pAction, float fRate);
-
-protected:
- float m_fRate;
-};
-
-/**
- @brief CCEaseIn action with a rate
- @ingroup Actions
- */
-class CC_DLL CCEaseIn : public CCEaseRateAction
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-public:
-
- /** Creates the action with the inner action and the rate parameter */
- static CCEaseIn* create(CCActionInterval* pAction, float fRate);
-};
-
-/**
- @brief CCEaseOut action with a rate
- @ingroup Actions
- */
-class CC_DLL CCEaseOut : public CCEaseRateAction
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse();
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** Creates the action with the inner action and the rate parameter */
- static CCEaseOut* create(CCActionInterval* pAction, float fRate);
-};
-
-/**
- @brief CCEaseInOut action with a rate
- @ingroup Actions
- */
-class CC_DLL CCEaseInOut : public CCEaseRateAction
-{
-public:
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual CCActionInterval* reverse(void);
-
-public:
-
- /** Creates the action with the inner action and the rate parameter */
- static CCEaseInOut* create(CCActionInterval* pAction, float fRate);
-};
-
-/**
- @brief CCEase Exponential In
- @ingroup Actions
- */
-class CC_DLL CCEaseExponentialIn : public CCActionEase
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
- /** creates the action */
- static CCEaseExponentialIn* create(CCActionInterval* pAction);
-};
-
-/**
- @brief Ease Exponential Out
- @ingroup Actions
- */
-class CC_DLL CCEaseExponentialOut : public CCActionEase
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
- /** creates the action */
- static CCEaseExponentialOut* create(CCActionInterval* pAction);
-};
-
-/**
- @brief Ease Exponential InOut
- @ingroup Actions
- */
-class CC_DLL CCEaseExponentialInOut : public CCActionEase
-{
-public:
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual CCActionInterval* reverse();
-
-public:
-
- /** creates the action */
- static CCEaseExponentialInOut* create(CCActionInterval* pAction);
-};
-
-/**
- @brief Ease Sine In
- @ingroup Actions
- */
-class CC_DLL CCEaseSineIn : public CCActionEase
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
- /** creates the action */
- static CCEaseSineIn* create(CCActionInterval* pAction);
-};
-
-/**
- @brief Ease Sine Out
- @ingroup Actions
- */
-class CC_DLL CCEaseSineOut : public CCActionEase
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action */
- static CCEaseSineOut* create(CCActionInterval* pAction);
-};
-
-/**
- @brief Ease Sine InOut
- @ingroup Actions
- */
-class CC_DLL CCEaseSineInOut : public CCActionEase
-{
-public:
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual CCActionInterval* reverse();
-
-public:
-
- /** creates the action */
- static CCEaseSineInOut* create(CCActionInterval* pAction);
-};
-
-/**
- @brief Ease Elastic abstract class
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseElastic : public CCActionEase
-{
-public:
- /** get period of the wave in radians. default is 0.3 */
- inline float getPeriod(void) { return m_fPeriod; }
- /** set period of the wave in radians. */
- inline void setPeriod(float fPeriod) { m_fPeriod = fPeriod; }
-
- /** Initializes the action with the inner action and the period in radians (default is 0.3) */
- bool initWithAction(CCActionInterval *pAction, float fPeriod = 0.3f);
-
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** Creates the action with the inner action and the period in radians (default is 0.3) */
- static CCEaseElastic* create(CCActionInterval *pAction, float fPeriod);
- static CCEaseElastic* create(CCActionInterval *pAction);
-protected:
- float m_fPeriod;
-};
-
-/**
- @brief Ease Elastic In action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseElasticIn : public CCEaseElastic
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** Creates the action with the inner action and the period in radians (default is 0.3) */
- static CCEaseElasticIn* create(CCActionInterval *pAction, float fPeriod);
- static CCEaseElasticIn* create(CCActionInterval *pAction);
-};
-
-/**
- @brief Ease Elastic Out action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseElasticOut : public CCEaseElastic
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** Creates the action with the inner action and the period in radians (default is 0.3) */
- static CCEaseElasticOut* create(CCActionInterval *pAction, float fPeriod);
- static CCEaseElasticOut* create(CCActionInterval *pAction);
-};
-
-/**
- @brief Ease Elastic InOut action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseElasticInOut : public CCEaseElastic
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** Creates the action with the inner action and the period in radians (default is 0.3) */
- static CCEaseElasticInOut* create(CCActionInterval *pAction, float fPeriod);
- static CCEaseElasticInOut* create(CCActionInterval *pAction);
-};
-
-/**
- @brief CCEaseBounce abstract class.
- @since v0.8.2
- @ingroup Actions
-*/
-class CC_DLL CCEaseBounce : public CCActionEase
-{
-public:
- float bounceTime(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual CCActionInterval* reverse();
-
-public:
-
- /** creates the action */
- static CCEaseBounce* create(CCActionInterval* pAction);
-};
-
-/**
- @brief CCEaseBounceIn action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
-*/
-class CC_DLL CCEaseBounceIn : public CCEaseBounce
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action */
- static CCEaseBounceIn* create(CCActionInterval* pAction);
-};
-
-/**
- @brief EaseBounceOut action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseBounceOut : public CCEaseBounce
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action */
- static CCEaseBounceOut* create(CCActionInterval* pAction);
-};
-
-/**
- @brief CCEaseBounceInOut action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseBounceInOut : public CCEaseBounce
-{
-public:
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual CCActionInterval* reverse();
-
-public:
-
- /** creates the action */
- static CCEaseBounceInOut* create(CCActionInterval* pAction);
-};
-
-/**
- @brief CCEaseBackIn action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseBackIn : public CCActionEase
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action */
- static CCEaseBackIn* create(CCActionInterval* pAction);
-};
-
-/**
- @brief CCEaseBackOut action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseBackOut : public CCActionEase
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action */
- static CCEaseBackOut* create(CCActionInterval* pAction);
-};
-
-/**
- @brief CCEaseBackInOut action.
- @warning This action doesn't use a bijective function. Actions like Sequence might have an unexpected result when used with this action.
- @since v0.8.2
- @ingroup Actions
- */
-class CC_DLL CCEaseBackInOut : public CCActionEase
-{
-public:
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual CCActionInterval* reverse();
-
-public:
-
- /** creates the action */
- static CCEaseBackInOut* create(CCActionInterval* pAction);
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTION_CCEASE_ACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid.h
deleted file mode 100644
index 16fe732..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid.h
+++ /dev/null
@@ -1,241 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2009 On-Core
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __ACTION_CCGRID_ACTION_H__
-#define __ACTION_CCGRID_ACTION_H__
-
-#include "CCActionInterval.h"
-#include "CCActionInstant.h"
-
-NS_CC_BEGIN
-
-class CCGridBase;
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/** @brief Base class for Grid actions */
-class CC_DLL CCGridAction : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual CCActionInterval* reverse(void);
-
- /** initializes the action with size and duration */
- virtual bool initWithDuration(float duration, const CCSize& gridSize);
-
- /** returns the grid */
- virtual CCGridBase* getGrid(void);
-
-public:
- /** creates the action with size and duration */
- // We can't make this create function compatible with previous version, bindings-generator will be confused since they
- // have the same function name and the same number of arguments. So sorry about that.
- //CC_DEPRECATED_ATTRIBUTE static CCGridAction* create(const CCSize& gridSize, float duration);
-
- /** creates the action with size and duration */
- static CCGridAction* create(float duration, const CCSize& gridSize);
-protected:
- CCSize m_sGridSize;
-};
-
-/**
- @brief Base class for CCGrid3D actions.
- Grid3D actions can modify a non-tiled grid.
- */
-class CC_DLL CCGrid3DAction : public CCGridAction
-{
-public:
- /** returns the grid */
- virtual CCGridBase* getGrid(void);
- /** returns the vertex than belongs to certain position in the grid */
- ccVertex3F vertex(const CCPoint& position);
- /** returns the non-transformed vertex than belongs to certain position in the grid */
- ccVertex3F originalVertex(const CCPoint& position);
- /** sets a new vertex to a certain position of the grid */
- void setVertex(const CCPoint& position, const ccVertex3F& vertex);
-
-public:
- /** creates the action with size and duration
- * @js NA
- * @lua NA
- */
- static CCGrid3DAction* create(float duration, const CCSize& gridSize);
-};
-
-/** @brief Base class for CCTiledGrid3D actions */
-class CC_DLL CCTiledGrid3DAction : public CCGridAction
-{
-public:
- /** returns the tile that belongs to a certain position of the grid */
- ccQuad3 tile(const CCPoint& position);
- /** returns the non-transformed tile that belongs to a certain position of the grid */
- ccQuad3 originalTile(const CCPoint& position);
- /** sets a new tile to a certain position of the grid */
- void setTile(const CCPoint& position, const ccQuad3& coords);
-
- /** returns the grid */
- virtual CCGridBase* getGrid(void);
-
-public:
- /** creates the action with size and duration
- * @js NA
- * @lua NA
- */
- static CCTiledGrid3DAction* create(float duration, const CCSize& gridSize);
-};
-
-/** @brief CCAccelDeccelAmplitude action */
-class CC_DLL CCAccelDeccelAmplitude : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCAccelDeccelAmplitude(void);
- /** initializes the action with an inner action that has the amplitude property, and a duration time */
- bool initWithAction(CCAction *pAction, float duration);
-
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
- /** get amplitude rate */
- inline float getRate(void) { return m_fRate; }
- /** set amplitude rate */
- inline void setRate(float fRate) { m_fRate = fRate; }
-
-public:
- /** creates the action with an inner action that has the amplitude property, and a duration time */
- static CCAccelDeccelAmplitude* create(CCAction *pAction, float duration);
-
-protected:
- float m_fRate;
- CCActionInterval *m_pOther;
-};
-
-/** @brief CCAccelAmplitude action */
-class CC_DLL CCAccelAmplitude : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- ~CCAccelAmplitude(void);
- /** initializes the action with an inner action that has the amplitude property, and a duration time */
- bool initWithAction(CCAction *pAction, float duration);
-
- /** get amplitude rate */
- inline float getRate(void) { return m_fRate; }
- /** set amplitude rate */
- inline void setRate(float fRate) { m_fRate = fRate; }
-
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
- /** creates the action with an inner action that has the amplitude property, and a duration time */
- static CCAccelAmplitude* create(CCAction *pAction, float duration);
-protected:
- float m_fRate;
- CCActionInterval *m_pOther;
-};
-
-/** @brief CCDeccelAmplitude action */
-class CC_DLL CCDeccelAmplitude : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- ~CCDeccelAmplitude(void);
- /** initializes the action with an inner action that has the amplitude property, and a duration time */
- bool initWithAction(CCAction *pAction, float duration);
-
- /** get amplitude rate */
- inline float getRate(void) { return m_fRate; }
- /** set amplitude rate */
- inline void setRate(float fRate) { m_fRate = fRate; }
-
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
- /** creates the action with an inner action that has the amplitude property, and a duration time */
- static CCDeccelAmplitude* create(CCAction *pAction, float duration);
-
-protected:
- float m_fRate;
- CCActionInterval *m_pOther;
-};
-
-/** @brief CCStopGrid action.
- @warning Don't call this action if another grid action is active.
- Call if you want to remove the the grid effect. Example:
- CCSequence::actions(Lens::action(...), CCStopGrid::action(...), NULL);
- */
-class CC_DLL CCStopGrid : public CCActionInstant
-{
-public:
- virtual void startWithTarget(CCNode *pTarget);
-
-public:
- /** Allocates and initializes the action */
- static CCStopGrid* create(void);
-};
-
-/** @brief CCReuseGrid action */
-class CC_DLL CCReuseGrid : public CCActionInstant
-{
-public:
- /** initializes an action with the number of times that the current grid will be reused */
- bool initWithTimes(int times);
-
- virtual void startWithTarget(CCNode *pTarget);
-
-public:
- /** creates an action with the number of times that the current grid will be reused */
- static CCReuseGrid* create(int times);
-protected:
- int m_nTimes;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTION_CCGRID_ACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid3D.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid3D.h
deleted file mode 100644
index 3e52850..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionGrid3D.h
+++ /dev/null
@@ -1,296 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2009 On-Core
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __ACTION_CCGRID3D_ACTION_H__
-#define __ACTION_CCGRID3D_ACTION_H__
-
-#include "CCActionGrid.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
-@brief CCWaves3D action
-*/
-class CC_DLL CCWaves3D : public CCGrid3DAction
-{
-public:
- inline float getAmplitude(void) { return m_fAmplitude; }
- inline void setAmplitude(float fAmplitude) { m_fAmplitude = fAmplitude; }
-
- inline float getAmplitudeRate(void) { return m_fAmplitudeRate; }
- inline void setAmplitudeRate(float fAmplitudeRate) { m_fAmplitudeRate = fAmplitudeRate; }
-
- /** initializes an action with duration, grid size, waves and amplitude */
- bool initWithDuration(float duration, const CCSize& gridSize, unsigned int waves, float amplitude);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates an action with duration, grid size, waves and amplitude */
- static CCWaves3D* create(float duration, const CCSize& gridSize, unsigned int waves, float amplitude);
-protected:
- unsigned int m_nWaves;
- float m_fAmplitude;
- float m_fAmplitudeRate;
-};
-
-/** @brief CCFlipX3D action */
-class CC_DLL CCFlipX3D : public CCGrid3DAction
-{
-public:
- /** initializes the action with duration */
- virtual bool initWithDuration(float duration);
- virtual bool initWithSize(const CCSize& gridSize, float duration);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates the action with duration */
- static CCFlipX3D* create(float duration);
-};
-
-/** @brief CCFlipY3D action */
-class CC_DLL CCFlipY3D : public CCFlipX3D
-{
-public:
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
- /** creates the action with duration */
- static CCFlipY3D* create(float duration);
-};
-
-/** @brief CCLens3D action */
-class CC_DLL CCLens3D : public CCGrid3DAction
-{
-public:
- /** Get lens center position */
- inline float getLensEffect(void) { return m_fLensEffect; }
- /** Set lens center position */
- inline void setLensEffect(float fLensEffect) { m_fLensEffect = fLensEffect; }
- /** Set whether lens is concave */
- inline void setConcave(bool bConcave) { m_bConcave = bConcave; }
-
- inline const CCPoint& getPosition(void) { return m_position; }
- void setPosition(const CCPoint& position);
-
- /** initializes the action with center position, radius, a grid size and duration */
- bool initWithDuration(float duration, const CCSize& gridSize, const CCPoint& position, float radius);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates the action with center position, radius, a grid size and duration */
- static CCLens3D* create(float duration, const CCSize& gridSize, const CCPoint& position, float radius);
-protected:
- /* lens center position */
- CCPoint m_position;
- float m_fRadius;
- /** lens effect. Defaults to 0.7 - 0 means no effect, 1 is very strong effect */
- float m_fLensEffect;
- /** lens is concave. (true = concave, false = convex) default is convex i.e. false */
- bool m_bConcave;
-
- bool m_bDirty;
-};
-
-/** @brief CCRipple3D action */
-class CC_DLL CCRipple3D : public CCGrid3DAction
-{
-public:
- /** get center position */
- inline const CCPoint& getPosition(void) { return m_position; }
- /** set center position */
- void setPosition(const CCPoint& position);
-
- inline float getAmplitude(void) { return m_fAmplitude; }
- inline void setAmplitude(float fAmplitude) { m_fAmplitude = fAmplitude; }
-
- inline float getAmplitudeRate(void) { return m_fAmplitudeRate; }
- inline void setAmplitudeRate(float fAmplitudeRate) { m_fAmplitudeRate = fAmplitudeRate; }
-
- /** initializes the action with radius, number of waves, amplitude, a grid size and duration */
- bool initWithDuration(float duration, const CCSize& gridSize, const CCPoint& position, float radius, unsigned int waves, float amplitude);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates the action with radius, number of waves, amplitude, a grid size and duration */
- static CCRipple3D* create(float duration, const CCSize& gridSize, const CCPoint& position, float radius, unsigned int waves, float amplitude);
-protected:
- /* center position */
- CCPoint m_position;
- float m_fRadius;
- unsigned int m_nWaves;
- float m_fAmplitude;
- float m_fAmplitudeRate;
-};
-
-/** @brief CCShaky3D action */
-class CC_DLL CCShaky3D : public CCGrid3DAction
-{
-public:
- /** initializes the action with a range, shake Z vertices, a grid and duration */
- bool initWithDuration(float duration, const CCSize& gridSize, int range, bool shakeZ);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates the action with a range, shake Z vertices, a grid and duration */
- static CCShaky3D* create(float duration, const CCSize& gridSize, int range, bool shakeZ);
-protected:
- int m_nRandrange;
- bool m_bShakeZ;
-};
-
-/** @brief CCLiquid action */
-class CC_DLL CCLiquid : public CCGrid3DAction
-{
-public:
- inline float getAmplitude(void) { return m_fAmplitude; }
- inline void setAmplitude(float fAmplitude) { m_fAmplitude = fAmplitude; }
-
- inline float getAmplitudeRate(void) { return m_fAmplitudeRate; }
- inline void setAmplitudeRate(float fAmplitudeRate) { m_fAmplitudeRate = fAmplitudeRate; }
-
- /** initializes the action with amplitude, a grid and duration */
- bool initWithDuration(float duration, const CCSize& gridSize, unsigned int waves, float amplitude);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates the action with amplitude, a grid and duration */
- static CCLiquid* create(float duration, const CCSize& gridSize, unsigned int waves, float amplitude);
-protected:
- unsigned int m_nWaves;
- float m_fAmplitude;
- float m_fAmplitudeRate;
-};
-
-/** @brief CCWaves action */
-class CC_DLL CCWaves : public CCGrid3DAction
-{
-public:
- inline float getAmplitude(void) { return m_fAmplitude; }
- inline void setAmplitude(float fAmplitude) { m_fAmplitude = fAmplitude; }
-
- inline float getAmplitudeRate(void) { return m_fAmplitudeRate; }
- inline void setAmplitudeRate(float fAmplitudeRate) { m_fAmplitudeRate = fAmplitudeRate; }
-
- /** initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration */
- bool initWithDuration(float duration, const CCSize& gridSize, unsigned int waves, float amplitude, bool horizontal, bool vertical);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
-
- /** initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration */
- static CCWaves* create(float duration, const CCSize& gridSize, unsigned int waves, float amplitude, bool horizontal, bool vertical);
-protected:
- unsigned int m_nWaves;
- float m_fAmplitude;
- float m_fAmplitudeRate;
- bool m_bVertical;
- bool m_bHorizontal;
-};
-
-/** @brief CCTwirl action */
-class CC_DLL CCTwirl : public CCGrid3DAction
-{
-public:
- /** get twirl center */
- inline const CCPoint& getPosition(void) { return m_position; }
- /** set twirl center */
- void setPosition(const CCPoint& position);
-
- inline float getAmplitude(void) { return m_fAmplitude; }
- inline void setAmplitude(float fAmplitude) { m_fAmplitude = fAmplitude; }
-
- inline float getAmplitudeRate(void) { return m_fAmplitudeRate; }
- inline void setAmplitudeRate(float fAmplitudeRate) { m_fAmplitudeRate = fAmplitudeRate; }
-
- /** initializes the action with center position, number of twirls, amplitude, a grid size and duration */
- bool initWithDuration(float duration, const CCSize& gridSize, CCPoint position, unsigned int twirls, float amplitude);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates the action with center position, number of twirls, amplitude, a grid size and duration */
- static CCTwirl* create(float duration, const CCSize& gridSize, CCPoint position, unsigned int twirls, float amplitude);
-protected:
- /* twirl center */
- CCPoint m_position;
- unsigned int m_nTwirls;
- float m_fAmplitude;
- float m_fAmplitudeRate;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTION_CCGRID3D_ACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionInstant.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionInstant.h
deleted file mode 100644
index 4556e94..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionInstant.h
+++ /dev/null
@@ -1,526 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCINSTANT_ACTION_H__
-#define __CCINSTANT_ACTION_H__
-
-#include
-#include "ccTypeInfo.h"
-#include "CCAction.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
-@brief Instant actions are immediate actions. They don't have a duration like
-the CCIntervalAction actions.
-*/
-class CC_DLL CCActionInstant : public CCFiniteTimeAction //
-{
-public:
- /**
- * @js ctor
- */
- CCActionInstant();
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCActionInstant(){}
- // CCAction methods
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual bool isDone(void);
- virtual void step(float dt);
- virtual void update(float time);
- //CCFiniteTimeAction method
- virtual CCFiniteTimeAction * reverse(void);
-};
-
-/** @brief Show the node
-*/
-class CC_DLL CCShow : public CCActionInstant
-{
-public:
- /**
- * @js ctor
- * @lua NA
- */
- CCShow(){}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCShow(){}
- //super methods
- virtual void update(float time);
- virtual CCFiniteTimeAction * reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
-public:
-
- /** Allocates and initializes the action */
- static CCShow * create();
-};
-
-
-
-/**
-@brief Hide the node
-*/
-class CC_DLL CCHide : public CCActionInstant
-{
-public:
- /**
- * @js ctor
- * @lua NA
- */
- CCHide(){}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCHide(){}
- //super methods
- /**
- * @lua NA
- */
- virtual void update(float time);
- virtual CCFiniteTimeAction * reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
-public:
-
- /** Allocates and initializes the action */
- static CCHide * create();
-};
-
-/** @brief Toggles the visibility of a node
-*/
-class CC_DLL CCToggleVisibility : public CCActionInstant
-{
-public:
- /**
- * @js ctor
- */
- CCToggleVisibility(){}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCToggleVisibility(){}
- //super method
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
-public:
-
- /** Allocates and initializes the action */
- static CCToggleVisibility * create();
-};
-
-/**
- @brief Remove the node
- @js NA
- @lua NA
- */
-class CC_DLL CCRemoveSelf : public CCActionInstant
-{
-public:
- CCRemoveSelf(){}
- virtual ~CCRemoveSelf(){}
- //super methods
- virtual void update(float time);
- virtual CCFiniteTimeAction * reverse(void);
- virtual CCObject* copyWithZone(CCZone *pZone);
-public:
- /** create the action */
- static CCRemoveSelf * create(bool isNeedCleanUp = true);
- /** init the action */
- bool init(bool isNeedCleanUp);
-protected:
- bool m_bIsNeedCleanUp;
-};
-
-/**
-@brief Flips the sprite horizontally
-@since v0.99.0
-@js NA
-*/
-class CC_DLL CCFlipX : public CCActionInstant
-{
-public:
- /**
- * @js ctor
- */
- CCFlipX()
- :m_bFlipX(false)
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCFlipX(){}
-
- /** create the action */
- static CCFlipX * create(bool x);
-
- /** init the action */
- bool initWithFlipX(bool x);
- //super methods
- virtual void update(float time);
- virtual CCFiniteTimeAction * reverse(void);
- /**
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
-
-protected:
- bool m_bFlipX;
-};
-
-/**
-@brief Flips the sprite vertically
-@since v0.99.0
-@js NA
-*/
-class CC_DLL CCFlipY : public CCActionInstant
-{
-public:
- /**
- * @js ctor
- */
- CCFlipY()
- :m_bFlipY(false)
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCFlipY(){}
-
- /** create the action */
- static CCFlipY * create(bool y);
-
- /** init the action */
- bool initWithFlipY(bool y);
- //super methods
- virtual void update(float time);
- virtual CCFiniteTimeAction * reverse(void);
- /**
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
-
-protected:
- bool m_bFlipY;
-};
-
-/** @brief Places the node in a certain position
-*/
-class CC_DLL CCPlace : public CCActionInstant //
-{
-public:
- /**
- * @js ctor
- */
- CCPlace(){}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCPlace(){}
-
- /** creates a Place action with a position */
- static CCPlace * create(const CCPoint& pos);
- /** Initializes a Place action with a position */
- bool initWithPosition(const CCPoint& pos);
- //super methods
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
-protected:
- CCPoint m_tPosition;
-};
-
-/** @brief Calls a 'callback'
-*/
-class CC_DLL CCCallFunc : public CCActionInstant //
-{
-public:
- /**
- * @js ctor
- */
- CCCallFunc()
- : m_pSelectorTarget(NULL)
- , m_nScriptHandler(0)
- , m_pCallFunc(NULL)
- {
- }
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCCallFunc();
-
- /** creates the action with the callback
-
- * typedef void (CCObject::*SEL_CallFunc)();
- * @lua NA
- */
- static CCCallFunc * create(CCObject* pSelectorTarget, SEL_CallFunc selector);
-
- /** creates the action with the handler script function
- * @js NA
- */
- static CCCallFunc * create(int nHandler);
-
- /** initializes the action with the callback
-
- * typedef void (CCObject::*SEL_CallFunc)();
- * @lua NA
- */
- virtual bool initWithTarget(CCObject* pSelectorTarget);
- /** executes the callback
- * @lua NA
- */
- virtual void execute();
- /** super methods
- * @lua NA
- */
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- CCObject * copyWithZone(CCZone *pZone);
- /**
- * @lua NA
- */
- inline CCObject* getTargetCallback()
- {
- return m_pSelectorTarget;
- }
- /**
- * @lua NA
- */
- inline void setTargetCallback(CCObject* pSel)
- {
- if (pSel != m_pSelectorTarget)
- {
- CC_SAFE_RETAIN(pSel);
- CC_SAFE_RELEASE(m_pSelectorTarget);
- m_pSelectorTarget = pSel;
- }
- }
- /**
- * @lua NA
- */
- inline int getScriptHandler() { return m_nScriptHandler; };
-protected:
- /** Target that will be called */
- CCObject* m_pSelectorTarget;
-
- int m_nScriptHandler;
-
- union
- {
- SEL_CallFunc m_pCallFunc;
- SEL_CallFuncN m_pCallFuncN;
- SEL_CallFuncND m_pCallFuncND;
- SEL_CallFuncO m_pCallFuncO;
- };
-};
-
-/**
-@brief Calls a 'callback' with the node as the first argument
-N means Node
-* @js NA
-*/
-class CC_DLL CCCallFuncN : public CCCallFunc, public TypeInfo
-{
-public:
- /**
- * @js ctor
- * @lua NA
- */
- CCCallFuncN(){}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCCallFuncN(){}
- /**
- * @lua NA
- */
- virtual long getClassTypeInfo() {
- static const long id = cocos2d::getHashCodeByString(typeid(cocos2d::CCCallFunc).name());
- return id;
- }
-
- /** creates the action with the callback
-
- * typedef void (CCObject::*SEL_CallFuncN)(CCNode*);
- * @lua NA
- */
- static CCCallFuncN * create(CCObject* pSelectorTarget, SEL_CallFuncN selector);
-
- /** creates the action with the handler script function*/
- static CCCallFuncN * create(int nHandler);
-
- /** initializes the action with the callback
-
- * typedef void (CCObject::*SEL_CallFuncN)(CCNode*);
- * @lua NA
- */
- virtual bool initWithTarget(CCObject* pSelectorTarget, SEL_CallFuncN selector);
- /** super methods
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- /**
- * @lua NA
- */
- virtual void execute();
-};
-
-
-/**
-* @brief Calls a 'callback' with the node as the first argument and the 2nd argument is data
-* ND means: Node and Data. Data is void *, so it could be anything.
-* @js NA
-* @lua NA
-*/
-class CC_DLL CCCallFuncND : public CCCallFuncN
-{
-public:
- virtual long getClassTypeInfo() {
- static const long id = cocos2d::getHashCodeByString(typeid(cocos2d::CCCallFunc).name());
- return id;
- }
-
- /** creates the action with the callback and the data to pass as an argument */
- static CCCallFuncND * create(CCObject* pSelectorTarget, SEL_CallFuncND selector, void* d);
-
- /** initializes the action with the callback and the data to pass as an argument */
- virtual bool initWithTarget(CCObject* pSelectorTarget, SEL_CallFuncND selector, void* d);
- // super methods
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual void execute();
-
-protected:
- void *m_pData;
-};
-
-
-/**
-@brief Calls a 'callback' with an object as the first argument.
-O means Object.
-@since v0.99.5
-@js NA
-@lua NA
-*/
-
-class CC_DLL CCCallFuncO : public CCCallFunc, public TypeInfo
-{
-public:
- CCCallFuncO();
- virtual ~CCCallFuncO();
-
- virtual long getClassTypeInfo() {
- static const long id = cocos2d::getHashCodeByString(typeid(cocos2d::CCCallFunc).name());
- return id;
- }
-
- /** creates the action with the callback
-
- typedef void (CCObject::*SEL_CallFuncO)(CCObject*);
- */
- static CCCallFuncO * create(CCObject* pSelectorTarget, SEL_CallFuncO selector, CCObject* pObject);
-
- /** initializes the action with the callback
-
- typedef void (CCObject::*SEL_CallFuncO)(CCObject*);
- */
- virtual bool initWithTarget(CCObject* pSelectorTarget, SEL_CallFuncO selector, CCObject* pObject);
- // super methods
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual void execute();
-
- inline CCObject* getObject()
- {
- return m_pObject;
- }
-
- inline void setObject(CCObject* pObj)
- {
- if (pObj != m_pObject)
- {
- CC_SAFE_RELEASE(m_pObject);
- m_pObject = pObj;
- CC_SAFE_RETAIN(m_pObject);
- }
- }
-
-protected:
- /** object to be passed as argument */
- CCObject* m_pObject;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif //__CCINSTANT_ACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionInterval.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionInterval.h
deleted file mode 100644
index 4fae4db..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionInterval.h
+++ /dev/null
@@ -1,962 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2011 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __ACTION_CCINTERVAL_ACTION_H__
-#define __ACTION_CCINTERVAL_ACTION_H__
-
-#include "base_nodes/CCNode.h"
-#include "CCAction.h"
-#include "CCProtocols.h"
-#include "sprite_nodes/CCSpriteFrame.h"
-#include "sprite_nodes/CCAnimation.h"
-#include
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
-@brief An interval action is an action that takes place within a certain period of time.
-It has an start time, and a finish time. The finish time is the parameter
-duration plus the start time.
-
-These CCActionInterval actions have some interesting properties, like:
-- They can run normally (default)
-- They can run reversed with the reverse method
-- They can run with the time altered with the Accelerate, AccelDeccel and Speed actions.
-
-For example, you can simulate a Ping Pong effect running the action normally and
-then running it again in Reverse mode.
-
-Example:
-
-CCAction *pingPongAction = CCSequence::actions(action, action->reverse(), NULL);
-*/
-class CC_DLL CCActionInterval : public CCFiniteTimeAction
-{
-public:
- /** how many seconds had elapsed since the actions started to run. */
- inline float getElapsed(void) { return m_elapsed; }
-
- /** initializes the action */
- bool initWithDuration(float d);
-
- /** returns true if the action has finished */
- virtual bool isDone(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void step(float dt);
- virtual void startWithTarget(CCNode *pTarget);
- /** returns a reversed action */
- virtual CCActionInterval* reverse(void);
-
-public:
-
- /** creates the action */
- static CCActionInterval* create(float d);
-
-public:
- //extension in CCGridAction
- void setAmplitudeRate(float amp);
- float getAmplitudeRate(void);
-
-protected:
- float m_elapsed;
- bool m_bFirstTick;
-};
-
-/** @brief Runs actions sequentially, one after another
- */
-class CC_DLL CCSequence : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- ~CCSequence(void);
-
- /** initializes the action
- * @lua NA
- */
- bool initWithTwoActions(CCFiniteTimeAction *pActionOne, CCFiniteTimeAction *pActionTwo);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- /**
- * @lua NA
- */
- virtual void startWithTarget(CCNode *pTarget);
- /**
- * @lua NA
- */
- virtual void stop(void);
- /**
- * @lua NA
- */
- virtual void update(float t);
- virtual CCActionInterval* reverse(void);
-
-public:
-
- /** helper constructor to create an array of sequenceable actions
- * @lua NA
- */
- static CCSequence* create(CCFiniteTimeAction *pAction1, ...);
- /** helper constructor to create an array of sequenceable actions given an array
- * @js NA
- */
- static CCSequence* create(CCArray *arrayOfActions);
- /** helper constructor to create an array of sequence-able actions
- * @js NA
- * @lua NA
- */
- static CCSequence* createWithVariableList(CCFiniteTimeAction *pAction1, va_list args);
- /** creates the action
- * @js NA
- */
- static CCSequence* createWithTwoActions(CCFiniteTimeAction *pActionOne, CCFiniteTimeAction *pActionTwo);
-
-protected:
- CCFiniteTimeAction *m_pActions[2];
- float m_split;
- int m_last;
-};
-
-/** @brief Repeats an action a number of times.
- * To repeat an action forever use the CCRepeatForever action.
- */
-class CC_DLL CCRepeat : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- ~CCRepeat(void);
-
- /** initializes a CCRepeat action. Times is an unsigned integer between 1 and pow(2,30) */
- bool initWithAction(CCFiniteTimeAction *pAction, unsigned int times);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void stop(void);
- virtual void update(float dt);
- virtual bool isDone(void);
- virtual CCActionInterval* reverse(void);
-
- inline void setInnerAction(CCFiniteTimeAction *pAction)
- {
- if (m_pInnerAction != pAction)
- {
- CC_SAFE_RETAIN(pAction);
- CC_SAFE_RELEASE(m_pInnerAction);
- m_pInnerAction = pAction;
- }
- }
-
- inline CCFiniteTimeAction* getInnerAction()
- {
- return m_pInnerAction;
- }
-
-public:
-
- /** creates a CCRepeat action. Times is an unsigned integer between 1 and pow(2,30) */
- static CCRepeat* create(CCFiniteTimeAction *pAction, unsigned int times);
-protected:
- unsigned int m_uTimes;
- unsigned int m_uTotal;
- float m_fNextDt;
- bool m_bActionInstant;
- /** Inner action */
- CCFiniteTimeAction *m_pInnerAction;
-};
-
-/** @brief Repeats an action for ever.
-To repeat the an action for a limited number of times use the Repeat action.
-@warning This action can't be Sequenceable because it is not an IntervalAction
-*/
-class CC_DLL CCRepeatForever : public CCActionInterval
-{
-public:
- /**
- * @js ctor
- */
- CCRepeatForever()
- : m_pInnerAction(NULL)
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCRepeatForever();
-
- /** initializes the action */
- bool initWithAction(CCActionInterval *pAction);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual void startWithTarget(CCNode* pTarget);
- virtual void step(float dt);
- virtual bool isDone(void);
- virtual CCActionInterval* reverse(void);
-
- inline void setInnerAction(CCActionInterval *pAction)
- {
- if (m_pInnerAction != pAction)
- {
- CC_SAFE_RELEASE(m_pInnerAction);
- m_pInnerAction = pAction;
- CC_SAFE_RETAIN(m_pInnerAction);
- }
- }
-
- inline CCActionInterval* getInnerAction()
- {
- return m_pInnerAction;
- }
-
-public:
-
- /** creates the action */
- static CCRepeatForever* create(CCActionInterval *pAction);
-protected:
- /** Inner action */
- CCActionInterval *m_pInnerAction;
-};
-
-/** @brief Spawn a new action immediately
- */
-class CC_DLL CCSpawn : public CCActionInterval
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- ~CCSpawn(void);
-
- /** initializes the Spawn action with the 2 actions to spawn
- * @lua NA
- */
- bool initWithTwoActions(CCFiniteTimeAction *pAction1, CCFiniteTimeAction *pAction2);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- /**
- * @lua NA
- */
- virtual void startWithTarget(CCNode *pTarget);
- /**
- * @lua NA
- */
- virtual void stop(void);
- /**
- * @lua NA
- */
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
-
- /** helper constructor to create an array of spawned actions
- * @lua NA
- */
- static CCSpawn* create(CCFiniteTimeAction *pAction1, ...);
-
- /** helper constructor to create an array of spawned actions
- * @js NA
- * @lua NA
- */
- static CCSpawn* createWithVariableList(CCFiniteTimeAction *pAction1, va_list args);
-
- /** helper constructor to create an array of spawned actions given an array
- * @js NA
- */
- static CCSpawn* create(CCArray *arrayOfActions);
-
- /** creates the Spawn action
- * @js NA
- */
- static CCSpawn* createWithTwoActions(CCFiniteTimeAction *pAction1, CCFiniteTimeAction *pAction2);
-
-protected:
- CCFiniteTimeAction *m_pOne;
- CCFiniteTimeAction *m_pTwo;
-};
-
-/** @brief Rotates a CCNode object to a certain angle by modifying it's
- rotation attribute.
- The direction will be decided by the shortest angle.
-*/
-class CC_DLL CCRotateTo : public CCActionInterval
-{
-public:
- /** creates the action */
- static CCRotateTo* create(float fDuration, float fDeltaAngle);
- /** initializes the action */
- bool initWithDuration(float fDuration, float fDeltaAngle);
-
- /** creates the action with separate rotation angles */
- static CCRotateTo* create(float fDuration, float fDeltaAngleX, float fDeltaAngleY);
- virtual bool initWithDuration(float fDuration, float fDeltaAngleX, float fDeltaAngleY);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-protected:
- float m_fDstAngleX;
- float m_fStartAngleX;
- float m_fDiffAngleX;
-
- float m_fDstAngleY;
- float m_fStartAngleY;
- float m_fDiffAngleY;
-};
-
-/** @brief Rotates a CCNode object clockwise a number of degrees by modifying it's rotation attribute.
-*/
-class CC_DLL CCRotateBy : public CCActionInterval
-{
-public:
- /** creates the action */
- static CCRotateBy* create(float fDuration, float fDeltaAngle);
- /** initializes the action */
- bool initWithDuration(float fDuration, float fDeltaAngle);
-
- static CCRotateBy* create(float fDuration, float fDeltaAngleX, float fDeltaAngleY);
- bool initWithDuration(float fDuration, float fDeltaAngleX, float fDeltaAngleY);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-protected:
- float m_fAngleX;
- float m_fStartAngleX;
- float m_fAngleY;
- float m_fStartAngleY;
-};
-
-/** Moves a CCNode object x,y pixels by modifying it's position attribute.
- x and y are relative to the position of the object.
- Several CCMoveBy actions can be concurrently called, and the resulting
- movement will be the sum of individual movements.
- @since v2.1beta2-custom
- */
-class CC_DLL CCMoveBy : public CCActionInterval
-{
-public:
- /** initializes the action */
- bool initWithDuration(float duration, const CCPoint& deltaPosition);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual CCActionInterval* reverse(void);
- virtual void update(float time);
-
-public:
- /** creates the action */
- static CCMoveBy* create(float duration, const CCPoint& deltaPosition);
-protected:
- CCPoint m_positionDelta;
- CCPoint m_startPosition;
- CCPoint m_previousPosition;
-};
-
-/** Moves a CCNode object to the position x,y. x and y are absolute coordinates by modifying it's position attribute.
- Several CCMoveTo actions can be concurrently called, and the resulting
- movement will be the sum of individual movements.
- @since v2.1beta2-custom
- */
-class CC_DLL CCMoveTo : public CCMoveBy
-{
-public:
- /** initializes the action */
- bool initWithDuration(float duration, const CCPoint& position);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
-
-public:
- /** creates the action */
- static CCMoveTo* create(float duration, const CCPoint& position);
-protected:
- CCPoint m_endPosition;
-};
-
-/** Skews a CCNode object to given angles by modifying it's skewX and skewY attributes
-@since v1.0
-*/
-class CC_DLL CCSkewTo : public CCActionInterval
-{
-public:
- /**
- * @js ctor
- */
- CCSkewTo();
- virtual bool initWithDuration(float t, float sx, float sy);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-public:
-
- /** creates the action */
- static CCSkewTo* create(float t, float sx, float sy);
-protected:
- float m_fSkewX;
- float m_fSkewY;
- float m_fStartSkewX;
- float m_fStartSkewY;
- float m_fEndSkewX;
- float m_fEndSkewY;
- float m_fDeltaX;
- float m_fDeltaY;
-};
-
-/** Skews a CCNode object by skewX and skewY degrees
-@since v1.0
-*/
-class CC_DLL CCSkewBy : public CCSkewTo
-{
-public:
- virtual bool initWithDuration(float t, float sx, float sy);
- virtual void startWithTarget(CCNode *pTarget);
- virtual CCActionInterval* reverse(void);
-
-public:
-
- /** creates the action */
- static CCSkewBy* create(float t, float deltaSkewX, float deltaSkewY);
-};
-
-/** @brief Moves a CCNode object simulating a parabolic jump movement by modifying it's position attribute.
-*/
-class CC_DLL CCJumpBy : public CCActionInterval
-{
-public:
- /** initializes the action */
- bool initWithDuration(float duration, const CCPoint& position, float height, unsigned int jumps);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
- /** creates the action */
- static CCJumpBy* create(float duration, const CCPoint& position, float height, unsigned int jumps);
-protected:
- CCPoint m_startPosition;
- CCPoint m_delta;
- float m_height;
- unsigned int m_nJumps;
- CCPoint m_previousPos;
-};
-
-/** @brief Moves a CCNode object to a parabolic position simulating a jump movement by modifying it's position attribute.
-*/
-class CC_DLL CCJumpTo : public CCJumpBy
-{
-public:
- virtual void startWithTarget(CCNode *pTarget);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
- /** creates the action */
- static CCJumpTo* create(float duration, const CCPoint& position, float height, int jumps);
-};
-
-/** @typedef bezier configuration structure
- */
-typedef struct _ccBezierConfig {
- //! end position of the bezier
- CCPoint endPosition;
- //! Bezier control point 1
- CCPoint controlPoint_1;
- //! Bezier control point 2
- CCPoint controlPoint_2;
-} ccBezierConfig;
-
-/** @brief An action that moves the target with a cubic Bezier curve by a certain distance.
- */
-class CC_DLL CCBezierBy : public CCActionInterval
-{
-public:
- /** initializes the action with a duration and a bezier configuration
- * @lua NA
- */
- bool initWithDuration(float t, const ccBezierConfig& c);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- /**
- * @lua NA
- */
- virtual void startWithTarget(CCNode *pTarget);
- /**
- * @lua NA
- */
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
- /** creates the action with a duration and a bezier configuration
- * @code
- * when this function bound to js,the input params are changed
- * js: var create(var t, var pointTable)
- * @endcode
- */
- static CCBezierBy* create(float t, const ccBezierConfig& c);
-protected:
- ccBezierConfig m_sConfig;
- CCPoint m_startPosition;
- CCPoint m_previousPosition;
-};
-
-/** @brief An action that moves the target with a cubic Bezier curve to a destination point.
- @since v0.8.2
- */
-class CC_DLL CCBezierTo : public CCBezierBy
-{
-public:
- /**
- * @lua NA
- */
- virtual void startWithTarget(CCNode *pTarget);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action with a duration and a bezier configuration
- * @code
- * when this function bound to js,the input params are changed
- * js: var create(var t, var pointTable)
- * @endcode
- */
- static CCBezierTo* create(float t, const ccBezierConfig& c);
- /**
- * @lua NA
- */
- bool initWithDuration(float t, const ccBezierConfig &c);
-
-protected:
- ccBezierConfig m_sToConfig;
-};
-
-/** @brief Scales a CCNode object to a zoom factor by modifying it's scale attribute.
- @warning This action doesn't support "reverse"
- */
-class CC_DLL CCScaleTo : public CCActionInterval
-{
-public:
- /** initializes the action with the same scale factor for X and Y */
- bool initWithDuration(float duration, float s);
-
- /** initializes the action with and X factor and a Y factor */
- bool initWithDuration(float duration, float sx, float sy);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-public:
-
- /** creates the action with the same scale factor for X and Y */
- static CCScaleTo* create(float duration, float s);
-
- /** creates the action with and X factor and a Y factor */
- static CCScaleTo* create(float duration, float sx, float sy);
-protected:
- float m_fScaleX;
- float m_fScaleY;
- float m_fStartScaleX;
- float m_fStartScaleY;
- float m_fEndScaleX;
- float m_fEndScaleY;
- float m_fDeltaX;
- float m_fDeltaY;
-};
-
-/** @brief Scales a CCNode object a zoom factor by modifying it's scale attribute.
-*/
-class CC_DLL CCScaleBy : public CCScaleTo
-{
-public:
- virtual void startWithTarget(CCNode *pTarget);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action with the same scale factor for X and Y */
- static CCScaleBy* create(float duration, float s);
-
- /** creates the action with and X factor and a Y factor */
- static CCScaleBy* create(float duration, float sx, float sy);
-};
-
-/** @brief Blinks a CCNode object by modifying it's visible attribute
-*/
-class CC_DLL CCBlink : public CCActionInterval
-{
-public:
- /** initializes the action */
- bool initWithDuration(float duration, unsigned int uBlinks);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
-
- /** creates the action */
- static CCBlink* create(float duration, unsigned int uBlinks);
-
- virtual void startWithTarget(CCNode *pTarget);
- virtual void stop();
-
-protected:
- unsigned int m_nTimes;
- bool m_bOriginalState;
-};
-
-/** @brief Fades In an object that implements the CCRGBAProtocol protocol. It modifies the opacity from 0 to 255.
- The "reverse" of this action is FadeOut
- */
-class CC_DLL CCFadeIn : public CCActionInterval
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
- /** creates the action */
- static CCFadeIn* create(float d);
-};
-
-/** @brief Fades Out an object that implements the CCRGBAProtocol protocol. It modifies the opacity from 255 to 0.
- The "reverse" of this action is FadeIn
-*/
-class CC_DLL CCFadeOut : public CCActionInterval
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action */
- static CCFadeOut* create(float d);
-};
-
-/** @brief Fades an object that implements the CCRGBAProtocol protocol. It modifies the opacity from the current value to a custom one.
- @warning This action doesn't support "reverse"
- */
-class CC_DLL CCFadeTo : public CCActionInterval
-{
-public:
- /** initializes the action with duration and opacity */
- bool initWithDuration(float duration, GLubyte opacity);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-public:
- /** creates an action with duration and opacity */
- static CCFadeTo* create(float duration, GLubyte opacity);
-protected:
- GLubyte m_toOpacity;
- GLubyte m_fromOpacity;
-};
-
-/** @brief Tints a CCNode that implements the CCNodeRGB protocol from current tint to a custom one.
- @warning This action doesn't support "reverse"
- @since v0.7.2
-*/
-class CC_DLL CCTintTo : public CCActionInterval
-{
-public:
- /** initializes the action with duration and color */
- bool initWithDuration(float duration, GLubyte red, GLubyte green, GLubyte blue);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-public:
- /** creates an action with duration and color */
- static CCTintTo* create(float duration, GLubyte red, GLubyte green, GLubyte blue);
-protected:
- ccColor3B m_to;
- ccColor3B m_from;
-};
-
-/** @brief Tints a CCNode that implements the CCNodeRGB protocol from current tint to a custom one.
- @since v0.7.2
- */
-class CC_DLL CCTintBy : public CCActionInterval
-{
-public:
- /** initializes the action with duration and color */
- bool initWithDuration(float duration, GLshort deltaRed, GLshort deltaGreen, GLshort deltaBlue);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
- /** creates an action with duration and color */
- static CCTintBy* create(float duration, GLshort deltaRed, GLshort deltaGreen, GLshort deltaBlue);
-protected:
- GLshort m_deltaR;
- GLshort m_deltaG;
- GLshort m_deltaB;
-
- GLshort m_fromR;
- GLshort m_fromG;
- GLshort m_fromB;
-};
-
-/** @brief Delays the action a certain amount of seconds
-*/
-class CC_DLL CCDelayTime : public CCActionInterval
-{
-public:
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
-
- /** creates the action */
- static CCDelayTime* create(float d);
-};
-
-/** @brief Executes an action in reverse order, from time=duration to time=0
-
- @warning Use this action carefully. This action is not
- sequenceable. Use it as the default "reversed" method
- of your own actions, but using it outside the "reversed"
- scope is not recommended.
-*/
-class CC_DLL CCReverseTime : public CCActionInterval
-{
-public:
- /**
- * @js ctor
- */
- ~CCReverseTime(void);
- /**
- * @js NA
- * @lua NA
- */
- CCReverseTime();
-
- /** initializes the action */
- bool initWithAction(CCFiniteTimeAction *pAction);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void stop(void);
- virtual void update(float time);
- virtual CCActionInterval* reverse(void);
-
-public:
- /** creates the action */
- static CCReverseTime* create(CCFiniteTimeAction *pAction);
-protected:
- CCFiniteTimeAction *m_pOther;
-};
-
-class CCTexture2D;
-/** @brief Animates a sprite given the name of an Animation */
-class CC_DLL CCAnimate : public CCActionInterval
-{
-public:
- /**
- * @js ctor
- */
- CCAnimate();
- /**
- * @js NA
- * @lua NA
- */
- ~CCAnimate();
-
- /** initializes the action with an Animation and will restore the original frame when the animation is over */
- bool initWithAnimation(CCAnimation *pAnimation);
-
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void stop(void);
- virtual void update(float t);
- virtual CCActionInterval* reverse(void);
-
-public:
- /** creates the action with an Animation and will restore the original frame when the animation is over */
- static CCAnimate* create(CCAnimation *pAnimation);
- CC_SYNTHESIZE_RETAIN(CCAnimation*, m_pAnimation, Animation)
-protected:
- std::vector* m_pSplitTimes;
- int m_nNextFrame;
- CCSpriteFrame* m_pOrigFrame;
- unsigned int m_uExecutedLoops;
-};
-
-/** Overrides the target of an action so that it always runs on the target
- * specified at action creation rather than the one specified by runAction.
- */
-class CC_DLL CCTargetedAction : public CCActionInterval
-{
-public:
- /**
- * @js ctor
- */
- CCTargetedAction();
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCTargetedAction();
-
- /** Create an action with the specified action and forced target */
- static CCTargetedAction* create(CCNode* pTarget, CCFiniteTimeAction* pAction);
-
- /** Init an action with the specified action and forced target */
- bool initWithTarget(CCNode* pTarget, CCFiniteTimeAction* pAction);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void stop(void);
- virtual void update(float time);
-
- /** This is the target that the action will be forced to run with */
- //Robtob Modification;
- ROB_CC_SYNTHESIZE_RETAIN(CCNode*, m_pForcedTarget, ForcedTarget);
-private:
- CCFiniteTimeAction* m_pAction;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif //__ACTION_CCINTERVAL_ACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionManager.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionManager.h
deleted file mode 100644
index 93999be..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionManager.h
+++ /dev/null
@@ -1,142 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2009 Valentin Milea
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __ACTION_CCACTION_MANAGER_H__
-#define __ACTION_CCACTION_MANAGER_H__
-
-#include "CCAction.h"
-#include "cocoa/CCArray.h"
-#include "cocoa/CCObject.h"
-
-NS_CC_BEGIN
-
-class CCSet;
-
-struct _hashElement;
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
- @brief CCActionManager is a singleton that manages all the actions.
- Normally you won't need to use this singleton directly. 99% of the cases you will use the CCNode interface,
- which uses this singleton.
- But there are some cases where you might need to use this singleton.
- Examples:
- - When you want to run an action where the target is different from a CCNode.
- - When you want to pause / resume the actions
-
- @since v0.8
- */
-class CC_DLL CCActionManager : public CCObject
-{
-public:
- /**
- * @js ctor
- */
- CCActionManager(void);
- /**
- * @js NA
- * @lua NA
- */
- ~CCActionManager(void);
-
- // actions
-
- /** Adds an action with a target.
- If the target is already present, then the action will be added to the existing target.
- If the target is not present, a new instance of this target will be created either paused or not, and the action will be added to the newly created target.
- When the target is paused, the queued actions won't be 'ticked'.
- */
- void addAction(CCAction *pAction, CCNode *pTarget, bool paused);
-
- /** Removes all actions from all the targets.
- */
- void removeAllActions(void);
-
- /** Removes all actions from a certain target.
- All the actions that belongs to the target will be removed.
- */
- void removeAllActionsFromTarget(CCObject *pTarget);
-
- /** Removes an action given an action reference.
- */
- void removeAction(CCAction *pAction);
-
- /** Removes an action given its tag and the target */
- void removeActionByTag(unsigned int tag, CCObject *pTarget);
-
- /** Gets an action given its tag an a target
- @return the Action the with the given tag
- */
- CCAction* getActionByTag(unsigned int tag, CCObject *pTarget);
-
- /** Returns the numbers of actions that are running in a certain target.
- * Composable actions are counted as 1 action. Example:
- * - If you are running 1 Sequence of 7 actions, it will return 1.
- * - If you are running 7 Sequences of 2 actions, it will return 7.
- */
- unsigned int numberOfRunningActionsInTarget(CCObject *pTarget);
-
- /** Pauses the target: all running actions and newly added actions will be paused.
- */
- void pauseTarget(CCObject *pTarget);
-
- /** Resumes the target. All queued actions will be resumed.
- */
- void resumeTarget(CCObject *pTarget);
-
- /** Pauses all running actions, returning a list of targets whose actions were paused.
- */
- CCSet* pauseAllRunningActions();
-
- /** Resume a set of targets (convenience function to reverse a pauseAllRunningActions call)
- */
- void resumeTargets(CCSet *targetsToResume);
-
-protected:
- // declared in CCActionManager.m
-
- void removeActionAtIndex(unsigned int uIndex, struct _hashElement *pElement);
- void deleteHashElement(struct _hashElement *pElement);
- void actionAllocWithHashElement(struct _hashElement *pElement);
- void update(float dt);
-
-protected:
- struct _hashElement *m_pTargets;
- struct _hashElement *m_pCurrentTarget;
- bool m_bCurrentTargetSalvaged;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTION_CCACTION_MANAGER_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionPageTurn3D.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionPageTurn3D.h
deleted file mode 100644
index 92962fd..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionPageTurn3D.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2009 Sindesso Pty Ltd http://www.sindesso.com/
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __ACTION_CCPAGETURN3D_ACTION_H__
-#define __ACTION_CCPAGETURN3D_ACTION_H__
-
-#include "CCActionGrid3D.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
- @brief This action simulates a page turn from the bottom right hand corner of the screen.
- It's not much use by itself but is used by the PageTurnTransition.
-
- Based on an original paper by L Hong et al.
- http://www.parc.com/publication/1638/turning-pages-of-3d-electronic-books.html
-
- @since v0.8.2
- */
-class CC_DLL CCPageTurn3D : public CCGrid3DAction
-{
-public:
- virtual void update(float time);
-
-public:
-
- /** create the action */
- static CCPageTurn3D* create(float duration, const CCSize& gridSize);
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTION_CCPAGETURN3D_ACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionProgressTimer.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionProgressTimer.h
deleted file mode 100644
index 9cac31a..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionProgressTimer.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (C) 2010 Lam Pham
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __ACTION_CCPROGRESS_TIMER_H__
-#define __ACTION_CCPROGRESS_TIMER_H__
-
-#include "CCActionInterval.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/**
-@brief Progress to percentage
-@since v0.99.1
-*/
-class CC_DLL CCProgressTo : public CCActionInterval
-{
-public:
- /** Initializes with a duration and a percent */
- bool initWithDuration(float duration, float fPercent);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-public:
- /** Creates and initializes with a duration and a percent */
- static CCProgressTo* create(float duration, float fPercent);
-protected:
- float m_fTo;
- float m_fFrom;
-};
-
-/**
-@brief Progress from a percentage to another percentage
-@since v0.99.1
-*/
-class CC_DLL CCProgressFromTo : public CCActionInterval
-{
-public:
- /** Initializes the action with a duration, a "from" percentage and a "to" percentage */
- bool initWithDuration(float duration, float fFromPercentage, float fToPercentage);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone *pZone);
- virtual CCActionInterval* reverse(void);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-public:
-
- /** Creates and initializes the action with a duration, a "from" percentage and a "to" percentage */
- static CCProgressFromTo* create(float duration, float fFromPercentage, float fToPercentage);
-protected:
- float m_fTo;
- float m_fFrom;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTION_CCPROGRESS_TIMER_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionTiledGrid.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionTiledGrid.h
deleted file mode 100644
index ee6fe54..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionTiledGrid.h
+++ /dev/null
@@ -1,330 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2009 On-Core
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __ACTION_CCTILEDGRID_ACTION_H__
-#define __ACTION_CCTILEDGRID_ACTION_H__
-
-#include "CCActionGrid.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup actions
- * @{
- */
-
-/** @brief CCShakyTiles3D action */
-class CC_DLL CCShakyTiles3D : public CCTiledGrid3DAction
-{
-public:
- /** initializes the action with a range, whether or not to shake Z vertices, a grid size, and duration */
- virtual bool initWithDuration(float duration, const CCSize& gridSize, int nRange, bool bShakeZ);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
-
- /** creates the action with a range, whether or not to shake Z vertices, a grid size, and duration */
- static CCShakyTiles3D* create(float duration, const CCSize& gridSize, int nRange, bool bShakeZ);
-
-protected:
- int m_nRandrange;
- bool m_bShakeZ;
-};
-
-/** @brief CCShatteredTiles3D action */
-class CC_DLL CCShatteredTiles3D : public CCTiledGrid3DAction
-{
-public:
- /** initializes the action with a range, whether or not to shatter Z vertices, a grid size and duration */
- virtual bool initWithDuration(float duration, const CCSize& gridSize, int nRange, bool bShatterZ);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
-
- /** creates the action with a range, whether of not to shatter Z vertices, a grid size and duration */
- static CCShatteredTiles3D* create(float duration, const CCSize& gridSize, int nRange, bool bShatterZ);
-protected:
- int m_nRandrange;
- bool m_bOnce;
- bool m_bShatterZ;
-};
-
-struct Tile;
-/** @brief CCShuffleTiles action
- Shuffle the tiles in random order
- */
-class CC_DLL CCShuffleTiles : public CCTiledGrid3DAction
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- ~CCShuffleTiles(void);
- /** initializes the action with a random seed, the grid size and the duration */
- virtual bool initWithDuration(float duration, const CCSize& gridSize, unsigned int seed);
- void shuffle(unsigned int *pArray, unsigned int nLen);
- CCSize getDelta(const CCSize& pos);
- void placeTile(const CCPoint& pos, Tile *t);
-
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
-public:
- /** creates the action with a random seed, the grid size and the duration */
- static CCShuffleTiles* create(float duration, const CCSize& gridSize, unsigned int seed);
-protected:
- unsigned int m_nSeed;
- unsigned int m_nTilesCount;
- unsigned int* m_pTilesOrder;
- Tile* m_pTiles;
-};
-
-/** @brief CCFadeOutTRTiles action
- Fades out the tiles in a Top-Right direction
- */
-class CC_DLL CCFadeOutTRTiles : public CCTiledGrid3DAction
-{
-public:
- virtual float testFunc(const CCSize& pos, float time);
- void turnOnTile(const CCPoint& pos);
- void turnOffTile(const CCPoint& pos);
- virtual void transformTile(const CCPoint& pos, float distance);
- virtual void update(float time);
-
-public:
-
- /** creates the action with the grid size and the duration */
- static CCFadeOutTRTiles* create(float duration, const CCSize& gridSize);
-};
-
-/** @brief CCFadeOutBLTiles action.
- Fades out the tiles in a Bottom-Left direction
- */
-class CC_DLL CCFadeOutBLTiles : public CCFadeOutTRTiles
-{
-public:
- virtual float testFunc(const CCSize& pos, float time);
-
-public:
-
- /** creates the action with the grid size and the duration */
- static CCFadeOutBLTiles* create(float duration, const CCSize& gridSize);
-};
-
-/** @brief CCFadeOutUpTiles action.
- Fades out the tiles in upwards direction
- */
-class CC_DLL CCFadeOutUpTiles : public CCFadeOutTRTiles
-{
-public:
- virtual float testFunc(const CCSize& pos, float time);
- virtual void transformTile(const CCPoint& pos, float distance);
-
-public:
- /** creates the action with the grid size and the duration */
- static CCFadeOutUpTiles* create(float duration, const CCSize& gridSize);
-
-};
-
-/** @brief CCFadeOutDownTiles action.
- Fades out the tiles in downwards direction
- */
-class CC_DLL CCFadeOutDownTiles : public CCFadeOutUpTiles
-{
-public:
- virtual float testFunc(const CCSize& pos, float time);
-
-public:
-
- /** creates the action with the grid size and the duration */
- static CCFadeOutDownTiles* create(float duration, const CCSize& gridSize);
-};
-
-/** @brief CCTurnOffTiles action.
- Turn off the files in random order
- */
-class CC_DLL CCTurnOffTiles : public CCTiledGrid3DAction
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- ~CCTurnOffTiles(void);
- /** initializes the action with a random seed, the grid size and the duration */
- virtual bool initWithDuration(float duration, const CCSize& gridSize, unsigned int seed);
- void shuffle(unsigned int *pArray, unsigned int nLen);
- void turnOnTile(const CCPoint& pos);
- void turnOffTile(const CCPoint& pos);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void startWithTarget(CCNode *pTarget);
- virtual void update(float time);
-
-public:
-
- /** creates the action with the grid size and the duration */
- static CCTurnOffTiles* create(float duration, const CCSize& gridSize);
- /** creates the action with a random seed, the grid size and the duration */
- static CCTurnOffTiles* create(float duration, const CCSize& gridSize, unsigned int seed);
-
-protected:
- unsigned int m_nSeed;
- unsigned int m_nTilesCount;
- unsigned int* m_pTilesOrder;
-};
-
-/** @brief CCWavesTiles3D action. */
-class CC_DLL CCWavesTiles3D : public CCTiledGrid3DAction
-{
-public:
- /** waves amplitude */
- inline float getAmplitude(void) { return m_fAmplitude; }
- inline void setAmplitude(float fAmplitude) { m_fAmplitude = fAmplitude; }
-
- /** waves amplitude rate */
- inline float getAmplitudeRate(void) { return m_fAmplitudeRate; }
- inline void setAmplitudeRate(float fAmplitudeRate) { m_fAmplitudeRate = fAmplitudeRate; }
-
- /** initializes the action with a number of waves, the waves amplitude, the grid size and the duration */
- virtual bool initWithDuration(float duration, const CCSize& gridSize, unsigned int waves, float amplitude);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
- /** creates the action with a number of waves, the waves amplitude, the grid size and the duration */
- static CCWavesTiles3D* create(float duration, const CCSize& gridSize, unsigned int waves, float amplitude);
-protected:
- unsigned int m_nWaves;
- float m_fAmplitude;
- float m_fAmplitudeRate;
-};
-
-/** @brief CCJumpTiles3D action.
- A sin function is executed to move the tiles across the Z axis
- */
-class CC_DLL CCJumpTiles3D : public CCTiledGrid3DAction
-{
-public:
- /** amplitude of the sin*/
- inline float getAmplitude(void) { return m_fAmplitude; }
- inline void setAmplitude(float fAmplitude) { m_fAmplitude = fAmplitude; }
-
- /** amplitude rate */
- inline float getAmplitudeRate(void) { return m_fAmplitudeRate; }
- inline void setAmplitudeRate(float fAmplitudeRate) { m_fAmplitudeRate = fAmplitudeRate; }
-
- /** initializes the action with the number of jumps, the sin amplitude, the grid size and the duration */
- bool initWithDuration(float duration, const CCSize& gridSize, unsigned int numberOfJumps, float amplitude);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
-
-public:
-
- /** creates the action with the number of jumps, the sin amplitude, the grid size and the duration */
- static CCJumpTiles3D* create(float duration, const CCSize& gridSize, unsigned int numberOfJumps, float amplitude);
-protected:
- unsigned int m_nJumps;
- float m_fAmplitude;
- float m_fAmplitudeRate;
-};
-
-/** @brief CCSplitRows action */
-class CC_DLL CCSplitRows : public CCTiledGrid3DAction
-{
-public :
- /** initializes the action with the number of rows to split and the duration */
- virtual bool initWithDuration(float duration, unsigned int nRows);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
- virtual void startWithTarget(CCNode *pTarget);
-
-public:
-
- /** creates the action with the number of rows to split and the duration */
- static CCSplitRows* create(float duration, unsigned int nRows);
-protected:
- unsigned int m_nRows;
- CCSize m_winSize;
-};
-
-/** @brief CCSplitCols action */
-class CC_DLL CCSplitCols : public CCTiledGrid3DAction
-{
-public:
- /** initializes the action with the number of columns to split and the duration */
- virtual bool initWithDuration(float duration, unsigned int nCols);
- /**
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual void update(float time);
- virtual void startWithTarget(CCNode *pTarget);
-
-public:
- /** creates the action with the number of columns to split and the duration */
- static CCSplitCols* create(float duration, unsigned int nCols);
-protected:
- unsigned int m_nCols;
- CCSize m_winSize;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif // __ACTION_CCTILEDGRID_ACTION_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/actions/CCActionTween.h b/cappuccino-sdk/incl/cocos2dx/actions/CCActionTween.h
deleted file mode 100644
index e47845d..0000000
--- a/cappuccino-sdk/incl/cocos2dx/actions/CCActionTween.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright 2009 lhunath (Maarten Billemont)
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __CCACTIONTWEEN_H__
-#define __CCACTIONTWEEN_H__
-
-#include "CCActionInterval.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup actions
- * @{
- */
-
-class CC_DLL CCActionTweenDelegate
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCActionTweenDelegate() {}
- virtual void updateTweenAction(float value, const char* key) = 0;
-};
-
-/** CCActionTween
-
- CCActionTween is an action that lets you update any property of an object.
- For example, if you want to modify the "width" property of a target from 200 to 300 in 2 seconds, then:
-
- id modifyWidth = [CCActionTween actionWithDuration:2 key:@"width" from:200 to:300];
- [target runAction:modifyWidth];
-
-
- Another example: CCScaleTo action could be rewritten using CCPropertyAction:
-
- // scaleA and scaleB are equivalents
- id scaleA = [CCScaleTo actionWithDuration:2 scale:3];
- id scaleB = [CCActionTween actionWithDuration:2 key:@"scale" from:1 to:3];
-
-
- @since v0.99.2
- */
-class CC_DLL CCActionTween : public CCActionInterval
-{
-public:
- /** creates an initializes the action with the property name (key), and the from and to parameters. */
- static CCActionTween* create(float aDuration, const char* key, float from, float to);
- /** initializes the action with the property name (key), and the from and to parameters. */
- bool initWithDuration(float aDuration, const char* key, float from, float to);
-
- void startWithTarget(CCNode *pTarget);
- void update(float dt);
- CCActionInterval* reverse();
-
- std::string m_strKey;
- float m_fFrom, m_fTo;
- float m_fDelta;
-};
-
-// end of actions group
-/// @}
-
-NS_CC_END
-
-#endif /* __CCACTIONTWEEN_H__ */
-
-
diff --git a/cappuccino-sdk/incl/cocos2dx/base_nodes/CCAtlasNode.h b/cappuccino-sdk/incl/cocos2dx/base_nodes/CCAtlasNode.h
deleted file mode 100644
index 2d3aa5e..0000000
--- a/cappuccino-sdk/incl/cocos2dx/base_nodes/CCAtlasNode.h
+++ /dev/null
@@ -1,139 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCATLAS_NODE_H__
-#define __CCATLAS_NODE_H__
-
-#include "CCNode.h"
-#include "CCProtocols.h"
-#include "ccTypes.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup base_nodes
- * @{
- */
-
-class CCTextureAtlas;
-
-/** @brief CCAtlasNode is a subclass of CCNode that implements the CCRGBAProtocol and CCTextureProtocol protocol
-
-It knows how to render a TextureAtlas object.
-If you are going to render a TextureAtlas consider subclassing CCAtlasNode (or a subclass of CCAtlasNode)
-
-All features from CCNode are valid, plus the following features:
-- opacity and RGB colors
-*/
-class CC_DLL CCAtlasNode : public CCNodeRGBA, public CCTextureProtocol
-{
-protected:
-
- //! chars per row
- unsigned int m_uItemsPerRow;
- //! chars per column
- unsigned int m_uItemsPerColumn;
-
- //! width of each char
- unsigned int m_uItemWidth;
- //! height of each char
- unsigned int m_uItemHeight;
-
- ccColor3B m_tColorUnmodified;
-
- CC_PROPERTY(CCTextureAtlas*, m_pTextureAtlas, TextureAtlas);
-
- // protocol variables
- bool m_bIsOpacityModifyRGB;
-
- CC_PROPERTY(ccBlendFunc, m_tBlendFunc, BlendFunc);
-
- // quads to draw
- CC_PROPERTY(unsigned int, m_uQuadsToDraw, QuadsToDraw);
- // color uniform
- GLint m_nUniformColor;
- // This varible is only used for CCLabelAtlas FPS display. So plz don't modify its value.
- bool m_bIgnoreContentScaleFactor;
-
-public:
- /**
- * @js ctor
- */
- CCAtlasNode();
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCAtlasNode();
-
- /** creates a CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render*/
- static CCAtlasNode * create(const char* tile,unsigned int tileWidth, unsigned int tileHeight,
- unsigned int itemsToRender);
-
- /** initializes an CCAtlasNode with an Atlas file the width and height of each item and the quantity of items to render*/
- bool initWithTileFile(const char* tile, unsigned int tileWidth, unsigned int tileHeight, unsigned int itemsToRender);
-
- /** initializes an CCAtlasNode with a texture the width and height of each item measured in points and the quantity of items to render*/
- bool initWithTexture(CCTexture2D* texture, unsigned int tileWidth, unsigned int tileHeight, unsigned int itemsToRender);
-
- /** updates the Atlas (indexed vertex array).
- * Shall be overridden in subclasses
- */
- virtual void updateAtlasValues();
-
- virtual void draw(void);
-
- // CC Texture protocol
-
- /** returns the used texture*/
- virtual CCTexture2D* getTexture(void);
-
- /** sets a new texture. it will be retained*/
- virtual void setTexture(CCTexture2D *texture);
-
- virtual bool isOpacityModifyRGB();
- virtual void setOpacityModifyRGB(bool isOpacityModifyRGB);
- virtual const ccColor3B& getColor(void);
- virtual void setColor(const ccColor3B& color);
- virtual void setOpacity(GLubyte opacity);
-
-private :
- void calculateMaxItems();
- void updateBlendFunc();
- void updateOpacityModifyRGB();
-
- friend class CCDirector;
- void setIgnoreContentScaleFactor(bool bIgnoreContentScaleFactor);
-};
-
-// end of base_node group
-/// @}
-
-NS_CC_END
-
-#endif // __CCATLAS_NODE_H__
-
-
diff --git a/cappuccino-sdk/incl/cocos2dx/base_nodes/CCGLBufferedNode.h b/cappuccino-sdk/incl/cocos2dx/base_nodes/CCGLBufferedNode.h
deleted file mode 100644
index 0892639..0000000
--- a/cappuccino-sdk/incl/cocos2dx/base_nodes/CCGLBufferedNode.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************
-Copyright (c) 2013 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __CC_GL_BUFFERED_NODE__
-#define __CC_GL_BUFFERED_NODE__
-
-#include
-
-class CCGLBufferedNode
-{
-public:
- CCGLBufferedNode(void);
-
- /**
- * Load the given data into this CCNode's GL Buffer. Needed for WebGL, as it does not support client-side arrays.
- */
- void setGLBufferData(void *buf, GLuint bufSize, int slot);
- void setGLIndexData(void *buf, GLuint bufSize, int slot);
-
- // We allocate 4 buffer objs per node, and index into them as slots.
-#define BUFFER_SLOTS 4
- GLuint m_bufferObject[BUFFER_SLOTS];
- GLuint m_bufferSize[BUFFER_SLOTS];
-
- GLuint m_indexBufferObject[BUFFER_SLOTS];
- GLuint m_indexBufferSize[BUFFER_SLOTS];
-};
-#endif // __CC_GL_BUFFERED_NODE__
diff --git a/cappuccino-sdk/incl/cocos2dx/base_nodes/CCNode.h b/cappuccino-sdk/incl/cocos2dx/base_nodes/CCNode.h
deleted file mode 100644
index ce44425..0000000
--- a/cappuccino-sdk/incl/cocos2dx/base_nodes/CCNode.h
+++ /dev/null
@@ -1,1546 +0,0 @@
-/****************************************************************************
- Copyright (c) 2010-2012 cocos2d-x.org
- Copyright (c) 2008-2010 Ricardo Quesada
- Copyright (c) 2009 Valentin Milea
- Copyright (c) 2011 Zynga Inc.
-
- http://www.cocos2d-x.org
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- 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.
- ****************************************************************************/
-
-#ifndef __PLATFORM_CCNODE_H__
-#define __PLATFORM_CCNODE_H__
-
-#include "ccMacros.h"
-#include "cocoa/CCAffineTransform.h"
-#include "cocoa/CCArray.h"
-#include "CCGL.h"
-#include "shaders/ccGLStateCache.h"
-#include "shaders/CCGLProgram.h"
-#include "kazmath/kazmath.h"
-#include "script_support/CCScriptSupport.h"
-#include "CCProtocols.h"
-
-NS_CC_BEGIN
-
-class CCCamera;
-class CCGridBase;
-class CCPoint;
-class CCTouch;
-class CCAction;
-class CCRGBAProtocol;
-class CCLabelProtocol;
-class CCScheduler;
-class CCActionManager;
-class CCComponent;
-class CCDictionary;
-class CCComponentContainer;
-
-/**
- * @addtogroup base_nodes
- * @{
- */
-
-enum {
- kCCNodeTagInvalid = -1,
-};
-
-enum {
- kCCNodeOnEnter,
- kCCNodeOnExit,
- kCCNodeOnEnterTransitionDidFinish,
- kCCNodeOnExitTransitionDidStart,
- kCCNodeOnCleanup
-};
-
-/** @brief CCNode is the main element. Anything that gets drawn or contains things that get drawn is a CCNode.
- The most popular CCNodes are: CCScene, CCLayer, CCSprite, CCMenu.
-
- The main features of a CCNode are:
- - They can contain other CCNode nodes (addChild, getChildByTag, removeChild, etc)
- - They can schedule periodic callback (schedule, unschedule, etc)
- - They can execute actions (runAction, stopAction, etc)
-
- Some CCNode nodes provide extra functionality for them or their children.
-
- Subclassing a CCNode usually means (one/all) of:
- - overriding init to initialize resources and schedule callbacks
- - create callbacks to handle the advancement of time
- - overriding draw to render the node
-
- Features of CCNode:
- - position
- - scale (x, y)
- - rotation (in degrees, clockwise)
- - CCCamera (an interface to gluLookAt )
- - CCGridBase (to do mesh transformations)
- - anchor point
- - size
- - visible
- - z-order
- - openGL z position
-
- Default values:
- - rotation: 0
- - position: (x=0,y=0)
- - scale: (x=1,y=1)
- - contentSize: (x=0,y=0)
- - anchorPoint: (x=0,y=0)
-
- Limitations:
- - A CCNode is a "void" object. It doesn't have a texture
-
- Order in transformations with grid disabled
- -# The node will be translated (position)
- -# The node will be rotated (rotation)
- -# The node will be scaled (scale)
- -# The node will be moved according to the camera values (camera)
-
- Order in transformations with grid enabled
- -# The node will be translated (position)
- -# The node will be rotated (rotation)
- -# The node will be scaled (scale)
- -# The grid will capture the screen
- -# The node will be moved according to the camera values (camera)
- -# The grid will render the captured screen
-
- Camera:
- - Each node has a camera. By default it points to the center of the CCNode.
- */
-
-class CC_DLL CCNode : public CCObject
-{
-public:
- /// @{
- /// @name Constructor, Distructor and Initializers
-
- /**
- * Default constructor
- * @js ctor
- */
- CCNode(void);
-
- /**
- * Default destructor
- * @js NA
- * @lua NA
- */
- virtual ~CCNode(void);
-
- /**
- * Initializes the instance of CCNode
- * @return Whether the initialization was successful.
- */
- virtual bool init();
- /**
- * Allocates and initializes a node.
- * @return A initialized node which is marked as "autorelease".
- */
- static CCNode * create(void);
-
- /**
- * Gets the description string. It makes debugging easier.
- * @return A string terminated with '\0'
- * @js NA
- */
- const char* description(void);
-
- /// @} end of initializers
-
-
-
- /// @{
- /// @name Setters & Getters for Graphic Peroperties
-
- /**
- * Sets the Z order which stands for the drawing order, and reorder this node in its parent's children array.
- *
- * The Z order of node is relative to its "brothers": children of the same parent.
- * It's nothing to do with OpenGL's z vertex. This one only affects the draw order of nodes in cocos2d.
- * The larger number it is, the later this node will be drawn in each message loop.
- * Please refer to setVertexZ(float) for the difference.
- *
- * @param nZOrder Z order of this node.
- */
- virtual void setZOrder(int zOrder);
- /**
- * Sets the z order which stands for the drawing order
- *
- * This is an internal method. Don't call it outside the framework.
- * The difference between setZOrder(int) and _setOrder(int) is:
- * - _setZOrder(int) is a pure setter for m_nZOrder memeber variable
- * - setZOrder(int) firstly changes m_nZOrder, then recorder this node in its parent's chilren array.
- */
- virtual void _setZOrder(int z);
- /**
- * Gets the Z order of this node.
- *
- * @see setZOrder(int)
- *
- * @return The Z order.
- */
- virtual int getZOrder();
-
-
- /**
- * Sets the real OpenGL Z vertex.
- *
- * Differences between openGL Z vertex and cocos2d Z order:
- * - OpenGL Z modifies the Z vertex, and not the Z order in the relation between parent-children
- * - OpenGL Z might require to set 2D projection
- * - cocos2d Z order works OK if all the nodes uses the same openGL Z vertex. eg: vertexZ = 0
- *
- * @warning Use it at your own risk since it might break the cocos2d parent-children z order
- *
- * @param fVertexZ OpenGL Z vertex of this node.
- */
- virtual void setVertexZ(float vertexZ);
- /**
- * Gets OpenGL Z vertex of this node.
- *
- * @see setVertexZ(float)
- *
- * @return OpenGL Z vertex of this node
- */
- virtual float getVertexZ();
-
-
- /**
- * Changes the scale factor on X axis of this node
- *
- * The deafult value is 1.0 if you haven't changed it before
- *
- * @param fScaleX The scale factor on X axis.
- */
- virtual void setScaleX(float fScaleX);
- /**
- * Returns the scale factor on X axis of this node
- *
- * @see setScaleX(float)
- *
- * @return The scale factor on X axis.
- */
- virtual float getScaleX();
-
-
- /**
- * Changes the scale factor on Y axis of this node
- *
- * The Default value is 1.0 if you haven't changed it before.
- *
- * @param fScaleY The scale factor on Y axis.
- */
- virtual void setScaleY(float fScaleY);
- /**
- * Returns the scale factor on Y axis of this node
- *
- * @see setScaleY(float)
- *
- * @return The scale factor on Y axis.
- */
- virtual float getScaleY();
-
-
- /**
- * Changes both X and Y scale factor of the node.
- *
- * 1.0 is the default scale factor. It modifies the X and Y scale at the same time.
- *
- * @param scale The scale factor for both X and Y axis.
- */
- virtual void setScale(float scale);
- /**
- * Gets the scale factor of the node, when X and Y have the same scale factor.
- *
- * @warning Assert when m_fScaleX != m_fScaleY.
- * @see setScale(float)
- *
- * @return The scale factor of the node.
- */
- virtual float getScale();
-
-
- /**
- * Changes both X and Y scale factor of the node.
- *
- * 1.0 is the default scale factor. It modifies the X and Y scale at the same time.
- *
- * @param fScaleX The scale factor on X axis.
- * @param fScaleY The scale factor on Y axis.
- */
- virtual void setScale(float fScaleX,float fScaleY);
-
-
- /**
- * Changes the position (x,y) of the node in OpenGL coordinates
- *
- * Usually we use ccp(x,y) to compose CCPoint object.
- * The original point (0,0) is at the left-bottom corner of screen.
- * For example, this codesnip sets the node in the center of screen.
- * @code
- * CCSize size = CCDirector::sharedDirector()->getWinSize();
- * node->setPosition( ccp(size.width/2, size.height/2) )
- * @endcode
- *
- * @param position The position (x,y) of the node in OpenGL coordinates
- * @js NA
- */
- virtual void setPosition(const CCPoint &position);
- /**
- * Gets the position (x,y) of the node in OpenGL coordinates
- *
- * @see setPosition(const CCPoint&)
- *
- * @return The position (x,y) of the node in OpenGL coordinates
- */
- virtual const CCPoint& getPosition();
- /**
- * Sets position in a more efficient way.
- *
- * Passing two numbers (x,y) is much efficient than passing CCPoint object.
- * This method is binded to lua and javascript.
- * Passing a number is 10 times faster than passing a object from lua to c++
- *
- * @code
- * // sample code in lua
- * local pos = node::getPosition() -- returns CCPoint object from C++
- * node:setPosition(x, y) -- pass x, y coordinate to C++
- * @endcode
- *
- * @param x X coordinate for position
- * @param y Y coordinate for position
- * @js NA
- */
- virtual void setPosition(float x, float y);
- /**
- * Gets position in a more efficient way, returns two number instead of a CCPoint object
- *
- * @see setPosition(float, float)
- */
- virtual void getPosition(float* x, float* y);
- /**
- * Gets/Sets x or y coordinate individually for position.
- * These methods are used in Lua and Javascript Bindings
- */
- virtual void setPositionX(float x);
- virtual float getPositionX(void);
- virtual void setPositionY(float y);
- virtual float getPositionY(void);
-
-
- /**
- * Changes the X skew angle of the node in degrees.
- *
- * This angle describes the shear distortion in the X direction.
- * Thus, it is the angle between the Y axis and the left edge of the shape
- * The default skewX angle is 0. Positive values distort the node in a CW direction.
- *
- * @param fSkewX The X skew angle of the node in degrees.
- */
- virtual void setSkewX(float fSkewX);
- /**
- * Returns the X skew angle of the node in degrees.
- *
- * @see setSkewX(float)
- *
- * @return The X skew angle of the node in degrees.
- */
- virtual float getSkewX();
-
-
- /**
- * Changes the Y skew angle of the node in degrees.
- *
- * This angle describes the shear distortion in the Y direction.
- * Thus, it is the angle between the X axis and the bottom edge of the shape
- * The default skewY angle is 0. Positive values distort the node in a CCW direction.
- *
- * @param fSkewY The Y skew angle of the node in degrees.
- */
- virtual void setSkewY(float fSkewY);
- /**
- * Returns the Y skew angle of the node in degrees.
- *
- * @see setSkewY(float)
- *
- * @return The Y skew angle of the node in degrees.
- */
- virtual float getSkewY();
-
-
- /**
- * Sets the anchor point in percent.
- *
- * anchorPoint is the point around which all transformations and positioning manipulations take place.
- * It's like a pin in the node where it is "attached" to its parent.
- * The anchorPoint is normalized, like a percentage. (0,0) means the bottom-left corner and (1,1) means the top-right corner.
- * But you can use values higher than (1,1) and lower than (0,0) too.
- * The default anchorPoint is (0.5,0.5), so it starts in the center of the node.
- *
- * @param anchorPoint The anchor point of node.
- */
- virtual void setAnchorPoint(const CCPoint& anchorPoint);
- /**
- * Returns the anchor point in percent.
- *
- * @see setAnchorPoint(const CCPoint&)
- *
- * @return The anchor point of node.
- */
- virtual const CCPoint& getAnchorPoint();
- /**
- * Returns the anchorPoint in absolute pixels.
- *
- * @warning You can only read it. If you wish to modify it, use anchorPoint instead.
- * @see getAnchorPoint()
- *
- * @return The anchor point in absolute pixels.
- */
- virtual const CCPoint& getAnchorPointInPoints();
-
-
- /**
- * Sets the untransformed size of the node.
- *
- * The contentSize remains the same no matter the node is scaled or rotated.
- * All nodes has a size. Layer and Scene has the same size of the screen.
- *
- * @param contentSize The untransformed size of the node.
- */
- virtual void setContentSize(const CCSize& contentSize);
- /**
- * Returns the untransformed size of the node.
- *
- * @see setContentSize(const CCSize&)
- *
- * @return The untransformed size of the node.
- */
- virtual const CCSize& getContentSize() const;
-
- //Robtop Modification:
- virtual CCSize getScaledContentSize();
-
- /**
- * Sets whether the node is visible
- *
- * The default value is true, a node is default to visible
- *
- * @param visible true if the node is visible, false if the node is hidden.
- */
- virtual void setVisible(bool visible);
- /**
- * Determines if the node is visible
- *
- * @see setVisible(bool)
- *
- * @return true if the node is visible, false if the node is hidden.
- */
- virtual bool isVisible();
-
-
- /**
- * Sets the rotation (angle) of the node in degrees.
- *
- * 0 is the default rotation angle.
- * Positive values rotate node clockwise, and negative values for anti-clockwise.
- *
- * @param fRotation The roration of the node in degrees.
- */
- virtual void setRotation(float fRotation);
- /**
- * Returns the rotation of the node in degrees.
- *
- * @see setRotation(float)
- *
- * @return The rotation of the node in degrees.
- */
- virtual float getRotation();
-
-
- /**
- * Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.
- *
- * 0 is the default rotation angle.
- * Positive values rotate node clockwise, and negative values for anti-clockwise.
- *
- * @param fRotationX The X rotation in degrees which performs a horizontal rotational skew.
- */
- virtual void setRotationX(float fRotaionX);
- /**
- * Gets the X rotation (angle) of the node in degrees which performs a horizontal rotation skew.
- *
- * @see setRotationX(float)
- *
- * @return The X rotation in degrees.
- */
- virtual float getRotationX();
-
-
- /**
- * Sets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew.
- *
- * 0 is the default rotation angle.
- * Positive values rotate node clockwise, and negative values for anti-clockwise.
- *
- * @param fRotationY The Y rotation in degrees.
- */
- virtual void setRotationY(float fRotationY);
- /**
- * Gets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew.
- *
- * @see setRotationY(float)
- *
- * @return The Y rotation in degrees.
- */
- virtual float getRotationY();
-
-
- /**
- * Sets the arrival order when this node has a same ZOrder with other children.
- *
- * A node which called addChild subsequently will take a larger arrival order,
- * If two children have the same Z order, the child with larger arrival order will be drawn later.
- *
- * @warning This method is used internally for zOrder sorting, don't change this manually
- *
- * @param uOrderOfArrival The arrival order.
- */
- virtual void setOrderOfArrival(unsigned int uOrderOfArrival);
- /**
- * Returns the arrival order, indecates which children is added previously.
- *
- * @see setOrderOfArrival(unsigned int)
- *
- * @return The arrival order.
- */
- virtual unsigned int getOrderOfArrival();
-
-
- /**
- * Sets the state of OpenGL server side.
- *
- * @param glServerState The state of OpenGL server side.
- * @js NA
- */
- virtual void setGLServerState(ccGLServerState glServerState);
- /**
- * Returns the state of OpenGL server side.
- *
- * @return The state of OpenGL server side.
- * @js NA
- */
- virtual ccGLServerState getGLServerState();
-
-
- /**
- * Sets whether the anchor point will be (0,0) when you position this node.
- *
- * This is an internal method, only used by CCLayer and CCScene. Don't call it outside framework.
- * The default value is false, while in CCLayer and CCScene are true
- *
- * @param ignore true if anchor point will be (0,0) when you position this node
- * @todo This method shoud be renamed as setIgnoreAnchorPointForPosition(bool) or something with "set"
- */
- virtual void ignoreAnchorPointForPosition(bool ignore);
- /**
- * Gets whether the anchor point will be (0,0) when you position this node.
- *
- * @see ignoreAnchorPointForPosition(bool)
- *
- * @return true if the anchor point will be (0,0) when you position this node.
- */
- virtual bool isIgnoreAnchorPointForPosition();
-
- /// @} end of Setters & Getters for Graphic Peroperties
-
-
- /// @{
- /// @name Children and Parent
-
- /**
- * Adds a child to the container with z-order as 0.
- *
- * If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately.
- *
- * @param child A child node
- */
- virtual void addChild(CCNode * child);
- /**
- * Adds a child to the container with a z-order
- *
- * If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately.
- *
- * @param child A child node
- * @param zOrder Z order for drawing priority. Please refer to setZOrder(int)
- */
- virtual void addChild(CCNode * child, int zOrder);
- /**
- * Adds a child to the container with z order and tag
- *
- * If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately.
- *
- * @param child A child node
- * @param zOrder Z order for drawing priority. Please refer to setZOrder(int)
- * @param tag A interger to identify the node easily. Please refer to setTag(int)
- */
- virtual void addChild(CCNode* child, int zOrder, int tag);
- /**
- * Gets a child from the container with its tag
- *
- * @param tag An identifier to find the child node.
- *
- * @return a CCNode object whose tag equals to the input parameter
- */
- virtual CCNode * getChildByTag(int tag);
- /**
- * Return an array of children
- *
- * Composing a "tree" structure is a very important feature of CCNode
- * Here's a sample code of traversing children array:
- * @code
- * CCNode* node = NULL;
- * CCARRAY_FOREACH(parent->getChildren(), node)
- * {
- * node->setPosition(0,0);
- * }
- * @endcode
- * This sample code traverses all children nodes, and set theie position to (0,0)
- *
- * @return An array of children
- */
- virtual CCArray* getChildren();
-
- /**
- * Get the amount of children.
- *
- * @return The amount of children.
- */
- virtual unsigned int getChildrenCount(void) const;
-
- /**
- * Sets the parent node
- *
- * @param parent A pointer to the parnet node
- */
- virtual void setParent(CCNode* parent);
- /**
- * Returns a pointer to the parent node
- *
- * @see setParent(CCNode*)
- *
- * @returns A pointer to the parnet node
- */
- virtual CCNode* getParent();
-
-
- ////// REMOVES //////
-
- /**
- * Removes this node itself from its parent node with a cleanup.
- * If the node orphan, then nothing happens.
- * @see removeFromParentAndCleanup(bool)
- */
- virtual void removeFromParent();
- /**
- * Removes this node itself from its parent node.
- * If the node orphan, then nothing happens.
- * @param cleanup true if all actions and callbacks on this node should be removed, false otherwise.
- * @js removeFromParent
- */
- virtual void removeFromParentAndCleanup(bool cleanup);
-
- //Robtop Modification
- virtual void removeMeAndCleanup();
- /**
- * Removes a child from the container with a cleanup
- *
- * @see removeChild(CCNode, bool)
- *
- * @param child The child node which will be removed.
- */
- virtual void removeChild(CCNode* child);
- /**
- * Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter.
- *
- * @param child The child node which will be removed.
- * @param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise.
- */
- virtual void removeChild(CCNode* child, bool cleanup);
- /**
- * Removes a child from the container by tag value with a cleanup.
- *
- * @see removeChildByTag(int, bool)
- *
- * @param tag An interger number that identifies a child node
- */
- virtual void removeChildByTag(int tag);
- /**
- * Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter
- *
- * @param tag An interger number that identifies a child node
- * @param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise.
- */
- virtual void removeChildByTag(int tag, bool cleanup);
- /**
- * Removes all children from the container with a cleanup.
- *
- * @see removeAllChildrenWithCleanup(bool)
- */
- virtual void removeAllChildren();
- /**
- * Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter.
- *
- * @param cleanup true if all running actions on all children nodes should be cleanup, false oterwise.
- * @js removeAllChildren
- */
- virtual void removeAllChildrenWithCleanup(bool cleanup);
-
- /**
- * Reorders a child according to a new z value.
- *
- * @param child An already added child node. It MUST be already added.
- * @param zOrder Z order for drawing priority. Please refer to setZOrder(int)
- */
- virtual void reorderChild(CCNode * child, int zOrder);
-
- /**
- * Sorts the children array once before drawing, instead of every time when a child is added or reordered.
- * This appraoch can improves the performance massively.
- * @note Don't call this manually unless a child added needs to be removed in the same frame
- */
- virtual void sortAllChildren();
-
- /// @} end of Children and Parent
-
-
-
- /// @{
- /// @name Grid object for effects
-
- /**
- * Returns a grid object that is used when applying effects
- *
- * @return A CCGrid object that is used when applying effects
- * @js NA
- */
- virtual CCGridBase* getGrid();
- /**
- * Changes a grid object that is used when applying effects
- *
- * @param A CCGrid object that is used when applying effects
- */
- virtual void setGrid(CCGridBase *pGrid);
-
- /// @} end of Grid
-
-
- /// @{
- /// @name Tag & User data
-
- /**
- * Returns a tag that is used to identify the node easily.
- *
- * You can set tags to node then identify them easily.
- * @code
- * #define TAG_PLAYER 1
- * #define TAG_MONSTER 2
- * #define TAG_BOSS 3
- * // set tags
- * node1->setTag(TAG_PLAYER);
- * node2->setTag(TAG_MONSTER);
- * node3->setTag(TAG_BOSS);
- * parent->addChild(node1);
- * parent->addChild(node2);
- * parent->addChild(node3);
- * // identify by tags
- * CCNode* node = NULL;
- * CCARRAY_FOREACH(parent->getChildren(), node)
- * {
- * switch(node->getTag())
- * {
- * case TAG_PLAYER:
- * break;
- * case TAG_MONSTER:
- * break;
- * case TAG_BOSS:
- * break;
- * }
- * }
- * @endcode
- *
- * @return A interger that identifies the node.
- */
- //Robtop Modification
- //virtual int getTag() const;
- /**
- * Changes the tag that is used to identify the node easily.
- *
- * Please refer to getTag for the sample code.
- *
- * @param A interger that indentifies the node.
- */
-
- //Robtop Modification
- //virtual void setTag(int nTag);
-
- /**
- * Returns a custom user data pointer
- *
- * You can set everything in UserData pointer, a data block, a structure or an object.
- *
- * @return A custom user data pointer
- * @js NA
- */
- virtual void* getUserData();
- /**
- * Sets a custom user data pointer
- *
- * You can set everything in UserData pointer, a data block, a structure or an object, etc.
- * @warning Don't forget to release the memroy manually,
- * especially before you change this data pointer, and before this node is autoreleased.
- *
- * @return A custom user data pointer
- * @js NA
- */
- virtual void setUserData(void *pUserData);
-
- /**
- * Returns a user assigned CCObject
- *
- * Similar to userData, but instead of holding a void* it holds an object
- *
- * @return A user assigned CCObject
- * @js NA
- */
- virtual CCObject* getUserObject();
- /**
- * Returns a user assigned CCObject
- *
- * Similar to UserData, but instead of holding a void* it holds an object.
- * The UserObject will be retained once in this method,
- * and the previous UserObject (if existed) will be relese.
- * The UserObject will be released in CCNode's destructure.
- *
- * @param A user assigned CCObject
- */
- virtual void setUserObject(CCObject *pUserObject);
-
- /// @} end of Tag & User Data
-
-
- /// @{
- /// @name Shader Program
- /**
- * Return the shader program currently used for this node
- *
- * @return The shader program currelty used for this node
- */
- virtual CCGLProgram* getShaderProgram();
- /**
- * Sets the shader program for this node
- *
- * Since v2.0, each rendering node must set its shader program.
- * It should be set in initialize phase.
- * @code
- * node->setShaderProgram(CCShaderCache::sharedShaderCache()->programForKey(kCCShader_PositionTextureColor));
- * @endcode
- *
- * @param The shader program which fetchs from CCShaderCache.
- */
- virtual void setShaderProgram(CCGLProgram *pShaderProgram);
- /// @} end of Shader Program
-
-
- /**
- * Returns a camera object that lets you move the node using a gluLookAt
- *
- * @code
- * CCCamera* camera = node->getCamera();
- * camera->setEyeXYZ(0, 0, 415/2);
- * camera->setCenterXYZ(0, 0, 0);
- * @endcode
- *
- * @return A CCCamera object that lets you move the node using a gluLookAt
- */
- virtual CCCamera* getCamera();
-
- /**
- * Returns whether or not the node accepts event callbacks.
- *
- * Running means the node accept event callbacks like onEnter(), onExit(), update()
- *
- * @return Whether or not the node is running.
- */
- virtual bool isRunning();
-
-
- /// @{
- /// @name Script Bindings for lua
-
- /**
- * Registers a script function that will be called in onEnter() & onExit() seires functions.
- *
- * This handler will be removed automatically after onExit() called.
- * @code
- * -- lua sample
- * local function sceneEventHandler(eventType)
- * if eventType == kCCNodeOnEnter then
- * -- do something
- * elseif evetType == kCCNodeOnExit then
- * -- do something
- * end
- * end
- * scene::registerScriptHandler(sceneEventHandler)
- * @endcode
- *
- * @warning This method is for internal usage, don't call it manually.
- * @todo Perhaps we should rename it to get/set/removeScriptHandler acoording to the function name style.
- *
- * @param handler A number that indicates a lua function.
- */
- virtual void registerScriptHandler(int handler);
- /**
- * Unregisters a script function that will be called in onEnter() & onExit() series functions.
- *
- * @see registerScriptHandler(int)
- */
- virtual void unregisterScriptHandler(void);
- /**
- * Gets script handler for onEnter/onExit event.
- * This is an internal method. g
- * @see registerScriptHandler(int)
- *
- * @return A number that indicates a lua function.
- */
- inline int getScriptHandler() { return m_nScriptHandler; };
-
- /**
- * Schedules for lua script.
- * @js NA
- */
- void scheduleUpdateWithPriorityLua(int nHandler, int priority);
-
- /// @} end Script Bindings
-
-
- /// @{
- /// @name Event Callbacks
-
- /**
- * Event callback that is invoked every time when CCNode enters the 'stage'.
- * If the CCNode enters the 'stage' with a transition, this event is called when the transition starts.
- * During onEnter you can't access a "sister/brother" node.
- * If you override onEnter, you shall call its parent's one, e.g., CCNode::onEnter().
- * @js NA
- * @lua NA
- */
- virtual void onEnter();
-
- /** Event callback that is invoked when the CCNode enters in the 'stage'.
- * If the CCNode enters the 'stage' with a transition, this event is called when the transition finishes.
- * If you override onEnterTransitionDidFinish, you shall call its parent's one, e.g. CCNode::onEnterTransitionDidFinish()
- * @js NA
- * @lua NA
- */
- virtual void onEnterTransitionDidFinish();
-
- /**
- * Event callback that is invoked every time the CCNode leaves the 'stage'.
- * If the CCNode leaves the 'stage' with a transition, this event is called when the transition finishes.
- * During onExit you can't access a sibling node.
- * If you override onExit, you shall call its parent's one, e.g., CCNode::onExit().
- * @js NA
- * @lua NA
- */
- virtual void onExit();
-
- /**
- * Event callback that is called every time the CCNode leaves the 'stage'.
- * If the CCNode leaves the 'stage' with a transition, this callback is called when the transition starts.
- * @js NA
- * @lua NA
- */
- virtual void onExitTransitionDidStart();
-
- /// @} end of event callbacks.
-
-
- /**
- * Stops all running actions and schedulers
- */
- virtual void cleanup(void);
-
- /**
- * Override this method to draw your own node.
- * The following GL states will be enabled by default:
- * - glEnableClientState(GL_VERTEX_ARRAY);
- * - glEnableClientState(GL_COLOR_ARRAY);
- * - glEnableClientState(GL_TEXTURE_COORD_ARRAY);
- * - glEnable(GL_TEXTURE_2D);
- * AND YOU SHOULD NOT DISABLE THEM AFTER DRAWING YOUR NODE
- * But if you enable any other GL state, you should disable it after drawing your node.
- */
- virtual void draw(void);
-
- /**
- * Visits this node's children and draw them recursively.
- */
- virtual void visit(void);
-
-
- /**
- * Returns a "local" axis aligned bounding box of the node.
- * The returned box is relative only to its parent.
- *
- * @note This method returns a temporaty variable, so it can't returns const CCRect&
- * @todo Rename to getBoundingBox() in the future versions.
- *
- * @return A "local" axis aligned boudning box of the node.
- * @js getBoundingBox
- */
- CCRect boundingBox(void);
-
- /// @{
- /// @name Actions
-
- /**
- * Sets the CCActionManager object that is used by all actions.
- *
- * @warning If you set a new CCActionManager, then previously created actions will be removed.
- *
- * @param actionManager A CCActionManager object that is used by all actions.
- */
- virtual void setActionManager(CCActionManager* actionManager);
- /**
- * Gets the CCActionManager object that is used by all actions.
- * @see setActionManager(CCActionManager*)
- * @return A CCActionManager object.
- */
- virtual CCActionManager* getActionManager();
-
- /**
- * Executes an action, and returns the action that is executed.
- *
- * This node becomes the action's target. Refer to CCAction::getTarget()
- * @warning Actions don't retain their target.
- *
- * @return An Action pointer
- */
- CCAction* runAction(CCAction* action);
-
- /**
- * Stops and removes all actions from the running action list .
- */
- void stopAllActions(void);
-
- /**
- * Stops and removes an action from the running action list.
- *
- * @param An action object to be removed.
- */
- void stopAction(CCAction* action);
-
- /**
- * Removes an action from the running action list by its tag.
- *
- * @param A tag that indicates the action to be removed.
- */
- void stopActionByTag(int tag);
-
- /**
- * Gets an action from the running action list by its tag.
- *
- * @see setTag(int), getTag().
- *
- * @return The action object with the given tag.
- */
- CCAction* getActionByTag(int tag);
-
- /**
- * Returns the numbers of actions that are running plus the ones that are schedule to run (actions in actionsToAdd and actions arrays).
- *
- * Composable actions are counted as 1 action. Example:
- * If you are running 1 Sequence of 7 actions, it will return 1.
- * If you are running 7 Sequences of 2 actions, it will return 7.
- * @todo Rename to getNumberOfRunningActions()
- *
- * @return The number of actions that are running plus the ones that are schedule to run
- */
- unsigned int numberOfRunningActions(void);
-
- /// @} end of Actions
-
-
- /// @{
- /// @name Scheduler and Timer
-
- /**
- * Sets a CCScheduler object that is used to schedule all "updates" and timers.
- *
- * @warning If you set a new CCScheduler, then previously created timers/update are going to be removed.
- * @param scheduler A CCShdeduler object that is used to schedule all "update" and timers.
- * @js NA
- */
- virtual void setScheduler(CCScheduler* scheduler);
- /**
- * Gets a CCSheduler object.
- *
- * @see setScheduler(CCScheduler*)
- * @return A CCScheduler object.
- * @js NA
- */
- virtual CCScheduler* getScheduler();
-
- /**
- * Checks whether a selector is scheduled.
- *
- * @param selector A function selector
- * @return Whether the funcion selector is scheduled.
- * @js NA
- * @lua NA
- */
- bool isScheduled(SEL_SCHEDULE selector);
-
- /**
- * Schedules the "update" method.
- *
- * It will use the order number 0. This method will be called every frame.
- * Scheduled methods with a lower order value will be called before the ones that have a higher order value.
- * Only one "update" method could be scheduled per node.
- * @lua NA
- */
- void scheduleUpdate(void);
-
- /**
- * Schedules the "update" method with a custom priority.
- *
- * This selector will be called every frame.
- * Scheduled methods with a lower priority will be called before the ones that have a higher value.
- * Only one "update" selector could be scheduled per node (You can't have 2 'update' selectors).
- * @lua NA
- */
- void scheduleUpdateWithPriority(int priority);
-
- /*
- * Unschedules the "update" method.
- * @see scheduleUpdate();
- */
- void unscheduleUpdate(void);
-
- /**
- * Schedules a custom selector.
- *
- * If the selector is already scheduled, then the interval parameter will be updated without scheduling it again.
- * @code
- * // firstly, implement a schedule function
- * void MyNode::TickMe(float dt);
- * // wrap this function into a selector via schedule_selector marco.
- * this->schedule(schedule_selector(MyNode::TickMe), 0, 0, 0);
- * @endcode
- *
- * @param interval Tick interval in seconds. 0 means tick every frame. If interval = 0, it's recommended to use scheduleUpdate() instead.
- * @param repeat The selector will be excuted (repeat + 1) times, you can use kCCRepeatForever for tick infinitely.
- * @param delay The amount of time that the first tick will wait before execution.
- * @lua NA
- */
- void schedule(SEL_SCHEDULE selector, float interval, unsigned int repeat, float delay);
-
- /**
- * Schedules a custom selector with an interval time in seconds.
- * @see schedule(SEL_SCHEDULE, float, unsigned int, float)
- *
- * @param selector A function wrapped as a selector
- * @param interval Callback interval time in seconds. 0 means tick every frame,
- * @lua NA
- */
- void schedule(SEL_SCHEDULE selector, float interval);
-
- /**
- * Schedules a selector that runs only once, with a delay of 0 or larger
- * @see schedule(SEL_SCHEDULE, float, unsigned int, float)
- *
- * @param selector A function wrapped as a selector
- * @param delay The amount of time that the first tick will wait before execution.
- * @lua NA
- */
- void scheduleOnce(SEL_SCHEDULE selector, float delay);
-
- /**
- * Schedules a custom selector, the scheduled selector will be ticked every frame
- * @see schedule(SEL_SCHEDULE, float, unsigned int, float)
- *
- * @param selector A function wrapped as a selector
- * @lua NA
- */
- void schedule(SEL_SCHEDULE selector);
-
- /**
- * Unschedules a custom selector.
- * @see schedule(SEL_SCHEDULE, float, unsigned int, float)
- *
- * @param selector A function wrapped as a selector
- * @lua NA
- */
- void unschedule(SEL_SCHEDULE selector);
-
- /**
- * Unschedule all scheduled selectors: custom selectors, and the 'update' selector.
- * Actions are not affected by this method.
- */
- void unscheduleAllSelectors(void);
-
- /**
- * Resumes all scheduled selectors and actions.
- * This method is called internally by onEnter
- * @js NA
- * @lua NA
- */
- void resumeSchedulerAndActions(void);
- /**
- * Pauses all scheduled selectors and actions.
- * This method is called internally by onExit
- * @js NA
- * @lua NA
- */
- void pauseSchedulerAndActions(void);
-
- /*
- * Update method will be called automatically every frame if "scheduleUpdate" is called, and the node is "live"
- */
- virtual void update(float delta);
-
- /// @} end of Scheduler and Timer
-
- /// @{
- /// @name Transformations
-
- /**
- * Performs OpenGL view-matrix transformation based on position, scale, rotation and other attributes.
- */
- void transform(void);
- /**
- * Performs OpenGL view-matrix transformation of it's ancestors.
- * Generally the ancestors are already transformed, but in certain cases (eg: attaching a FBO)
- * It's necessary to transform the ancestors again.
- */
- void transformAncestors(void);
- /**
- * Calls children's updateTransform() method recursively.
- *
- * This method is moved from CCSprite, so it's no longer specific to CCSprite.
- * As the result, you apply CCSpriteBatchNode's optimization on your customed CCNode.
- * e.g., batchNode->addChild(myCustomNode), while you can only addChild(sprite) before.
- */
- virtual void updateTransform(void);
-
- /**
- * Returns the matrix that transform the node's (local) space coordinates into the parent's space coordinates.
- * The matrix is in Pixels.
- */
-
- //Robtop Modification
- virtual const CCAffineTransform nodeToParentTransform(void);
-
- /**
- * Returns the matrix that transform parent's space coordinates to the node's (local) space coordinates.
- * The matrix is in Pixels.
- */
- virtual const CCAffineTransform parentToNodeTransform(void);
-
- /**
- * Returns the world affine transform matrix. The matrix is in Pixels.
- */
- virtual CCAffineTransform nodeToWorldTransform(void);
-
- /**
- * Returns the inverse world affine transform matrix. The matrix is in Pixels.
- */
- virtual CCAffineTransform worldToNodeTransform(void);
-
- /// @} end of Transformations
-
-
- /// @{
- /// @name Coordinate Converters
-
- /**
- * Converts a Point to node (local) space coordinates. The result is in Points.
- */
- CCPoint convertToNodeSpace(const CCPoint& worldPoint);
-
- /**
- * Converts a Point to world space coordinates. The result is in Points.
- */
- CCPoint convertToWorldSpace(const CCPoint& nodePoint);
-
- /**
- * Converts a Point to node (local) space coordinates. The result is in Points.
- * treating the returned/received node point as anchor relative.
- */
- CCPoint convertToNodeSpaceAR(const CCPoint& worldPoint);
-
- /**
- * Converts a local Point to world space coordinates.The result is in Points.
- * treating the returned/received node point as anchor relative.
- */
- CCPoint convertToWorldSpaceAR(const CCPoint& nodePoint);
-
- /**
- * convenience methods which take a CCTouch instead of CCPoint
- */
- CCPoint convertTouchToNodeSpace(CCTouch * touch);
-
- /**
- * converts a CCTouch (world coordinates) into a local coordinate. This method is AR (Anchor Relative).
- */
- CCPoint convertTouchToNodeSpaceAR(CCTouch * touch);
-
- /**
- * Sets the additional transform.
- *
- * @note The additional transform will be concatenated at the end of nodeToParentTransform.
- * It could be used to simulate `parent-child` relationship between two nodes (e.g. one is in BatchNode, another isn't).
- * @code
- // create a batchNode
- CCSpriteBatchNode* batch= CCSpriteBatchNode::create("Icon-114.png");
- this->addChild(batch);
-
- // create two sprites, spriteA will be added to batchNode, they are using different textures.
- CCSprite* spriteA = CCSprite::createWithTexture(batch->getTexture());
- CCSprite* spriteB = CCSprite::create("Icon-72.png");
-
- batch->addChild(spriteA);
-
- // We can't make spriteB as spriteA's child since they use different textures. So just add it to layer.
- // But we want to simulate `parent-child` relationship for these two node.
- this->addChild(spriteB);
-
- //position
- spriteA->setPosition(ccp(200, 200));
-
- // Gets the spriteA's transform.
- CCAffineTransform t = spriteA->nodeToParentTransform();
-
- // Sets the additional transform to spriteB, spriteB's postion will based on its pseudo parent i.e. spriteA.
- spriteB->setAdditionalTransform(t);
-
- //scale
- spriteA->setScale(2);
-
- // Gets the spriteA's transform.
- t = spriteA->nodeToParentTransform();
-
- // Sets the additional transform to spriteB, spriteB's scale will based on its pseudo parent i.e. spriteA.
- spriteB->setAdditionalTransform(t);
-
- //rotation
- spriteA->setRotation(20);
-
- // Gets the spriteA's transform.
- t = spriteA->nodeToParentTransform();
-
- // Sets the additional transform to spriteB, spriteB's rotation will based on its pseudo parent i.e. spriteA.
- spriteB->setAdditionalTransform(t);
- * @endcode
- */
- void setAdditionalTransform(const CCAffineTransform& additionalTransform);
-
- /// @} end of Coordinate Converters
-
- /// @{
- /// @name component functions
- /**
- * gets a component by its name
- */
- CCComponent* getComponent(const char *pName) const;
-
- /**
- * adds a component
- */
- virtual bool addComponent(CCComponent *pComponent);
-
- /**
- * removes a component by its name
- */
- virtual bool removeComponent(const char *pName);
-
- /**
- * removes a component by its pointer
- */
- virtual bool removeComponent(CCComponent *pComponent);
-
- /**
- * removes all components
- */
- virtual void removeAllComponents();
- /// @} end of component functions
-
- //Robtop Modification
- virtual void updateTweenAction(float, char const*);
-private:
- /// lazy allocs
- void childrenAlloc(void);
-
- /// helper that reorder a child
- void insertChild(CCNode* child, int z);
-
- /// Removes a child, call child->onExit(), do cleanup, remove it from children array.
- void detachChild(CCNode *child, bool doCleanup);
-
- /** Convert cocos2d coordinates to UI windows coordinate.
- * @js NA
- * @lua NA
- */
- CCPoint convertToWindowSpace(const CCPoint& nodePoint);
-
-protected:
- float m_fRotationX; ///< rotation angle on x-axis
- float m_fRotationY; ///< rotation angle on y-axis
-
- float m_fScaleX; ///< scaling factor on x-axis
- float m_fScaleY; ///< scaling factor on y-axis
-
- float m_fVertexZ; ///< OpenGL real Z vertex
-
- CCPoint m_obPosition; ///< position of the node
-
- float m_fSkewX; ///< skew angle on x-axis
- float m_fSkewY; ///< skew angle on y-axis
-
- CCPoint m_obAnchorPointInPoints; ///< anchor point in points
- CCPoint m_obAnchorPoint; ///< anchor point normalized (NOT in points)
-
- CCSize m_obContentSize; ///< untransformed size of the node
-
-
- CCAffineTransform m_sAdditionalTransform; ///< transform
- CCAffineTransform m_sTransform; ///< transform
- CCAffineTransform m_sInverse; ///< transform
-
- CCCamera *m_pCamera; ///< a camera
-
- CCGridBase *m_pGrid; ///< a grid
-
- int m_nZOrder; ///< z-order value that affects the draw order
-
- CCArray *m_pChildren; ///< array of children nodes
- CCNode *m_pParent; ///< weak reference to parent node
-
- //int m_nTag; ///< a tag. Can be any number you assigned just to identify this node
-
- void *m_pUserData; ///< A user assingned void pointer, Can be point to any cpp object
- CCObject *m_pUserObject; ///< A user assigned CCObject
-
- CCGLProgram *m_pShaderProgram; ///< OpenGL shader
-
- ccGLServerState m_eGLServerState; ///< OpenGL servier side state
-
- unsigned int m_uOrderOfArrival; ///< used to preserve sequence while sorting children with the same zOrder
-
- CCScheduler *m_pScheduler; ///< scheduler used to schedule timers and updates
-
- CCActionManager *m_pActionManager; ///< a pointer to ActionManager singleton, which is used to handle all the actions
-
- bool m_bRunning; ///< is running
-
- bool m_bTransformDirty; ///< transform dirty flag
- bool m_bInverseDirty; ///< transform dirty flag
- bool m_bAdditionalTransformDirty; ///< The flag to check whether the additional transform is dirty
- bool m_bVisible; ///< is this node visible
-
- bool m_bIgnoreAnchorPointForPosition; ///< true if the Anchor Point will be (0,0) when you position the CCNode, false otherwise.
- ///< Used by CCLayer and CCScene.
-
- bool m_bReorderChildDirty; ///< children order dirty flag
-
- int m_nScriptHandler; ///< script handler for onEnter() & onExit(), used in Javascript binding and Lua binding.
- int m_nUpdateScriptHandler; ///< script handler for update() callback per frame, which is invoked from lua & javascript.
- ccScriptType m_eScriptType; ///< type of script binding, lua or javascript
-
- CCComponentContainer *m_pComponentContainer; ///< Dictionary of components
-
-};
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
-//#pragma mark - CCNodeRGBA
-#endif
-
-/** CCNodeRGBA is a subclass of CCNode that implements the CCRGBAProtocol protocol.
-
- All features from CCNode are valid, plus the following new features:
- - opacity
- - RGB colors
-
- Opacity/Color propagates into children that conform to the CCRGBAProtocol if cascadeOpacity/cascadeColor is enabled.
- @since v2.1
- */
-class CC_DLL CCNodeRGBA : public CCNode, public CCRGBAProtocol
-{
-public:
- /**
- * @js ctor
- */
- CCNodeRGBA();
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCNodeRGBA();
-
- virtual bool init();
-
- /**
- * Allocates and initializes a nodergba.
- * @return A initialized node which is marked as "autorelease".
- */
- static CCNodeRGBA * create(void);
-
- virtual GLubyte getOpacity();
- virtual GLubyte getDisplayedOpacity();
- virtual void setOpacity(GLubyte opacity);
- virtual void updateDisplayedOpacity(GLubyte parentOpacity);
- virtual bool isCascadeOpacityEnabled();
- virtual void setCascadeOpacityEnabled(bool cascadeOpacityEnabled);
-
- virtual const ccColor3B& getColor(void);
- virtual const ccColor3B& getDisplayedColor();
- virtual void setColor(const ccColor3B& color);
- virtual void updateDisplayedColor(const ccColor3B& parentColor);
- virtual bool isCascadeColorEnabled();
- virtual void setCascadeColorEnabled(bool cascadeColorEnabled);
-
- virtual void setOpacityModifyRGB(bool bValue) {CC_UNUSED_PARAM(bValue);};
- virtual bool isOpacityModifyRGB() { return false; };
-
-protected:
- GLubyte _displayedOpacity;
- GLubyte _realOpacity;
- ccColor3B _displayedColor;
- ccColor3B _realColor;
- bool _cascadeColorEnabled;
- bool _cascadeOpacityEnabled;
-};
-
-// end of base_node group
-/// @}
-
-NS_CC_END
-
-#endif // __PLATFORM_CCNODE_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/ccFPSImages.c b/cappuccino-sdk/incl/cocos2dx/ccFPSImages.c
deleted file mode 100644
index 045980e..0000000
--- a/cappuccino-sdk/incl/cocos2dx/ccFPSImages.c
+++ /dev/null
@@ -1,613 +0,0 @@
-/*
- * cocos2d for iPhone: http://www.cocos2d-iphone.org
- *
- * Copyright (c) 2012 Zynga Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * 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 "ccFPSImages.h"
-
-unsigned char cc_fps_images_png[] = {
- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
- 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20,
- 0x08, 0x06, 0x00, 0x00, 0x00, 0xfd, 0xa9, 0xa6, 0xe4, 0x00, 0x00, 0x0a,
- 0x43, 0x69, 0x43, 0x43, 0x50, 0x49, 0x43, 0x43, 0x20, 0x70, 0x72, 0x6f,
- 0x66, 0x69, 0x6c, 0x65, 0x00, 0x00, 0x78, 0xda, 0x9d, 0x53, 0x77, 0x58,
- 0x93, 0xf7, 0x16, 0x3e, 0xdf, 0xf7, 0x65, 0x0f, 0x56, 0x42, 0xd8, 0xf0,
- 0xb1, 0x97, 0x6c, 0x81, 0x00, 0x22, 0x23, 0xac, 0x08, 0xc8, 0x10, 0x59,
- 0xa2, 0x10, 0x92, 0x00, 0x61, 0x84, 0x10, 0x12, 0x40, 0xc5, 0x85, 0x88,
- 0x0a, 0x56, 0x14, 0x15, 0x11, 0x9c, 0x48, 0x55, 0xc4, 0x82, 0xd5, 0x0a,
- 0x48, 0x9d, 0x88, 0xe2, 0xa0, 0x28, 0xb8, 0x67, 0x41, 0x8a, 0x88, 0x5a,
- 0x8b, 0x55, 0x5c, 0x38, 0xee, 0x1f, 0xdc, 0xa7, 0xb5, 0x7d, 0x7a, 0xef,
- 0xed, 0xed, 0xfb, 0xd7, 0xfb, 0xbc, 0xe7, 0x9c, 0xe7, 0xfc, 0xce, 0x79,
- 0xcf, 0x0f, 0x80, 0x11, 0x12, 0x26, 0x91, 0xe6, 0xa2, 0x6a, 0x00, 0x39,
- 0x52, 0x85, 0x3c, 0x3a, 0xd8, 0x1f, 0x8f, 0x4f, 0x48, 0xc4, 0xc9, 0xbd,
- 0x80, 0x02, 0x15, 0x48, 0xe0, 0x04, 0x20, 0x10, 0xe6, 0xcb, 0xc2, 0x67,
- 0x05, 0xc5, 0x00, 0x00, 0xf0, 0x03, 0x79, 0x78, 0x7e, 0x74, 0xb0, 0x3f,
- 0xfc, 0x01, 0xaf, 0x6f, 0x00, 0x02, 0x00, 0x70, 0xd5, 0x2e, 0x24, 0x12,
- 0xc7, 0xe1, 0xff, 0x83, 0xba, 0x50, 0x26, 0x57, 0x00, 0x20, 0x91, 0x00,
- 0xe0, 0x22, 0x12, 0xe7, 0x0b, 0x01, 0x90, 0x52, 0x00, 0xc8, 0x2e, 0x54,
- 0xc8, 0x14, 0x00, 0xc8, 0x18, 0x00, 0xb0, 0x53, 0xb3, 0x64, 0x0a, 0x00,
- 0x94, 0x00, 0x00, 0x6c, 0x79, 0x7c, 0x42, 0x22, 0x00, 0xaa, 0x0d, 0x00,
- 0xec, 0xf4, 0x49, 0x3e, 0x05, 0x00, 0xd8, 0xa9, 0x93, 0xdc, 0x17, 0x00,
- 0xd8, 0xa2, 0x1c, 0xa9, 0x08, 0x00, 0x8d, 0x01, 0x00, 0x99, 0x28, 0x47,
- 0x24, 0x02, 0x40, 0xbb, 0x00, 0x60, 0x55, 0x81, 0x52, 0x2c, 0x02, 0xc0,
- 0xc2, 0x00, 0xa0, 0xac, 0x40, 0x22, 0x2e, 0x04, 0xc0, 0xae, 0x01, 0x80,
- 0x59, 0xb6, 0x32, 0x47, 0x02, 0x80, 0xbd, 0x05, 0x00, 0x76, 0x8e, 0x58,
- 0x90, 0x0f, 0x40, 0x60, 0x00, 0x80, 0x99, 0x42, 0x2c, 0xcc, 0x00, 0x20,
- 0x38, 0x02, 0x00, 0x43, 0x1e, 0x13, 0xcd, 0x03, 0x20, 0x4c, 0x03, 0xa0,
- 0x30, 0xd2, 0xbf, 0xe0, 0xa9, 0x5f, 0x70, 0x85, 0xb8, 0x48, 0x01, 0x00,
- 0xc0, 0xcb, 0x95, 0xcd, 0x97, 0x4b, 0xd2, 0x33, 0x14, 0xb8, 0x95, 0xd0,
- 0x1a, 0x77, 0xf2, 0xf0, 0xe0, 0xe2, 0x21, 0xe2, 0xc2, 0x6c, 0xb1, 0x42,
- 0x61, 0x17, 0x29, 0x10, 0x66, 0x09, 0xe4, 0x22, 0x9c, 0x97, 0x9b, 0x23,
- 0x13, 0x48, 0xe7, 0x03, 0x4c, 0xce, 0x0c, 0x00, 0x00, 0x1a, 0xf9, 0xd1,
- 0xc1, 0xfe, 0x38, 0x3f, 0x90, 0xe7, 0xe6, 0xe4, 0xe1, 0xe6, 0x66, 0xe7,
- 0x6c, 0xef, 0xf4, 0xc5, 0xa2, 0xfe, 0x6b, 0xf0, 0x6f, 0x22, 0x3e, 0x21,
- 0xf1, 0xdf, 0xfe, 0xbc, 0x8c, 0x02, 0x04, 0x00, 0x10, 0x4e, 0xcf, 0xef,
- 0xda, 0x5f, 0xe5, 0xe5, 0xd6, 0x03, 0x70, 0xc7, 0x01, 0xb0, 0x75, 0xbf,
- 0x6b, 0xa9, 0x5b, 0x00, 0xda, 0x56, 0x00, 0x68, 0xdf, 0xf9, 0x5d, 0x33,
- 0xdb, 0x09, 0xa0, 0x5a, 0x0a, 0xd0, 0x7a, 0xf9, 0x8b, 0x79, 0x38, 0xfc,
- 0x40, 0x1e, 0x9e, 0xa1, 0x50, 0xc8, 0x3c, 0x1d, 0x1c, 0x0a, 0x0b, 0x0b,
- 0xed, 0x25, 0x62, 0xa1, 0xbd, 0x30, 0xe3, 0x8b, 0x3e, 0xff, 0x33, 0xe1,
- 0x6f, 0xe0, 0x8b, 0x7e, 0xf6, 0xfc, 0x40, 0x1e, 0xfe, 0xdb, 0x7a, 0xf0,
- 0x00, 0x71, 0x9a, 0x40, 0x99, 0xad, 0xc0, 0xa3, 0x83, 0xfd, 0x71, 0x61,
- 0x6e, 0x76, 0xae, 0x52, 0x8e, 0xe7, 0xcb, 0x04, 0x42, 0x31, 0x6e, 0xf7,
- 0xe7, 0x23, 0xfe, 0xc7, 0x85, 0x7f, 0xfd, 0x8e, 0x29, 0xd1, 0xe2, 0x34,
- 0xb1, 0x5c, 0x2c, 0x15, 0x8a, 0xf1, 0x58, 0x89, 0xb8, 0x50, 0x22, 0x4d,
- 0xc7, 0x79, 0xb9, 0x52, 0x91, 0x44, 0x21, 0xc9, 0x95, 0xe2, 0x12, 0xe9,
- 0x7f, 0x32, 0xf1, 0x1f, 0x96, 0xfd, 0x09, 0x93, 0x77, 0x0d, 0x00, 0xac,
- 0x86, 0x4f, 0xc0, 0x4e, 0xb6, 0x07, 0xb5, 0xcb, 0x6c, 0xc0, 0x7e, 0xee,
- 0x01, 0x02, 0x8b, 0x0e, 0x58, 0xd2, 0x76, 0x00, 0x40, 0x7e, 0xf3, 0x2d,
- 0x8c, 0x1a, 0x0b, 0x91, 0x00, 0x10, 0x67, 0x34, 0x32, 0x79, 0xf7, 0x00,
- 0x00, 0x93, 0xbf, 0xf9, 0x8f, 0x40, 0x2b, 0x01, 0x00, 0xcd, 0x97, 0xa4,
- 0xe3, 0x00, 0x00, 0xbc, 0xe8, 0x18, 0x5c, 0xa8, 0x94, 0x17, 0x4c, 0xc6,
- 0x08, 0x00, 0x00, 0x44, 0xa0, 0x81, 0x2a, 0xb0, 0x41, 0x07, 0x0c, 0xc1,
- 0x14, 0xac, 0xc0, 0x0e, 0x9c, 0xc1, 0x1d, 0xbc, 0xc0, 0x17, 0x02, 0x61,
- 0x06, 0x44, 0x40, 0x0c, 0x24, 0xc0, 0x3c, 0x10, 0x42, 0x06, 0xe4, 0x80,
- 0x1c, 0x0a, 0xa1, 0x18, 0x96, 0x41, 0x19, 0x54, 0xc0, 0x3a, 0xd8, 0x04,
- 0xb5, 0xb0, 0x03, 0x1a, 0xa0, 0x11, 0x9a, 0xe1, 0x10, 0xb4, 0xc1, 0x31,
- 0x38, 0x0d, 0xe7, 0xe0, 0x12, 0x5c, 0x81, 0xeb, 0x70, 0x17, 0x06, 0x60,
- 0x18, 0x9e, 0xc2, 0x18, 0xbc, 0x86, 0x09, 0x04, 0x41, 0xc8, 0x08, 0x13,
- 0x61, 0x21, 0x3a, 0x88, 0x11, 0x62, 0x8e, 0xd8, 0x22, 0xce, 0x08, 0x17,
- 0x99, 0x8e, 0x04, 0x22, 0x61, 0x48, 0x34, 0x92, 0x80, 0xa4, 0x20, 0xe9,
- 0x88, 0x14, 0x51, 0x22, 0xc5, 0xc8, 0x72, 0xa4, 0x02, 0xa9, 0x42, 0x6a,
- 0x91, 0x5d, 0x48, 0x23, 0xf2, 0x2d, 0x72, 0x14, 0x39, 0x8d, 0x5c, 0x40,
- 0xfa, 0x90, 0xdb, 0xc8, 0x20, 0x32, 0x8a, 0xfc, 0x8a, 0xbc, 0x47, 0x31,
- 0x94, 0x81, 0xb2, 0x51, 0x03, 0xd4, 0x02, 0x75, 0x40, 0xb9, 0xa8, 0x1f,
- 0x1a, 0x8a, 0xc6, 0xa0, 0x73, 0xd1, 0x74, 0x34, 0x0f, 0x5d, 0x80, 0x96,
- 0xa2, 0x6b, 0xd1, 0x1a, 0xb4, 0x1e, 0x3d, 0x80, 0xb6, 0xa2, 0xa7, 0xd1,
- 0x4b, 0xe8, 0x75, 0x74, 0x00, 0x7d, 0x8a, 0x8e, 0x63, 0x80, 0xd1, 0x31,
- 0x0e, 0x66, 0x8c, 0xd9, 0x61, 0x5c, 0x8c, 0x87, 0x45, 0x60, 0x89, 0x58,
- 0x1a, 0x26, 0xc7, 0x16, 0x63, 0xe5, 0x58, 0x35, 0x56, 0x8f, 0x35, 0x63,
- 0x1d, 0x58, 0x37, 0x76, 0x15, 0x1b, 0xc0, 0x9e, 0x61, 0xef, 0x08, 0x24,
- 0x02, 0x8b, 0x80, 0x13, 0xec, 0x08, 0x5e, 0x84, 0x10, 0xc2, 0x6c, 0x82,
- 0x90, 0x90, 0x47, 0x58, 0x4c, 0x58, 0x43, 0xa8, 0x25, 0xec, 0x23, 0xb4,
- 0x12, 0xba, 0x08, 0x57, 0x09, 0x83, 0x84, 0x31, 0xc2, 0x27, 0x22, 0x93,
- 0xa8, 0x4f, 0xb4, 0x25, 0x7a, 0x12, 0xf9, 0xc4, 0x78, 0x62, 0x3a, 0xb1,
- 0x90, 0x58, 0x46, 0xac, 0x26, 0xee, 0x21, 0x1e, 0x21, 0x9e, 0x25, 0x5e,
- 0x27, 0x0e, 0x13, 0x5f, 0x93, 0x48, 0x24, 0x0e, 0xc9, 0x92, 0xe4, 0x4e,
- 0x0a, 0x21, 0x25, 0x90, 0x32, 0x49, 0x0b, 0x49, 0x6b, 0x48, 0xdb, 0x48,
- 0x2d, 0xa4, 0x53, 0xa4, 0x3e, 0xd2, 0x10, 0x69, 0x9c, 0x4c, 0x26, 0xeb,
- 0x90, 0x6d, 0xc9, 0xde, 0xe4, 0x08, 0xb2, 0x80, 0xac, 0x20, 0x97, 0x91,
- 0xb7, 0x90, 0x0f, 0x90, 0x4f, 0x92, 0xfb, 0xc9, 0xc3, 0xe4, 0xb7, 0x14,
- 0x3a, 0xc5, 0x88, 0xe2, 0x4c, 0x09, 0xa2, 0x24, 0x52, 0xa4, 0x94, 0x12,
- 0x4a, 0x35, 0x65, 0x3f, 0xe5, 0x04, 0xa5, 0x9f, 0x32, 0x42, 0x99, 0xa0,
- 0xaa, 0x51, 0xcd, 0xa9, 0x9e, 0xd4, 0x08, 0xaa, 0x88, 0x3a, 0x9f, 0x5a,
- 0x49, 0x6d, 0xa0, 0x76, 0x50, 0x2f, 0x53, 0x87, 0xa9, 0x13, 0x34, 0x75,
- 0x9a, 0x25, 0xcd, 0x9b, 0x16, 0x43, 0xcb, 0xa4, 0x2d, 0xa3, 0xd5, 0xd0,
- 0x9a, 0x69, 0x67, 0x69, 0xf7, 0x68, 0x2f, 0xe9, 0x74, 0xba, 0x09, 0xdd,
- 0x83, 0x1e, 0x45, 0x97, 0xd0, 0x97, 0xd2, 0x6b, 0xe8, 0x07, 0xe9, 0xe7,
- 0xe9, 0x83, 0xf4, 0x77, 0x0c, 0x0d, 0x86, 0x0d, 0x83, 0xc7, 0x48, 0x62,
- 0x28, 0x19, 0x6b, 0x19, 0x7b, 0x19, 0xa7, 0x18, 0xb7, 0x19, 0x2f, 0x99,
- 0x4c, 0xa6, 0x05, 0xd3, 0x97, 0x99, 0xc8, 0x54, 0x30, 0xd7, 0x32, 0x1b,
- 0x99, 0x67, 0x98, 0x0f, 0x98, 0x6f, 0x55, 0x58, 0x2a, 0xf6, 0x2a, 0x7c,
- 0x15, 0x91, 0xca, 0x12, 0x95, 0x3a, 0x95, 0x56, 0x95, 0x7e, 0x95, 0xe7,
- 0xaa, 0x54, 0x55, 0x73, 0x55, 0x3f, 0xd5, 0x79, 0xaa, 0x0b, 0x54, 0xab,
- 0x55, 0x0f, 0xab, 0x5e, 0x56, 0x7d, 0xa6, 0x46, 0x55, 0xb3, 0x50, 0xe3,
- 0xa9, 0x09, 0xd4, 0x16, 0xab, 0xd5, 0xa9, 0x1d, 0x55, 0xbb, 0xa9, 0x36,
- 0xae, 0xce, 0x52, 0x77, 0x52, 0x8f, 0x50, 0xcf, 0x51, 0x5f, 0xa3, 0xbe,
- 0x5f, 0xfd, 0x82, 0xfa, 0x63, 0x0d, 0xb2, 0x86, 0x85, 0x46, 0xa0, 0x86,
- 0x48, 0xa3, 0x54, 0x63, 0xb7, 0xc6, 0x19, 0x8d, 0x21, 0x16, 0xc6, 0x32,
- 0x65, 0xf1, 0x58, 0x42, 0xd6, 0x72, 0x56, 0x03, 0xeb, 0x2c, 0x6b, 0x98,
- 0x4d, 0x62, 0x5b, 0xb2, 0xf9, 0xec, 0x4c, 0x76, 0x05, 0xfb, 0x1b, 0x76,
- 0x2f, 0x7b, 0x4c, 0x53, 0x43, 0x73, 0xaa, 0x66, 0xac, 0x66, 0x91, 0x66,
- 0x9d, 0xe6, 0x71, 0xcd, 0x01, 0x0e, 0xc6, 0xb1, 0xe0, 0xf0, 0x39, 0xd9,
- 0x9c, 0x4a, 0xce, 0x21, 0xce, 0x0d, 0xce, 0x7b, 0x2d, 0x03, 0x2d, 0x3f,
- 0x2d, 0xb1, 0xd6, 0x6a, 0xad, 0x66, 0xad, 0x7e, 0xad, 0x37, 0xda, 0x7a,
- 0xda, 0xbe, 0xda, 0x62, 0xed, 0x72, 0xed, 0x16, 0xed, 0xeb, 0xda, 0xef,
- 0x75, 0x70, 0x9d, 0x40, 0x9d, 0x2c, 0x9d, 0xf5, 0x3a, 0x6d, 0x3a, 0xf7,
- 0x75, 0x09, 0xba, 0x36, 0xba, 0x51, 0xba, 0x85, 0xba, 0xdb, 0x75, 0xcf,
- 0xea, 0x3e, 0xd3, 0x63, 0xeb, 0x79, 0xe9, 0x09, 0xf5, 0xca, 0xf5, 0x0e,
- 0xe9, 0xdd, 0xd1, 0x47, 0xf5, 0x6d, 0xf4, 0xa3, 0xf5, 0x17, 0xea, 0xef,
- 0xd6, 0xef, 0xd1, 0x1f, 0x37, 0x30, 0x34, 0x08, 0x36, 0x90, 0x19, 0x6c,
- 0x31, 0x38, 0x63, 0xf0, 0xcc, 0x90, 0x63, 0xe8, 0x6b, 0x98, 0x69, 0xb8,
- 0xd1, 0xf0, 0x84, 0xe1, 0xa8, 0x11, 0xcb, 0x68, 0xba, 0x91, 0xc4, 0x68,
- 0xa3, 0xd1, 0x49, 0xa3, 0x27, 0xb8, 0x26, 0xee, 0x87, 0x67, 0xe3, 0x35,
- 0x78, 0x17, 0x3e, 0x66, 0xac, 0x6f, 0x1c, 0x62, 0xac, 0x34, 0xde, 0x65,
- 0xdc, 0x6b, 0x3c, 0x61, 0x62, 0x69, 0x32, 0xdb, 0xa4, 0xc4, 0xa4, 0xc5,
- 0xe4, 0xbe, 0x29, 0xcd, 0x94, 0x6b, 0x9a, 0x66, 0xba, 0xd1, 0xb4, 0xd3,
- 0x74, 0xcc, 0xcc, 0xc8, 0x2c, 0xdc, 0xac, 0xd8, 0xac, 0xc9, 0xec, 0x8e,
- 0x39, 0xd5, 0x9c, 0x6b, 0x9e, 0x61, 0xbe, 0xd9, 0xbc, 0xdb, 0xfc, 0x8d,
- 0x85, 0xa5, 0x45, 0x9c, 0xc5, 0x4a, 0x8b, 0x36, 0x8b, 0xc7, 0x96, 0xda,
- 0x96, 0x7c, 0xcb, 0x05, 0x96, 0x4d, 0x96, 0xf7, 0xac, 0x98, 0x56, 0x3e,
- 0x56, 0x79, 0x56, 0xf5, 0x56, 0xd7, 0xac, 0x49, 0xd6, 0x5c, 0xeb, 0x2c,
- 0xeb, 0x6d, 0xd6, 0x57, 0x6c, 0x50, 0x1b, 0x57, 0x9b, 0x0c, 0x9b, 0x3a,
- 0x9b, 0xcb, 0xb6, 0xa8, 0xad, 0x9b, 0xad, 0xc4, 0x76, 0x9b, 0x6d, 0xdf,
- 0x14, 0xe2, 0x14, 0x8f, 0x29, 0xd2, 0x29, 0xf5, 0x53, 0x6e, 0xda, 0x31,
- 0xec, 0xfc, 0xec, 0x0a, 0xec, 0x9a, 0xec, 0x06, 0xed, 0x39, 0xf6, 0x61,
- 0xf6, 0x25, 0xf6, 0x6d, 0xf6, 0xcf, 0x1d, 0xcc, 0x1c, 0x12, 0x1d, 0xd6,
- 0x3b, 0x74, 0x3b, 0x7c, 0x72, 0x74, 0x75, 0xcc, 0x76, 0x6c, 0x70, 0xbc,
- 0xeb, 0xa4, 0xe1, 0x34, 0xc3, 0xa9, 0xc4, 0xa9, 0xc3, 0xe9, 0x57, 0x67,
- 0x1b, 0x67, 0xa1, 0x73, 0x9d, 0xf3, 0x35, 0x17, 0xa6, 0x4b, 0x90, 0xcb,
- 0x12, 0x97, 0x76, 0x97, 0x17, 0x53, 0x6d, 0xa7, 0x8a, 0xa7, 0x6e, 0x9f,
- 0x7a, 0xcb, 0x95, 0xe5, 0x1a, 0xee, 0xba, 0xd2, 0xb5, 0xd3, 0xf5, 0xa3,
- 0x9b, 0xbb, 0x9b, 0xdc, 0xad, 0xd9, 0x6d, 0xd4, 0xdd, 0xcc, 0x3d, 0xc5,
- 0x7d, 0xab, 0xfb, 0x4d, 0x2e, 0x9b, 0x1b, 0xc9, 0x5d, 0xc3, 0x3d, 0xef,
- 0x41, 0xf4, 0xf0, 0xf7, 0x58, 0xe2, 0x71, 0xcc, 0xe3, 0x9d, 0xa7, 0x9b,
- 0xa7, 0xc2, 0xf3, 0x90, 0xe7, 0x2f, 0x5e, 0x76, 0x5e, 0x59, 0x5e, 0xfb,
- 0xbd, 0x1e, 0x4f, 0xb3, 0x9c, 0x26, 0x9e, 0xd6, 0x30, 0x6d, 0xc8, 0xdb,
- 0xc4, 0x5b, 0xe0, 0xbd, 0xcb, 0x7b, 0x60, 0x3a, 0x3e, 0x3d, 0x65, 0xfa,
- 0xce, 0xe9, 0x03, 0x3e, 0xc6, 0x3e, 0x02, 0x9f, 0x7a, 0x9f, 0x87, 0xbe,
- 0xa6, 0xbe, 0x22, 0xdf, 0x3d, 0xbe, 0x23, 0x7e, 0xd6, 0x7e, 0x99, 0x7e,
- 0x07, 0xfc, 0x9e, 0xfb, 0x3b, 0xfa, 0xcb, 0xfd, 0x8f, 0xf8, 0xbf, 0xe1,
- 0x79, 0xf2, 0x16, 0xf1, 0x4e, 0x05, 0x60, 0x01, 0xc1, 0x01, 0xe5, 0x01,
- 0xbd, 0x81, 0x1a, 0x81, 0xb3, 0x03, 0x6b, 0x03, 0x1f, 0x04, 0x99, 0x04,
- 0xa5, 0x07, 0x35, 0x05, 0x8d, 0x05, 0xbb, 0x06, 0x2f, 0x0c, 0x3e, 0x15,
- 0x42, 0x0c, 0x09, 0x0d, 0x59, 0x1f, 0x72, 0x93, 0x6f, 0xc0, 0x17, 0xf2,
- 0x1b, 0xf9, 0x63, 0x33, 0xdc, 0x67, 0x2c, 0x9a, 0xd1, 0x15, 0xca, 0x08,
- 0x9d, 0x15, 0x5a, 0x1b, 0xfa, 0x30, 0xcc, 0x26, 0x4c, 0x1e, 0xd6, 0x11,
- 0x8e, 0x86, 0xcf, 0x08, 0xdf, 0x10, 0x7e, 0x6f, 0xa6, 0xf9, 0x4c, 0xe9,
- 0xcc, 0xb6, 0x08, 0x88, 0xe0, 0x47, 0x6c, 0x88, 0xb8, 0x1f, 0x69, 0x19,
- 0x99, 0x17, 0xf9, 0x7d, 0x14, 0x29, 0x2a, 0x32, 0xaa, 0x2e, 0xea, 0x51,
- 0xb4, 0x53, 0x74, 0x71, 0x74, 0xf7, 0x2c, 0xd6, 0xac, 0xe4, 0x59, 0xfb,
- 0x67, 0xbd, 0x8e, 0xf1, 0x8f, 0xa9, 0x8c, 0xb9, 0x3b, 0xdb, 0x6a, 0xb6,
- 0x72, 0x76, 0x67, 0xac, 0x6a, 0x6c, 0x52, 0x6c, 0x63, 0xec, 0x9b, 0xb8,
- 0x80, 0xb8, 0xaa, 0xb8, 0x81, 0x78, 0x87, 0xf8, 0x45, 0xf1, 0x97, 0x12,
- 0x74, 0x13, 0x24, 0x09, 0xed, 0x89, 0xe4, 0xc4, 0xd8, 0xc4, 0x3d, 0x89,
- 0xe3, 0x73, 0x02, 0xe7, 0x6c, 0x9a, 0x33, 0x9c, 0xe4, 0x9a, 0x54, 0x96,
- 0x74, 0x63, 0xae, 0xe5, 0xdc, 0xa2, 0xb9, 0x17, 0xe6, 0xe9, 0xce, 0xcb,
- 0x9e, 0x77, 0x3c, 0x59, 0x35, 0x59, 0x90, 0x7c, 0x38, 0x85, 0x98, 0x12,
- 0x97, 0xb2, 0x3f, 0xe5, 0x83, 0x20, 0x42, 0x50, 0x2f, 0x18, 0x4f, 0xe5,
- 0xa7, 0x6e, 0x4d, 0x1d, 0x13, 0xf2, 0x84, 0x9b, 0x85, 0x4f, 0x45, 0xbe,
- 0xa2, 0x8d, 0xa2, 0x51, 0xb1, 0xb7, 0xb8, 0x4a, 0x3c, 0x92, 0xe6, 0x9d,
- 0x56, 0x95, 0xf6, 0x38, 0xdd, 0x3b, 0x7d, 0x43, 0xfa, 0x68, 0x86, 0x4f,
- 0x46, 0x75, 0xc6, 0x33, 0x09, 0x4f, 0x52, 0x2b, 0x79, 0x91, 0x19, 0x92,
- 0xb9, 0x23, 0xf3, 0x4d, 0x56, 0x44, 0xd6, 0xde, 0xac, 0xcf, 0xd9, 0x71,
- 0xd9, 0x2d, 0x39, 0x94, 0x9c, 0x94, 0x9c, 0xa3, 0x52, 0x0d, 0x69, 0x96,
- 0xb4, 0x2b, 0xd7, 0x30, 0xb7, 0x28, 0xb7, 0x4f, 0x66, 0x2b, 0x2b, 0x93,
- 0x0d, 0xe4, 0x79, 0xe6, 0x6d, 0xca, 0x1b, 0x93, 0x87, 0xca, 0xf7, 0xe4,
- 0x23, 0xf9, 0x73, 0xf3, 0xdb, 0x15, 0x6c, 0x85, 0x4c, 0xd1, 0xa3, 0xb4,
- 0x52, 0xae, 0x50, 0x0e, 0x16, 0x4c, 0x2f, 0xa8, 0x2b, 0x78, 0x5b, 0x18,
- 0x5b, 0x78, 0xb8, 0x48, 0xbd, 0x48, 0x5a, 0xd4, 0x33, 0xdf, 0x66, 0xfe,
- 0xea, 0xf9, 0x23, 0x0b, 0x82, 0x16, 0x7c, 0xbd, 0x90, 0xb0, 0x50, 0xb8,
- 0xb0, 0xb3, 0xd8, 0xb8, 0x78, 0x59, 0xf1, 0xe0, 0x22, 0xbf, 0x45, 0xbb,
- 0x16, 0x23, 0x8b, 0x53, 0x17, 0x77, 0x2e, 0x31, 0x5d, 0x52, 0xba, 0x64,
- 0x78, 0x69, 0xf0, 0xd2, 0x7d, 0xcb, 0x68, 0xcb, 0xb2, 0x96, 0xfd, 0x50,
- 0xe2, 0x58, 0x52, 0x55, 0xf2, 0x6a, 0x79, 0xdc, 0xf2, 0x8e, 0x52, 0x83,
- 0xd2, 0xa5, 0xa5, 0x43, 0x2b, 0x82, 0x57, 0x34, 0x95, 0xa9, 0x94, 0xc9,
- 0xcb, 0x6e, 0xae, 0xf4, 0x5a, 0xb9, 0x63, 0x15, 0x61, 0x95, 0x64, 0x55,
- 0xef, 0x6a, 0x97, 0xd5, 0x5b, 0x56, 0x7f, 0x2a, 0x17, 0x95, 0x5f, 0xac,
- 0x70, 0xac, 0xa8, 0xae, 0xf8, 0xb0, 0x46, 0xb8, 0xe6, 0xe2, 0x57, 0x4e,
- 0x5f, 0xd5, 0x7c, 0xf5, 0x79, 0x6d, 0xda, 0xda, 0xde, 0x4a, 0xb7, 0xca,
- 0xed, 0xeb, 0x48, 0xeb, 0xa4, 0xeb, 0x6e, 0xac, 0xf7, 0x59, 0xbf, 0xaf,
- 0x4a, 0xbd, 0x6a, 0x41, 0xd5, 0xd0, 0x86, 0xf0, 0x0d, 0xad, 0x1b, 0xf1,
- 0x8d, 0xe5, 0x1b, 0x5f, 0x6d, 0x4a, 0xde, 0x74, 0xa1, 0x7a, 0x6a, 0xf5,
- 0x8e, 0xcd, 0xb4, 0xcd, 0xca, 0xcd, 0x03, 0x35, 0x61, 0x35, 0xed, 0x5b,
- 0xcc, 0xb6, 0xac, 0xdb, 0xf2, 0xa1, 0x36, 0xa3, 0xf6, 0x7a, 0x9d, 0x7f,
- 0x5d, 0xcb, 0x56, 0xfd, 0xad, 0xab, 0xb7, 0xbe, 0xd9, 0x26, 0xda, 0xd6,
- 0xbf, 0xdd, 0x77, 0x7b, 0xf3, 0x0e, 0x83, 0x1d, 0x15, 0x3b, 0xde, 0xef,
- 0x94, 0xec, 0xbc, 0xb5, 0x2b, 0x78, 0x57, 0x6b, 0xbd, 0x45, 0x7d, 0xf5,
- 0x6e, 0xd2, 0xee, 0x82, 0xdd, 0x8f, 0x1a, 0x62, 0x1b, 0xba, 0xbf, 0xe6,
- 0x7e, 0xdd, 0xb8, 0x47, 0x77, 0x4f, 0xc5, 0x9e, 0x8f, 0x7b, 0xa5, 0x7b,
- 0x07, 0xf6, 0x45, 0xef, 0xeb, 0x6a, 0x74, 0x6f, 0x6c, 0xdc, 0xaf, 0xbf,
- 0xbf, 0xb2, 0x09, 0x6d, 0x52, 0x36, 0x8d, 0x1e, 0x48, 0x3a, 0x70, 0xe5,
- 0x9b, 0x80, 0x6f, 0xda, 0x9b, 0xed, 0x9a, 0x77, 0xb5, 0x70, 0x5a, 0x2a,
- 0x0e, 0xc2, 0x41, 0xe5, 0xc1, 0x27, 0xdf, 0xa6, 0x7c, 0x7b, 0xe3, 0x50,
- 0xe8, 0xa1, 0xce, 0xc3, 0xdc, 0xc3, 0xcd, 0xdf, 0x99, 0x7f, 0xb7, 0xf5,
- 0x08, 0xeb, 0x48, 0x79, 0x2b, 0xd2, 0x3a, 0xbf, 0x75, 0xac, 0x2d, 0xa3,
- 0x6d, 0xa0, 0x3d, 0xa1, 0xbd, 0xef, 0xe8, 0x8c, 0xa3, 0x9d, 0x1d, 0x5e,
- 0x1d, 0x47, 0xbe, 0xb7, 0xff, 0x7e, 0xef, 0x31, 0xe3, 0x63, 0x75, 0xc7,
- 0x35, 0x8f, 0x57, 0x9e, 0xa0, 0x9d, 0x28, 0x3d, 0xf1, 0xf9, 0xe4, 0x82,
- 0x93, 0xe3, 0xa7, 0x64, 0xa7, 0x9e, 0x9d, 0x4e, 0x3f, 0x3d, 0xd4, 0x99,
- 0xdc, 0x79, 0xf7, 0x4c, 0xfc, 0x99, 0x6b, 0x5d, 0x51, 0x5d, 0xbd, 0x67,
- 0x43, 0xcf, 0x9e, 0x3f, 0x17, 0x74, 0xee, 0x4c, 0xb7, 0x5f, 0xf7, 0xc9,
- 0xf3, 0xde, 0xe7, 0x8f, 0x5d, 0xf0, 0xbc, 0x70, 0xf4, 0x22, 0xf7, 0x62,
- 0xdb, 0x25, 0xb7, 0x4b, 0xad, 0x3d, 0xae, 0x3d, 0x47, 0x7e, 0x70, 0xfd,
- 0xe1, 0x48, 0xaf, 0x5b, 0x6f, 0xeb, 0x65, 0xf7, 0xcb, 0xed, 0x57, 0x3c,
- 0xae, 0x74, 0xf4, 0x4d, 0xeb, 0x3b, 0xd1, 0xef, 0xd3, 0x7f, 0xfa, 0x6a,
- 0xc0, 0xd5, 0x73, 0xd7, 0xf8, 0xd7, 0x2e, 0x5d, 0x9f, 0x79, 0xbd, 0xef,
- 0xc6, 0xec, 0x1b, 0xb7, 0x6e, 0x26, 0xdd, 0x1c, 0xb8, 0x25, 0xba, 0xf5,
- 0xf8, 0x76, 0xf6, 0xed, 0x17, 0x77, 0x0a, 0xee, 0x4c, 0xdc, 0x5d, 0x7a,
- 0x8f, 0x78, 0xaf, 0xfc, 0xbe, 0xda, 0xfd, 0xea, 0x07, 0xfa, 0x0f, 0xea,
- 0x7f, 0xb4, 0xfe, 0xb1, 0x65, 0xc0, 0x6d, 0xe0, 0xf8, 0x60, 0xc0, 0x60,
- 0xcf, 0xc3, 0x59, 0x0f, 0xef, 0x0e, 0x09, 0x87, 0x9e, 0xfe, 0x94, 0xff,
- 0xd3, 0x87, 0xe1, 0xd2, 0x47, 0xcc, 0x47, 0xd5, 0x23, 0x46, 0x23, 0x8d,
- 0x8f, 0x9d, 0x1f, 0x1f, 0x1b, 0x0d, 0x1a, 0xbd, 0xf2, 0x64, 0xce, 0x93,
- 0xe1, 0xa7, 0xb2, 0xa7, 0x13, 0xcf, 0xca, 0x7e, 0x56, 0xff, 0x79, 0xeb,
- 0x73, 0xab, 0xe7, 0xdf, 0xfd, 0xe2, 0xfb, 0x4b, 0xcf, 0x58, 0xfc, 0xd8,
- 0xf0, 0x0b, 0xf9, 0x8b, 0xcf, 0xbf, 0xae, 0x79, 0xa9, 0xf3, 0x72, 0xef,
- 0xab, 0xa9, 0xaf, 0x3a, 0xc7, 0x23, 0xc7, 0x1f, 0xbc, 0xce, 0x79, 0x3d,
- 0xf1, 0xa6, 0xfc, 0xad, 0xce, 0xdb, 0x7d, 0xef, 0xb8, 0xef, 0xba, 0xdf,
- 0xc7, 0xbd, 0x1f, 0x99, 0x28, 0xfc, 0x40, 0xfe, 0x50, 0xf3, 0xd1, 0xfa,
- 0x63, 0xc7, 0xa7, 0xd0, 0x4f, 0xf7, 0x3e, 0xe7, 0x7c, 0xfe, 0xfc, 0x2f,
- 0xf7, 0x84, 0xf3, 0xfb, 0x80, 0x39, 0x25, 0x11, 0x00, 0x00, 0x00, 0x06,
- 0x62, 0x4b, 0x47, 0x44, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xa0, 0xbd,
- 0xa7, 0x93, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00,
- 0x0b, 0x13, 0x00, 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00,
- 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45, 0x07, 0xdc, 0x02, 0x07, 0x10,
- 0x2f, 0x1c, 0x54, 0x04, 0xda, 0x7f, 0x00, 0x00, 0x10, 0x67, 0x49, 0x44,
- 0x41, 0x54, 0x78, 0xda, 0xed, 0x9b, 0x7b, 0x74, 0x15, 0x55, 0x96, 0xc6,
- 0xbf, 0x53, 0x75, 0xef, 0xcd, 0xbd, 0x79, 0x12, 0xf2, 0x20, 0xa0, 0x04,
- 0x3a, 0x22, 0x12, 0x12, 0xd3, 0xe1, 0x25, 0x32, 0x40, 0x62, 0xec, 0x81,
- 0x0e, 0x68, 0x56, 0x8c, 0x01, 0x31, 0xe2, 0x20, 0x06, 0x06, 0x1c, 0x40,
- 0xe3, 0x00, 0x01, 0x6d, 0x50, 0x0c, 0x59, 0x40, 0x1e, 0xca, 0x43, 0x02,
- 0x33, 0xe1, 0xd1, 0x4d, 0xc0, 0x51, 0x5a, 0x43, 0x47, 0xda, 0x5e, 0x66,
- 0xa1, 0x2d, 0x0b, 0x08, 0x2a, 0xd0, 0x4e, 0x46, 0x1e, 0x41, 0x60, 0x50,
- 0x48, 0x20, 0x08, 0x81, 0x84, 0x57, 0x12, 0x92, 0x9b, 0x5b, 0xf5, 0xcd,
- 0x1f, 0x9c, 0xd2, 0xe2, 0x7a, 0x11, 0xed, 0xf6, 0x8f, 0x11, 0xeb, 0xb7,
- 0xd6, 0x5d, 0x21, 0xe1, 0xd4, 0xa9, 0xbd, 0xcf, 0xad, 0xfd, 0x9d, 0x7d,
- 0xf6, 0x39, 0x05, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
- 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
- 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
- 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
- 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
- 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xfc, 0x7f, 0x43, 0xfc, 0xc4, 0x7d,
- 0xa9, 0xf2, 0xa7, 0x2e, 0x3f, 0xf4, 0xd1, 0x4e, 0xf5, 0x6a, 0xa7, 0xc9,
- 0x9f, 0xdf, 0x87, 0x0a, 0x40, 0x91, 0xfd, 0x69, 0x37, 0xe9, 0xd7, 0x6c,
- 0x83, 0x22, 0x7f, 0xd7, 0x01, 0x78, 0x7e, 0x40, 0xdf, 0xaa, 0xa9, 0xbd,
- 0xfe, 0x03, 0xec, 0x51, 0xe4, 0xe7, 0x56, 0xbe, 0x9a, 0xdb, 0x19, 0x50,
- 0x7e, 0x7c, 0x5d, 0x23, 0xbc, 0xec, 0xd1, 0x6e, 0xe2, 0xaf, 0x30, 0xf5,
- 0xed, 0x8b, 0x5b, 0xd9, 0x64, 0xfb, 0x11, 0xe3, 0x6f, 0xfe, 0xbe, 0x28,
- 0xc7, 0x53, 0xb7, 0x42, 0xe7, 0xf6, 0x40, 0xfd, 0xa9, 0x82, 0xdf, 0x6e,
- 0xb7, 0x07, 0xe8, 0xba, 0xde, 0x05, 0x40, 0x4f, 0x00, 0x54, 0x14, 0xa5,
- 0x9d, 0xa4, 0x66, 0x7e, 0xf0, 0x14, 0x45, 0x09, 0x20, 0xd9, 0x19, 0x40,
- 0x6f, 0x00, 0x7d, 0x01, 0x38, 0x65, 0x5b, 0x92, 0xf4, 0x19, 0xa8, 0x8a,
- 0xa2, 0x38, 0x49, 0x86, 0x03, 0x88, 0x06, 0xa0, 0xda, 0xed, 0x76, 0x8f,
- 0xae, 0xeb, 0x1d, 0x3e, 0xda, 0xf9, 0x91, 0x0c, 0x05, 0xd0, 0x15, 0x40,
- 0x02, 0x80, 0x48, 0x00, 0x14, 0x42, 0x28, 0x37, 0x79, 0x68, 0x55, 0x21,
- 0x44, 0x30, 0x00, 0xc3, 0x9e, 0xde, 0x00, 0xec, 0x00, 0x84, 0xa2, 0x28,
- 0xba, 0x97, 0xed, 0xdf, 0x3a, 0x2a, 0x84, 0x1d, 0x40, 0xa8, 0xbc, 0x2e,
- 0x1c, 0x80, 0x6e, 0xb7, 0xdb, 0x85, 0xb7, 0x4d, 0xaa, 0xaa, 0xfa, 0x91,
- 0x0c, 0x94, 0x76, 0x74, 0x01, 0x10, 0x26, 0x3f, 0xc1, 0x00, 0xe8, 0xe7,
- 0xe7, 0xa7, 0x6a, 0x9a, 0x66, 0xbe, 0xc6, 0x26, 0x84, 0x08, 0x01, 0x10,
- 0x01, 0x60, 0x20, 0x80, 0xbb, 0x01, 0xe8, 0x0e, 0x87, 0x43, 0x68, 0x9a,
- 0x66, 0x08, 0x01, 0x84, 0x10, 0x2a, 0x80, 0x40, 0x00, 0x9d, 0x00, 0x74,
- 0x93, 0x36, 0x84, 0x99, 0x3e, 0x21, 0x00, 0x84, 0xd3, 0xe9, 0x54, 0x3c,
- 0x1e, 0x8f, 0xc7, 0x24, 0x02, 0x8a, 0x10, 0x22, 0x50, 0xb6, 0xbf, 0x0b,
- 0xc0, 0x3d, 0x72, 0xfc, 0x0d, 0x7f, 0xbd, 0xc7, 0x5f, 0x11, 0x42, 0x04,
- 0xc9, 0xf6, 0x7d, 0x01, 0xc4, 0x1b, 0x62, 0xf6, 0x7d, 0xe3, 0x63, 0xf1,
- 0xf3, 0xc2, 0xf6, 0x53, 0x09, 0x49, 0x47, 0x47, 0x47, 0xd0, 0x43, 0x0f,
- 0x3d, 0xb4, 0x63, 0xe6, 0xcc, 0x99, 0x3d, 0x47, 0x8d, 0x1a, 0xb5, 0xd1,
- 0xed, 0x76, 0xff, 0xeb, 0x8d, 0x71, 0x23, 0x02, 0x75, 0x5d, 0x8f, 0x4d,
- 0x49, 0x49, 0x59, 0x9b, 0x9d, 0x9d, 0x7d, 0x6f, 0x97, 0x2e, 0x5d, 0x70,
- 0xf2, 0xe4, 0x49, 0xcc, 0x9f, 0x3f, 0xff, 0xe3, 0x86, 0x86, 0x86, 0x09,
- 0xaa, 0xaa, 0x9e, 0xd5, 0x34, 0xad, 0xd5, 0x6b, 0x26, 0xf4, 0xd3, 0x75,
- 0x3d, 0x22, 0x2a, 0x2a, 0x6a, 0xf5, 0xda, 0xb5, 0x6b, 0x47, 0x95, 0x94,
- 0x94, 0x7c, 0xb5, 0x6d, 0xdb, 0xb6, 0x01, 0x00, 0xae, 0x99, 0x67, 0x37,
- 0x21, 0x84, 0x43, 0xd7, 0xf5, 0x30, 0x55, 0x55, 0xe7, 0x15, 0x14, 0x14,
- 0x4c, 0x8b, 0x8d, 0x8d, 0x45, 0x73, 0x73, 0x33, 0x76, 0xef, 0xde, 0xdd,
- 0x58, 0x52, 0x52, 0x92, 0xaf, 0x28, 0xca, 0x66, 0x5d, 0xd7, 0x9b, 0x00,
- 0x18, 0x01, 0x27, 0x14, 0x45, 0x09, 0xd6, 0x75, 0xfd, 0x9f, 0x32, 0x33,
- 0x33, 0x57, 0x67, 0x66, 0x66, 0x46, 0x87, 0x84, 0x84, 0xe0, 0xe4, 0xc9,
- 0x93, 0x98, 0x39, 0x73, 0xe6, 0x5f, 0xdb, 0xdb, 0xdb, 0xa7, 0xda, 0x6c,
- 0xb6, 0xb3, 0x1e, 0x8f, 0xa7, 0xd5, 0x3b, 0x28, 0x48, 0x86, 0x00, 0x18,
- 0x53, 0x58, 0x58, 0xf8, 0x1f, 0xa1, 0xa1, 0xa1, 0xa8, 0xa8, 0xa8, 0x38,
- 0x5d, 0x59, 0x59, 0x79, 0xaf, 0x97, 0x4d, 0x42, 0xd3, 0x34, 0x57, 0x42,
- 0x42, 0xc2, 0xc6, 0x89, 0x13, 0x27, 0x3e, 0xe4, 0x76, 0xbb, 0x75, 0x21,
- 0x04, 0xe5, 0x7d, 0x79, 0xe0, 0xc0, 0x01, 0x65, 0xd3, 0xa6, 0x4d, 0x3d,
- 0xe4, 0x35, 0x1e, 0xe9, 0x6b, 0x28, 0xc9, 0x11, 0x39, 0x39, 0x39, 0x6b,
- 0xd2, 0xd2, 0xd2, 0x02, 0xec, 0x76, 0x3b, 0xf6, 0xec, 0xd9, 0xc3, 0xb9,
- 0x73, 0xe7, 0xbe, 0xa6, 0x28, 0xca, 0x52, 0x92, 0x17, 0x48, 0x76, 0x90,
- 0x54, 0x01, 0xa4, 0xbc, 0xf2, 0xca, 0x2b, 0xef, 0xba, 0x5c, 0xae, 0x0e,
- 0x92, 0xc2, 0x4b, 0x08, 0x59, 0x57, 0x57, 0x67, 0x2f, 0x29, 0x29, 0x49,
- 0x04, 0x50, 0x23, 0x85, 0x4f, 0xb1, 0xd9, 0x6c, 0x21, 0x1e, 0x8f, 0x67,
- 0x50, 0x7a, 0x7a, 0xfa, 0xea, 0xcc, 0xcc, 0xcc, 0xbb, 0xc2, 0xc2, 0xc2,
- 0x50, 0x5f, 0x5f, 0x8f, 0x17, 0x5f, 0x7c, 0xf1, 0xe3, 0xc6, 0xc6, 0xc6,
- 0x89, 0x36, 0x9b, 0xed, 0x6b, 0x8f, 0xc7, 0xd3, 0x62, 0x12, 0xeb, 0x4e,
- 0xba, 0xae, 0x0f, 0xc8, 0xc8, 0xc8, 0xf8, 0xcf, 0xac, 0xac, 0xac, 0x98,
- 0xa8, 0xa8, 0x28, 0x1c, 0x3e, 0x7c, 0x18, 0x33, 0x66, 0xcc, 0xd8, 0xea,
- 0xf1, 0x78, 0x72, 0x54, 0x55, 0x3d, 0x6f, 0xfa, 0xbe, 0x2c, 0x7e, 0xe1,
- 0x04, 0x01, 0x18, 0xbb, 0x73, 0xe7, 0x4e, 0x56, 0x55, 0x55, 0x11, 0x40,
- 0x1a, 0x00, 0x97, 0xe9, 0xff, 0xed, 0x00, 0x7a, 0x0e, 0x1c, 0x38, 0xf0,
- 0x6b, 0x4a, 0x76, 0xee, 0xdc, 0x69, 0xfc, 0x93, 0xbd, 0x7b, 0xf7, 0xfe,
- 0x40, 0xce, 0xdc, 0x8a, 0x9c, 0x3d, 0x9d, 0xf2, 0xf7, 0x91, 0x00, 0x4a,
- 0xb7, 0x6c, 0xd9, 0x42, 0x92, 0x7c, 0xee, 0xb9, 0xe7, 0xea, 0x64, 0x26,
- 0xa0, 0x78, 0xa5, 0xc3, 0x61, 0x00, 0x0a, 0xcf, 0x9c, 0x39, 0x43, 0x92,
- 0xac, 0xaf, 0xaf, 0x67, 0x53, 0x53, 0x13, 0x49, 0xf2, 0xa3, 0x8f, 0x3e,
- 0x22, 0x80, 0x69, 0xc6, 0xcc, 0x28, 0x05, 0xc3, 0x09, 0xe0, 0xd7, 0x63,
- 0xc7, 0x8e, 0xf5, 0x90, 0xe4, 0xc5, 0x8b, 0x17, 0xb9, 0x77, 0xef, 0x5e,
- 0x92, 0xa4, 0xc7, 0xe3, 0x61, 0xff, 0xfe, 0xfd, 0x77, 0x03, 0x88, 0xf2,
- 0xce, 0x90, 0x14, 0x45, 0xf1, 0x07, 0xd0, 0x7f, 0xce, 0x9c, 0x39, 0xed,
- 0x86, 0xed, 0x73, 0xe6, 0xcc, 0x39, 0xe7, 0xc3, 0x26, 0x15, 0x40, 0x8f,
- 0x59, 0xb3, 0x66, 0x9d, 0xa3, 0x0f, 0xde, 0x7a, 0xeb, 0x2d, 0x9a, 0x32,
- 0x0e, 0x63, 0xfc, 0x1e, 0x5e, 0xbc, 0x78, 0x31, 0x49, 0xf2, 0xc8, 0x91,
- 0x23, 0xdf, 0xd8, 0x73, 0xec, 0xd8, 0x31, 0x02, 0x98, 0x29, 0xdb, 0x40,
- 0xce, 0xda, 0xd3, 0xae, 0x5d, 0xbb, 0xc6, 0x9b, 0x51, 0x5d, 0x5d, 0x4d,
- 0x00, 0xa3, 0x00, 0x38, 0x0c, 0x81, 0x04, 0x10, 0x3f, 0x63, 0xc6, 0x8c,
- 0x76, 0x92, 0xec, 0xe8, 0xe8, 0xe0, 0xc7, 0x1f, 0x7f, 0xfc, 0x4d, 0xfb,
- 0xfb, 0xef, 0xbf, 0xff, 0x6f, 0x72, 0xbc, 0x55, 0xe9, 0xa7, 0x0b, 0xc0,
- 0xc0, 0xc7, 0x1e, 0x7b, 0xcc, 0x63, 0xb4, 0x31, 0xec, 0xb9, 0x72, 0xe5,
- 0x0a, 0xa3, 0xa3, 0xa3, 0xff, 0xe2, 0x6b, 0x7c, 0x2c, 0x7e, 0x99, 0x28,
- 0x00, 0xba, 0x85, 0x86, 0x86, 0x6e, 0x21, 0xc9, 0x09, 0x13, 0x26, 0x9c,
- 0x92, 0x29, 0xa6, 0xdd, 0xd4, 0x26, 0x10, 0xc0, 0xd4, 0x9a, 0x9a, 0x1a,
- 0x92, 0x64, 0x48, 0x48, 0xc8, 0x61, 0x00, 0x73, 0x87, 0x0f, 0x1f, 0xde,
- 0x40, 0x92, 0x1b, 0x37, 0x6e, 0x24, 0x80, 0xa1, 0x32, 0x30, 0x01, 0xc0,
- 0x15, 0x13, 0x13, 0xb3, 0x65, 0xd7, 0xae, 0x5d, 0x6c, 0x69, 0x69, 0x21,
- 0x49, 0x9d, 0x24, 0xa7, 0x4f, 0x9f, 0x7e, 0x1a, 0xc0, 0xaf, 0x7c, 0x04,
- 0x5b, 0xf4, 0xbc, 0x79, 0xf3, 0xae, 0x90, 0xe4, 0x4b, 0x2f, 0xbd, 0xa4,
- 0x03, 0x58, 0x0a, 0x60, 0xc3, 0xd6, 0xad, 0x5b, 0x49, 0x92, 0x4f, 0x3d,
- 0xf5, 0xd4, 0x49, 0x00, 0x77, 0x98, 0xae, 0x0b, 0x04, 0xb0, 0x84, 0x24,
- 0x8f, 0x1f, 0x3f, 0x4e, 0x00, 0xef, 0x00, 0xf8, 0xdd, 0xe3, 0x8f, 0x3f,
- 0xde, 0x46, 0x92, 0x6f, 0xbc, 0xf1, 0x06, 0x65, 0x1a, 0xee, 0xf0, 0xba,
- 0xcf, 0x9d, 0xc1, 0xc1, 0xc1, 0x5b, 0x48, 0x72, 0xfd, 0xfa, 0xf5, 0x3a,
- 0x49, 0xce, 0x9a, 0x35, 0xeb, 0x3c, 0x80, 0x5e, 0x5e, 0xc1, 0x60, 0x07,
- 0xd0, 0xf7, 0xd5, 0x57, 0x5f, 0x25, 0x49, 0x02, 0xf8, 0x0c, 0xc0, 0x46,
- 0x21, 0xc4, 0x3a, 0x00, 0xab, 0x5c, 0x2e, 0x57, 0x81, 0x14, 0x2d, 0xa3,
- 0x5e, 0xd1, 0x6d, 0xf0, 0xe0, 0xc1, 0x7b, 0x48, 0xb2, 0xa2, 0xa2, 0x82,
- 0x00, 0x96, 0x01, 0xc8, 0x2f, 0x2a, 0x2a, 0x62, 0x43, 0x43, 0x03, 0xb3,
- 0xb2, 0xb2, 0xbe, 0x30, 0x09, 0xaa, 0xa3, 0x53, 0xa7, 0x4e, 0xf7, 0x87,
- 0x86, 0x86, 0xbe, 0x19, 0x19, 0x19, 0xf9, 0x76, 0x64, 0x64, 0xe4, 0x96,
- 0x88, 0x88, 0x88, 0xbf, 0x38, 0x1c, 0x8e, 0x4f, 0x66, 0xce, 0x9c, 0xa9,
- 0x91, 0x64, 0x66, 0x66, 0xe6, 0x69, 0x99, 0xb6, 0x1b, 0x19, 0x5e, 0x00,
- 0x80, 0xf9, 0xcd, 0xcd, 0xcd, 0x6c, 0x6b, 0x6b, 0x23, 0x80, 0xdd, 0x00,
- 0xe6, 0x24, 0x26, 0x26, 0xd6, 0x92, 0x64, 0x79, 0x79, 0x39, 0x01, 0xdc,
- 0x6f, 0xf2, 0xb7, 0xb3, 0xcd, 0x66, 0x5b, 0x4b, 0x92, 0x4d, 0x4d, 0x4d,
- 0x04, 0x50, 0x05, 0x60, 0x56, 0xdf, 0xbe, 0x7d, 0x4f, 0x93, 0xe4, 0xdb,
- 0x6f, 0xbf, 0x4d, 0x00, 0x0f, 0x08, 0x21, 0x5c, 0xd6, 0xe3, 0x6f, 0xe1,
- 0x07, 0x20, 0x3e, 0x3f, 0x3f, 0xdf, 0x2d, 0x1f, 0xf6, 0x65, 0x72, 0x1d,
- 0x6b, 0x4e, 0x4d, 0x23, 0xfc, 0xfd, 0xfd, 0x37, 0x91, 0xe4, 0x9e, 0x3d,
- 0x7b, 0x08, 0x60, 0xaa, 0x5c, 0x53, 0xae, 0xd2, 0x34, 0x8d, 0x8d, 0x8d,
- 0x8d, 0x04, 0x30, 0xdf, 0x34, 0xcb, 0xb9, 0x62, 0x62, 0x62, 0x36, 0x94,
- 0x94, 0x94, 0xe8, 0x4b, 0x96, 0x2c, 0xe9, 0xf8, 0xe4, 0x93, 0x4f, 0x34,
- 0x93, 0x00, 0xc4, 0x78, 0x09, 0x80, 0x0d, 0xc0, 0x3d, 0x1b, 0x36, 0x6c,
- 0x20, 0x49, 0x46, 0x45, 0x45, 0xbd, 0x0b, 0x20, 0x16, 0xc0, 0xb0, 0x29,
- 0x53, 0xa6, 0x34, 0x90, 0xe4, 0x8a, 0x15, 0x2b, 0x28, 0x83, 0xd4, 0x08,
- 0x08, 0x67, 0x44, 0x44, 0xc4, 0xc6, 0xb2, 0xb2, 0x32, 0x66, 0x65, 0x65,
- 0x11, 0xc0, 0xbd, 0x00, 0x1e, 0x08, 0x0f, 0x0f, 0xdf, 0x4e, 0x92, 0xdb,
- 0xb6, 0x6d, 0x23, 0x80, 0xdf, 0x78, 0x09, 0x40, 0x27, 0x00, 0x99, 0x95,
- 0x95, 0x95, 0x5c, 0xb3, 0x66, 0x8d, 0x67, 0xf2, 0xe4, 0xc9, 0x17, 0x49,
- 0x72, 0xf6, 0xec, 0xd9, 0xbe, 0x04, 0xc0, 0x09, 0x20, 0x65, 0xf3, 0xe6,
- 0xcd, 0x3c, 0x70, 0xe0, 0x00, 0x01, 0x14, 0x03, 0x78, 0x06, 0x40, 0xba,
- 0xbc, 0x57, 0x94, 0x49, 0xec, 0x1c, 0x00, 0xee, 0x5d, 0xb9, 0x72, 0x25,
- 0x49, 0x32, 0x21, 0x21, 0xa1, 0x1a, 0xc0, 0x63, 0x00, 0xc6, 0x02, 0x98,
- 0x02, 0x60, 0x06, 0x80, 0x24, 0xbb, 0xdd, 0xee, 0x6f, 0xac, 0xa5, 0x64,
- 0xff, 0x21, 0xb2, 0xb6, 0x10, 0x0d, 0x60, 0x48, 0x42, 0x42, 0xc2, 0x21,
- 0x92, 0x5c, 0xbe, 0x7c, 0x39, 0x01, 0xa4, 0xaa, 0xaa, 0x1a, 0x62, 0xfa,
- 0x0e, 0x02, 0x00, 0x2c, 0x32, 0x8d, 0xff, 0x7c, 0x99, 0xa5, 0x55, 0x90,
- 0x64, 0x65, 0x65, 0x25, 0x01, 0x3c, 0x68, 0xf2, 0x37, 0x2a, 0x23, 0x23,
- 0xa3, 0x9a, 0x24, 0x57, 0xad, 0x5a, 0x45, 0x00, 0x23, 0x00, 0xf4, 0x01,
- 0x30, 0xf7, 0xc8, 0x91, 0x23, 0x74, 0xbb, 0xdd, 0x04, 0x50, 0x20, 0x6d,
- 0xb0, 0xf8, 0x85, 0x13, 0x0a, 0x60, 0x6e, 0x7d, 0x7d, 0x3d, 0xd7, 0xad,
- 0x5b, 0x67, 0xcc, 0xe4, 0xde, 0x33, 0x43, 0xd7, 0xa4, 0xa4, 0xa4, 0x2a,
- 0x92, 0xdc, 0xb4, 0x69, 0x13, 0x01, 0xa4, 0xc8, 0xe2, 0x58, 0xce, 0x89,
- 0x13, 0x27, 0x48, 0x92, 0x8a, 0xa2, 0xac, 0x95, 0x05, 0x27, 0xa8, 0xaa,
- 0xea, 0x90, 0x0f, 0x57, 0x2f, 0x00, 0xe9, 0xc6, 0x4c, 0x7a, 0x13, 0x01,
- 0x50, 0x00, 0x84, 0xb9, 0x5c, 0xae, 0x17, 0x01, 0xbc, 0x1c, 0x1c, 0x1c,
- 0x3c, 0x42, 0x16, 0xc7, 0x7e, 0xbb, 0x64, 0xc9, 0x12, 0x8d, 0x24, 0x17,
- 0x2d, 0x5a, 0xd4, 0x26, 0x8b, 0x93, 0x46, 0x8a, 0xeb, 0x90, 0x01, 0xdd,
- 0x03, 0xc0, 0x5d, 0x42, 0x88, 0x2c, 0x00, 0xeb, 0x0a, 0x0b, 0x0b, 0x49,
- 0x92, 0x63, 0xc6, 0x8c, 0x39, 0x2f, 0x33, 0x0d, 0x9b, 0x0c, 0x3a, 0x3f,
- 0x00, 0x31, 0x23, 0x46, 0x8c, 0xf8, 0x5f, 0x29, 0x72, 0x15, 0xb9, 0xb9,
- 0xb9, 0x8d, 0x26, 0x01, 0xb8, 0xcb, 0xcb, 0x26, 0x7f, 0x00, 0xe3, 0xab,
- 0xab, 0xab, 0x59, 0x56, 0x56, 0xd6, 0xb1, 0x60, 0xc1, 0x82, 0x8e, 0xbd,
- 0x7b, 0xf7, 0xb2, 0xa2, 0xa2, 0x82, 0x83, 0x07, 0x0f, 0x3e, 0x0e, 0x20,
- 0x49, 0x06, 0xa8, 0x21, 0x16, 0xe9, 0xdb, 0xb7, 0x6f, 0x37, 0xb2, 0x85,
- 0xfa, 0xd2, 0xd2, 0x52, 0xbd, 0xbc, 0xbc, 0x9c, 0x05, 0x05, 0x05, 0xed,
- 0x32, 0x9b, 0xe9, 0x61, 0x12, 0x0c, 0xef, 0xec, 0x2b, 0x02, 0x40, 0xde,
- 0xa9, 0x53, 0xa7, 0x78, 0xf6, 0xec, 0x59, 0x02, 0x28, 0x34, 0xa7, 0xf3,
- 0xa6, 0x25, 0xcf, 0x83, 0xcb, 0x97, 0x2f, 0x27, 0x49, 0x26, 0x27, 0x27,
- 0x37, 0x01, 0x78, 0x7f, 0xe9, 0xd2, 0xa5, 0x6e, 0x92, 0x4c, 0x4b, 0x4b,
- 0xab, 0x97, 0xe3, 0x63, 0x08, 0x64, 0xd7, 0x09, 0x13, 0x26, 0xd4, 0x90,
- 0xe4, 0xeb, 0xaf, 0xbf, 0x4e, 0x00, 0xa9, 0x32, 0xa3, 0xf8, 0xdd, 0xb1,
- 0x63, 0xc7, 0x48, 0x92, 0x01, 0x01, 0x01, 0x6f, 0xc8, 0x7b, 0x5b, 0xfc,
- 0xc2, 0x77, 0x11, 0x7a, 0x0c, 0x19, 0x32, 0x64, 0x2f, 0x49, 0xf6, 0xeb,
- 0xd7, 0x6f, 0xb7, 0x51, 0xad, 0xf7, 0x5a, 0xa3, 0xdf, 0x39, 0x66, 0xcc,
- 0x98, 0xfd, 0x24, 0x59, 0x5a, 0x5a, 0x4a, 0x00, 0x83, 0x64, 0x0a, 0x9c,
- 0x7d, 0xe8, 0xd0, 0x21, 0x63, 0x59, 0xb0, 0x41, 0x8a, 0x82, 0xf9, 0xe1,
- 0xf6, 0x07, 0xd0, 0x6f, 0xd9, 0xb2, 0x65, 0xdf, 0x27, 0x00, 0x42, 0x55,
- 0x55, 0x9b, 0x4c, 0x91, 0x43, 0x64, 0xf0, 0x27, 0x0d, 0x1d, 0x3a, 0xb4,
- 0x96, 0x24, 0x75, 0x5d, 0x67, 0x58, 0x58, 0xd8, 0x66, 0x1f, 0x59, 0x89,
- 0x22, 0x67, 0xbc, 0xd0, 0xe9, 0xd3, 0xa7, 0x5f, 0x31, 0xd6, 0xba, 0x79,
- 0x79, 0x79, 0x04, 0xb0, 0xd2, 0x66, 0xb3, 0xdd, 0x85, 0x6f, 0xb7, 0xbf,
- 0x22, 0x01, 0x2c, 0xbc, 0x7c, 0xf9, 0x32, 0x9f, 0x7d, 0xf6, 0xd9, 0x26,
- 0x00, 0x8f, 0xe5, 0xe6, 0xe6, 0x5e, 0x30, 0x2d, 0x01, 0xee, 0xf1, 0x2a,
- 0xa8, 0x06, 0x00, 0xc8, 0xbd, 0x74, 0xe9, 0x12, 0x49, 0xb2, 0xb6, 0xb6,
- 0x96, 0x95, 0x95, 0x95, 0xdf, 0xac, 0xb9, 0xc7, 0x8f, 0x1f, 0x7f, 0x19,
- 0x40, 0x6f, 0xb9, 0x36, 0x77, 0x01, 0x78, 0xea, 0xe0, 0xc1, 0x83, 0x24,
- 0xa9, 0xb7, 0xb7, 0xb7, 0xf3, 0xe8, 0xd1, 0xa3, 0xac, 0xad, 0xad, 0x35,
- 0xd7, 0x00, 0x16, 0xca, 0x5d, 0x07, 0xef, 0x1d, 0x09, 0x27, 0x80, 0xc4,
- 0xf9, 0xf3, 0xe7, 0xbb, 0x49, 0x32, 0x3d, 0x3d, 0xbd, 0x0e, 0xc0, 0xdd,
- 0x52, 0xb0, 0x6e, 0xc8, 0xd2, 0x84, 0x10, 0x09, 0x00, 0x76, 0x9c, 0x3f,
- 0x7f, 0xfe, 0x86, 0x7a, 0x81, 0x0c, 0xf0, 0x65, 0x26, 0x7f, 0x01, 0x20,
- 0x3c, 0x22, 0x22, 0xa2, 0x9c, 0x24, 0x1b, 0x1b, 0x1b, 0x69, 0xb3, 0xd9,
- 0x3e, 0x03, 0xb0, 0xe8, 0xbe, 0xfb, 0xee, 0xfb, 0xe6, 0xe2, 0x9e, 0x3d,
- 0x7b, 0x6e, 0x95, 0x19, 0x88, 0xc5, 0x2f, 0x15, 0x21, 0x84, 0x3f, 0x80,
- 0xa4, 0xb2, 0xb2, 0x32, 0x9e, 0x38, 0x71, 0xc2, 0x28, 0x56, 0x75, 0xf2,
- 0x6e, 0x06, 0xe0, 0xce, 0x47, 0x1f, 0x7d, 0xf4, 0x73, 0x92, 0x5c, 0xb3,
- 0x66, 0x0d, 0x01, 0x0c, 0x96, 0x02, 0x30, 0xc9, 0xa8, 0x0b, 0x04, 0x05,
- 0x05, 0x79, 0x0b, 0x80, 0xb1, 0x96, 0xbe, 0xf7, 0x16, 0x02, 0x00, 0x53,
- 0xa1, 0x2b, 0x0a, 0xc0, 0xd3, 0xd3, 0xa7, 0x4f, 0x6f, 0x31, 0x1e, 0xd4,
- 0xb8, 0xb8, 0xb8, 0xaf, 0x01, 0xf4, 0x96, 0x05, 0x3c, 0x73, 0xf0, 0xdb,
- 0xe5, 0xec, 0xdb, 0x79, 0xe4, 0xc8, 0x91, 0x15, 0xb3, 0x67, 0xcf, 0xbe,
- 0x68, 0xcc, 0x6e, 0xf9, 0xf9, 0xf9, 0x04, 0xf0, 0x80, 0x0c, 0x1c, 0x07,
- 0x80, 0xfe, 0x0b, 0x17, 0x2e, 0xf4, 0xd4, 0xd5, 0xd5, 0x11, 0x40, 0x09,
- 0x80, 0x09, 0xcf, 0x3f, 0xff, 0x7c, 0x93, 0x2c, 0x4c, 0x36, 0x01, 0xe8,
- 0xe7, 0x70, 0x38, 0xcc, 0x7e, 0xfb, 0x05, 0x04, 0x04, 0x4c, 0xcb, 0xcf,
- 0xcf, 0xbf, 0x94, 0x9b, 0x9b, 0xdb, 0x06, 0xe0, 0x25, 0x00, 0x53, 0x12,
- 0x13, 0x13, 0xcf, 0x99, 0xd6, 0xd5, 0x2f, 0x4a, 0xa1, 0xf0, 0x07, 0x30,
- 0xf1, 0xf0, 0xe1, 0xc3, 0x94, 0x82, 0x72, 0x15, 0x40, 0x11, 0x80, 0x15,
- 0x6f, 0xbe, 0xf9, 0x26, 0x49, 0xf2, 0x85, 0x17, 0x5e, 0x68, 0x96, 0x33,
- 0xb4, 0x77, 0xf1, 0x33, 0x02, 0xc0, 0x6a, 0xa3, 0x70, 0x08, 0x60, 0xb6,
- 0x14, 0x0a, 0xef, 0xf3, 0x1d, 0x21, 0x00, 0x72, 0x8d, 0x2c, 0x63, 0xca,
- 0x94, 0x29, 0x9e, 0xe4, 0xe4, 0xe4, 0xfd, 0x9b, 0x37, 0x6f, 0x36, 0xfb,
- 0x3b, 0x4c, 0x0a, 0x8a, 0x21, 0xbc, 0x29, 0x79, 0x79, 0x79, 0xdf, 0x08,
- 0xc5, 0xe9, 0xd3, 0xa7, 0x49, 0x92, 0x47, 0x8f, 0x1e, 0xd5, 0x49, 0xb2,
- 0x5b, 0xb7, 0x6e, 0x5b, 0x2c, 0x01, 0xb8, 0x3d, 0xb1, 0xc9, 0x07, 0x20,
- 0x14, 0x40, 0xa0, 0xa2, 0x28, 0x7e, 0xf0, 0x7d, 0x60, 0xc8, 0x98, 0x19,
- 0x57, 0x92, 0xe4, 0xcb, 0x2f, 0xbf, 0xdc, 0x26, 0xd3, 0x44, 0x87, 0x8f,
- 0xb6, 0x5d, 0x87, 0x0c, 0x19, 0xb2, 0xc3, 0x54, 0x01, 0x1f, 0x21, 0x83,
- 0x75, 0x76, 0x5d, 0x5d, 0x1d, 0x49, 0x52, 0x08, 0x51, 0x2a, 0x45, 0xc1,
- 0x8c, 0xe3, 0x07, 0x0a, 0x80, 0x5d, 0xa6, 0xbd, 0x0b, 0xde, 0x7b, 0xef,
- 0x3d, 0x92, 0xe4, 0x17, 0x5f, 0x7c, 0xc1, 0xe8, 0xe8, 0xe8, 0xed, 0x00,
- 0xe2, 0x55, 0x55, 0x0d, 0x36, 0xfb, 0xe0, 0x74, 0x3a, 0x03, 0x00, 0xfc,
- 0x5a, 0xae, 0xc9, 0x87, 0xca, 0xe0, 0x1a, 0x00, 0xe0, 0x43, 0x5d, 0xd7,
- 0x8d, 0x54, 0x7c, 0xa9, 0xac, 0x49, 0xb8, 0x00, 0xcc, 0x6e, 0x69, 0x69,
- 0x61, 0x79, 0x79, 0xb9, 0x5e, 0x54, 0x54, 0xd4, 0x56, 0x50, 0x50, 0xe0,
- 0x7e, 0xff, 0xfd, 0xf7, 0x75, 0x63, 0xfd, 0x9c, 0x9d, 0x9d, 0x4d, 0x5c,
- 0xdf, 0xb7, 0x87, 0x5c, 0xc2, 0xf8, 0x4b, 0x7b, 0xe2, 0x01, 0xc4, 0x2a,
- 0x8a, 0xd2, 0x43, 0xda, 0x5d, 0x74, 0xe1, 0xc2, 0x05, 0x63, 0xc9, 0x53,
- 0x2a, 0xc5, 0xd2, 0x05, 0x60, 0x4c, 0x55, 0x55, 0x95, 0x71, 0xdf, 0x72,
- 0x79, 0xdd, 0x80, 0xd4, 0xd4, 0xd4, 0x43, 0xa6, 0x65, 0xd3, 0x40, 0xaf,
- 0x2c, 0xc3, 0x0e, 0xa0, 0x77, 0x6e, 0x6e, 0x6e, 0xb3, 0x14, 0x89, 0x56,
- 0x39, 0xfe, 0x7e, 0x3e, 0xc6, 0x3f, 0x2a, 0x3d, 0x3d, 0xbd, 0xda, 0xd4,
- 0xd7, 0x54, 0x00, 0xc3, 0x01, 0xac, 0xbf, 0x78, 0xf1, 0x22, 0x4d, 0xb5,
- 0x9b, 0x60, 0xd9, 0xaf, 0x5d, 0x08, 0xd1, 0x15, 0xc0, 0xb8, 0x07, 0x1f,
- 0x7c, 0xf0, 0x60, 0x69, 0x69, 0x29, 0x57, 0xaf, 0x5e, 0x4d, 0x87, 0xc3,
- 0x71, 0xd8, 0xb0, 0x53, 0x16, 0x34, 0xc3, 0xac, 0x70, 0xf9, 0xf9, 0x57,
- 0xf0, 0xbd, 0x71, 0x02, 0x98, 0xde, 0xbd, 0x7b, 0xf7, 0x95, 0x11, 0x11,
- 0x11, 0xa5, 0xba, 0xae, 0x87, 0xc1, 0xf7, 0x76, 0x8f, 0x0d, 0x40, 0xd0,
- 0xa4, 0x49, 0x93, 0x32, 0x01, 0xe0, 0xb5, 0xd7, 0x5e, 0xab, 0x00, 0x70,
- 0x11, 0xdf, 0xee, 0xb5, 0x9b, 0xe9, 0xa8, 0xae, 0xae, 0x3e, 0x01, 0x00,
- 0x71, 0x71, 0x71, 0x90, 0x0f, 0x78, 0x37, 0x00, 0x7d, 0xba, 0x77, 0xef,
- 0x8e, 0xb3, 0x67, 0xcf, 0x82, 0xe4, 0x97, 0x00, 0xdc, 0x7f, 0x4f, 0x22,
- 0x22, 0xab, 0xfa, 0xe9, 0x9b, 0x36, 0x6d, 0x7a, 0xe5, 0xe1, 0x87, 0x1f,
- 0xc6, 0x8a, 0x15, 0x2b, 0x10, 0x1b, 0x1b, 0xbb, 0xaa, 0xae, 0xae, 0x6e,
- 0x01, 0x80, 0x36, 0x4d, 0xd3, 0x84, 0xaa, 0xaa, 0x46, 0x60, 0x88, 0xb6,
- 0xb6, 0x36, 0xe5, 0xe9, 0xa7, 0x9f, 0x7e, 0xef, 0xd8, 0xb1, 0x63, 0xef,
- 0xe6, 0xe4, 0xe4, 0xec, 0x96, 0x82, 0xd7, 0x01, 0xe0, 0xe0, 0xf9, 0xf3,
- 0xe7, 0x8d, 0x8c, 0xc2, 0x85, 0x6f, 0x4f, 0x1f, 0xb6, 0xd5, 0xd6, 0xd6,
- 0x62, 0xf8, 0xf0, 0xe1, 0x62, 0xe2, 0xc4, 0x89, 0x7e, 0xd9, 0xd9, 0xd9,
- 0xf6, 0x51, 0xa3, 0x46, 0x09, 0x92, 0x4c, 0x4d, 0x4d, 0x45, 0x4a, 0x4a,
- 0x0a, 0x4c, 0x05, 0x4c, 0x68, 0x9a, 0xc6, 0xd4, 0xd4, 0xd4, 0xe5, 0xd3,
- 0xa6, 0x4d, 0xfb, 0xd3, 0xb0, 0x61, 0xc3, 0xfe, 0xa0, 0xeb, 0xba, 0x43,
- 0x8a, 0x99, 0xd3, 0xe1, 0xb8, 0xae, 0x8f, 0xba, 0xae, 0xb7, 0xe2, 0xdb,
- 0x93, 0x75, 0x5f, 0xd6, 0xd4, 0xd4, 0x5c, 0x8f, 0x6a, 0xbb, 0xdd, 0x4f,
- 0x8e, 0xad, 0x50, 0x14, 0x45, 0x01, 0x80, 0x96, 0x96, 0x16, 0x00, 0x68,
- 0xf3, 0x21, 0x8e, 0x43, 0xc7, 0x8d, 0x1b, 0x17, 0x00, 0x00, 0xeb, 0xd7,
- 0xaf, 0xff, 0x10, 0xc0, 0x15, 0x1f, 0x63, 0x28, 0x00, 0x28, 0xbd, 0x7a,
- 0xf5, 0xea, 0x02, 0x00, 0x17, 0x2e, 0x5c, 0x00, 0x80, 0x5a, 0xd9, 0xf6,
- 0x84, 0xe1, 0xaf, 0xd3, 0xe9, 0x0c, 0x34, 0xed, 0x4a, 0x88, 0xf0, 0xf0,
- 0xf0, 0x5e, 0x00, 0xe2, 0xb6, 0x6f, 0xdf, 0xfe, 0xd1, 0xd4, 0xa9, 0x53,
- 0x47, 0x4f, 0x9b, 0x36, 0xed, 0x61, 0xb7, 0xdb, 0xbd, 0xaf, 0x5f, 0xbf,
- 0x7e, 0xa8, 0xad, 0xad, 0x05, 0xc9, 0x83, 0x00, 0xda, 0xad, 0x10, 0xba,
- 0xfd, 0x08, 0xcf, 0xce, 0xce, 0x3e, 0x40, 0x92, 0x1f, 0x7c, 0xf0, 0x81,
- 0xf7, 0xf6, 0x90, 0x99, 0x20, 0x00, 0xe3, 0x77, 0xed, 0xda, 0x65, 0xb4,
- 0x7b, 0x54, 0x06, 0xa2, 0x2f, 0x02, 0x00, 0xfc, 0x8b, 0xb1, 0x97, 0x1c,
- 0x13, 0x13, 0x53, 0x0b, 0x60, 0x65, 0x46, 0x46, 0xc6, 0x45, 0xd3, 0xb2,
- 0x60, 0x90, 0x8f, 0xd9, 0xcb, 0x01, 0x20, 0xde, 0x94, 0x01, 0x9c, 0xc2,
- 0x77, 0xb7, 0x01, 0x6d, 0x00, 0xa2, 0x8d, 0x8a, 0x7f, 0x75, 0x75, 0x35,
- 0x13, 0x13, 0x13, 0xcf, 0xa4, 0xa6, 0xa6, 0xd6, 0x8c, 0x1e, 0x3d, 0xfa,
- 0x7f, 0xd2, 0xd2, 0xd2, 0xf6, 0x25, 0x24, 0x24, 0x6c, 0x97, 0xa9, 0xb1,
- 0x21, 0x64, 0x9d, 0xbb, 0x77, 0xef, 0xfe, 0x0e, 0x49, 0xee, 0xdf, 0xbf,
- 0x9f, 0x00, 0xb6, 0x01, 0x28, 0x4c, 0x4e, 0x4e, 0xbe, 0x48, 0x92, 0x9f,
- 0x7f, 0xfe, 0x39, 0x01, 0x64, 0x4b, 0x61, 0xb0, 0xfb, 0xf9, 0xf9, 0xdd,
- 0x01, 0xe0, 0xdf, 0xe4, 0x12, 0x67, 0x2e, 0x80, 0x82, 0xc9, 0x93, 0x27,
- 0xb7, 0x92, 0x64, 0x76, 0x76, 0x76, 0x0b, 0x80, 0x7f, 0x17, 0x42, 0x84,
- 0x9b, 0x53, 0xee, 0xf8, 0xf8, 0xf8, 0xad, 0x24, 0xf9, 0xe5, 0x97, 0x5f,
- 0x12, 0xc0, 0x56, 0x00, 0xaf, 0xa6, 0xa5, 0xa5, 0x5d, 0x32, 0x8d, 0xeb,
- 0x68, 0x39, 0xfb, 0x2b, 0x00, 0xee, 0x48, 0x4a, 0x4a, 0xfa, 0x6f, 0x92,
- 0xdc, 0xb0, 0x61, 0x03, 0x01, 0xbc, 0x0e, 0xe0, 0xad, 0x1d, 0x3b, 0x76,
- 0x50, 0x16, 0xe9, 0x8e, 0x00, 0xb8, 0xd3, 0xcb, 0xef, 0x70, 0x55, 0x55,
- 0xd7, 0x91, 0xe4, 0xb9, 0x73, 0xe7, 0x8c, 0xca, 0x7e, 0xa7, 0x9b, 0x8c,
- 0x7f, 0x44, 0x5c, 0x5c, 0xdc, 0x87, 0x24, 0xd9, 0xd0, 0xd0, 0x40, 0x55,
- 0x55, 0xf7, 0x02, 0x58, 0x14, 0x17, 0x17, 0x77, 0xc6, 0xf8, 0x9b, 0xf4,
- 0xcb, 0x10, 0x01, 0x3f, 0x00, 0x79, 0x2d, 0x2d, 0x2d, 0x46, 0x61, 0x71,
- 0x37, 0x80, 0x65, 0x4f, 0x3c, 0xf1, 0xc4, 0x65, 0x92, 0x5c, 0xbc, 0x78,
- 0xb1, 0x2e, 0x45, 0xdc, 0x61, 0x85, 0xcb, 0xed, 0x47, 0xa7, 0x94, 0x94,
- 0x94, 0x9a, 0xba, 0xba, 0x3a, 0x16, 0x17, 0x17, 0x53, 0xa6, 0xc6, 0x76,
- 0x1f, 0xed, 0x22, 0x23, 0x23, 0x23, 0xff, 0x48, 0x92, 0x59, 0x59, 0x59,
- 0x5f, 0x99, 0xab, 0xe6, 0x37, 0xc9, 0x16, 0xba, 0x0f, 0x1b, 0x36, 0xac,
- 0xc6, 0x58, 0x53, 0x9e, 0x3a, 0x75, 0x8a, 0x24, 0xd9, 0xdc, 0xdc, 0x4c,
- 0x97, 0xcb, 0x65, 0xac, 0x27, 0x7d, 0xa5, 0xf6, 0xbd, 0x4a, 0x4a, 0x4a,
- 0x48, 0x92, 0x39, 0x39, 0x39, 0xa7, 0x64, 0xe6, 0xa0, 0x78, 0xb5, 0x19,
- 0x66, 0xac, 0x6f, 0x7d, 0x51, 0x56, 0x56, 0x46, 0x5c, 0x3f, 0x07, 0x60,
- 0x37, 0x09, 0xd2, 0x08, 0xa3, 0xea, 0x6f, 0x5e, 0xe3, 0x92, 0x64, 0x7c,
- 0x7c, 0xfc, 0xdf, 0x64, 0xc0, 0xd9, 0xe4, 0x24, 0x6c, 0x14, 0x19, 0x8d,
- 0x23, 0xb8, 0x7d, 0xe6, 0xcd, 0x9b, 0xd7, 0x28, 0x53, 0xef, 0xf3, 0x00,
- 0x62, 0x64, 0xad, 0xc0, 0x2c, 0x78, 0xbf, 0x2d, 0x2e, 0x2e, 0xa6, 0xb7,
- 0xbf, 0x9a, 0xa6, 0x11, 0xc0, 0x9f, 0xbd, 0x2a, 0xf5, 0x41, 0x00, 0x1e,
- 0x5d, 0xbd, 0x7a, 0x35, 0x8d, 0xc2, 0x9b, 0x71, 0xd0, 0xe7, 0x9d, 0x77,
- 0xde, 0x21, 0x80, 0xa7, 0xe4, 0xb1, 0x65, 0x33, 0x61, 0x29, 0x29, 0x29,
- 0x7f, 0x35, 0x1d, 0x76, 0x4a, 0xc5, 0x8d, 0x87, 0xaf, 0xcc, 0x04, 0x02,
- 0x78, 0x68, 0xe9, 0xd2, 0xa5, 0xdf, 0xb1, 0x87, 0x24, 0x63, 0x63, 0x63,
- 0x4f, 0x00, 0xf8, 0x95, 0xe1, 0x83, 0x2c, 0x22, 0xf6, 0x1d, 0x37, 0x6e,
- 0x9c, 0xdb, 0x68, 0x63, 0xec, 0xd6, 0x48, 0x71, 0x5c, 0x20, 0x77, 0x6c,
- 0x14, 0x2b, 0x5c, 0x7e, 0xe6, 0x75, 0xbc, 0xef, 0x44, 0xaa, 0xcd, 0xe6,
- 0xef, 0xf1, 0x78, 0xee, 0xc6, 0xf5, 0x93, 0x6a, 0x97, 0xfd, 0xfd, 0xfd,
- 0xf7, 0xb5, 0xb6, 0xb6, 0x5e, 0xc1, 0x8d, 0x67, 0xe9, 0x05, 0x80, 0xce,
- 0xcf, 0x3c, 0xf3, 0xcc, 0x85, 0x49, 0x93, 0x26, 0x61, 0xd0, 0xa0, 0x41,
- 0x0b, 0x01, 0x2c, 0x07, 0x70, 0x09, 0xbe, 0x5f, 0x40, 0x11, 0x36, 0x9b,
- 0x2d, 0xc0, 0xe3, 0xf1, 0xdc, 0x11, 0x15, 0x15, 0xb5, 0x72, 0xd6, 0xac,
- 0x59, 0xbf, 0x09, 0x0a, 0x0a, 0x52, 0xce, 0x9d, 0x3b, 0x77, 0xad, 0xb0,
- 0xb0, 0xf0, 0xbf, 0x5a, 0x5b, 0x5b, 0xf3, 0x14, 0x45, 0x69, 0xd4, 0x75,
- 0xfd, 0x9a, 0x8f, 0x5d, 0x86, 0xe0, 0x01, 0x03, 0x06, 0x6c, 0x8d, 0x8f,
- 0x8f, 0x0f, 0xfe, 0xea, 0xab, 0xaf, 0xf6, 0x57, 0x55, 0x55, 0x3d, 0x2b,
- 0xd3, 0x57, 0xb3, 0xb8, 0xf4, 0x49, 0x49, 0x49, 0xf9, 0x63, 0xd7, 0xae,
- 0x5d, 0x75, 0x5d, 0xd7, 0x55, 0xb3, 0x0d, 0xaa, 0xaa, 0xea, 0x47, 0x8f,
- 0x1e, 0x6d, 0xfe, 0xec, 0xb3, 0xcf, 0x46, 0x03, 0xb8, 0x2a, 0x53, 0x6e,
- 0xc5, 0x66, 0xb3, 0x85, 0x7a, 0x3c, 0x9e, 0xe4, 0xe4, 0xe4, 0xe4, 0x97,
- 0x32, 0x32, 0x32, 0x12, 0x5d, 0x2e, 0x17, 0x1a, 0x1a, 0x1a, 0xda, 0x8a,
- 0x8a, 0x8a, 0xfe, 0x74, 0xf5, 0xea, 0xd5, 0x57, 0x54, 0x55, 0x3d, 0x23,
- 0x8f, 0xba, 0xfa, 0xf2, 0x27, 0xa8, 0x4f, 0x9f, 0x3e, 0xbf, 0x1f, 0x32,
- 0x64, 0xc8, 0xdd, 0xc7, 0x8f, 0x1f, 0x3f, 0x52, 0x55, 0x55, 0x35, 0x45,
- 0xf6, 0x6d, 0xb4, 0x55, 0x6d, 0x36, 0x5b, 0x27, 0xd9, 0x7f, 0xde, 0xd8,
- 0xb1, 0x63, 0xe3, 0x5d, 0x2e, 0x17, 0xea, 0xea, 0xea, 0x5a, 0xf3, 0xf2,
- 0xf2, 0x36, 0x02, 0x58, 0x2c, 0x84, 0xb8, 0x40, 0xd2, 0xf0, 0x57, 0x55,
- 0x14, 0xa5, 0xb3, 0xae, 0xeb, 0xff, 0xfc, 0xe4, 0x93, 0x4f, 0x2e, 0x4e,
- 0x4e, 0x4e, 0xee, 0xa9, 0x69, 0x1a, 0x3e, 0xfd, 0xf4, 0xd3, 0xba, 0xb2,
- 0xb2, 0xb2, 0x7c, 0x45, 0x51, 0xfe, 0x2c, 0x8f, 0x32, 0x9b, 0xcf, 0xeb,
- 0x07, 0x74, 0xee, 0xdc, 0x79, 0xd1, 0x23, 0x8f, 0x3c, 0x92, 0x72, 0xe8,
- 0xd0, 0xa1, 0xb6, 0x7d, 0xfb, 0xf6, 0x65, 0x02, 0x38, 0x0b, 0xdf, 0x2f,
- 0x3f, 0xa9, 0xaa, 0xaa, 0x86, 0x6a, 0x9a, 0x96, 0x9c, 0x96, 0x96, 0xb6,
- 0x70, 0xe4, 0xc8, 0x91, 0x7d, 0xfd, 0xfd, 0xfd, 0xd1, 0xd0, 0xd0, 0xd0,
- 0x51, 0x5c, 0x5c, 0xfc, 0x6e, 0x53, 0x53, 0xd3, 0xcb, 0xaa, 0xaa, 0xd6,
- 0x6b, 0x9a, 0xd6, 0x2c, 0x7d, 0x50, 0x54, 0x55, 0x0d, 0xd1, 0x34, 0xad,
- 0x5f, 0x52, 0x52, 0x52, 0xf1, 0xf8, 0xf1, 0xe3, 0xfb, 0x07, 0x06, 0x06,
- 0xe2, 0xe0, 0xc1, 0x83, 0x57, 0x0a, 0x0a, 0x0a, 0x5e, 0x05, 0xb0, 0x5e,
- 0xda, 0xef, 0xb6, 0x42, 0xe8, 0x36, 0x13, 0x00, 0xf9, 0x37, 0x9b, 0x0c,
- 0x3e, 0xe3, 0x6d, 0x31, 0xef, 0x17, 0x3f, 0x84, 0xd3, 0xe9, 0x0c, 0x68,
- 0x6b, 0x6b, 0x1b, 0x20, 0x67, 0x97, 0xbd, 0x42, 0x88, 0x2b, 0xb7, 0x78,
- 0x20, 0x84, 0xa2, 0x28, 0x2e, 0x5d, 0xd7, 0x03, 0xe5, 0x8c, 0xe7, 0xc0,
- 0xf5, 0xb3, 0xf0, 0xcd, 0x8a, 0xa2, 0x5c, 0xd5, 0x75, 0xdd, 0xd7, 0x7a,
- 0x52, 0xa8, 0xaa, 0xea, 0xa7, 0x69, 0x9a, 0x5d, 0xa6, 0xa5, 0xed, 0x36,
- 0x9b, 0xad, 0xdd, 0xe3, 0xf1, 0xb8, 0xbd, 0xc4, 0xc5, 0xe5, 0xf1, 0x78,
- 0xec, 0xb2, 0x5f, 0xef, 0x59, 0xc9, 0x03, 0xa0, 0x59, 0x55, 0x55, 0xb7,
- 0xa6, 0x69, 0xed, 0xb8, 0xf1, 0xe5, 0x98, 0x00, 0xf9, 0xc2, 0x4e, 0x90,
- 0xf4, 0xd9, 0xdb, 0x1e, 0x9f, 0x6f, 0x1d, 0xaa, 0xaa, 0xea, 0xd0, 0x34,
- 0xcd, 0x4f, 0xfa, 0xe0, 0xf6, 0x61, 0x93, 0x51, 0x5f, 0x09, 0x90, 0x7d,
- 0x1b, 0xfd, 0xb7, 0x00, 0xb8, 0xaa, 0x28, 0x4a, 0xb3, 0x0f, 0x7f, 0x6d,
- 0xa6, 0xf6, 0xc6, 0x52, 0xaa, 0x05, 0xc0, 0x55, 0x21, 0x44, 0xb3, 0xf7,
- 0xcb, 0x3a, 0x42, 0x08, 0x3b, 0x49, 0xa7, 0x1c, 0x97, 0x0e, 0xe9, 0x5f,
- 0x1b, 0x6e, 0xfe, 0xa6, 0xa4, 0x51, 0xdc, 0x35, 0xec, 0x51, 0x65, 0x5d,
- 0xe1, 0x8a, 0xb4, 0xc7, 0xfb, 0x5a, 0x55, 0x08, 0xe1, 0x22, 0x19, 0x2c,
- 0x0b, 0xc2, 0xfe, 0x00, 0x1a, 0x4c, 0xf6, 0x58, 0xc1, 0x7f, 0x9b, 0x0a,
- 0xc0, 0x8f, 0x29, 0x20, 0x1a, 0xfb, 0xe4, 0xbe, 0x44, 0xe2, 0xfb, 0xee,
- 0xf9, 0x43, 0x5e, 0x1b, 0xf6, 0xbe, 0x86, 0xff, 0x80, 0x2f, 0xbc, 0x85,
- 0x1f, 0xca, 0x8f, 0xb4, 0xe7, 0xc7, 0x8e, 0xd3, 0x8f, 0xe9, 0x5f, 0xc1,
- 0x8d, 0xaf, 0x03, 0xeb, 0x3f, 0xc1, 0xd8, 0xdc, 0xac, 0xff, 0x5b, 0xbd,
- 0x5e, 0xfd, 0xf7, 0xb4, 0xb7, 0xf8, 0x19, 0xf1, 0x7f, 0x2c, 0x2e, 0x06,
- 0x08, 0x9c, 0x01, 0xc9, 0x62, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e,
- 0x44, 0xae, 0x42, 0x60, 0x82
-};
-
-unsigned int cc_fps_images_len(void)
-{
- return sizeof(cc_fps_images_png);
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/ccFPSImages.h b/cappuccino-sdk/incl/cocos2dx/ccFPSImages.h
deleted file mode 100644
index 20807f8..0000000
--- a/cappuccino-sdk/incl/cocos2dx/ccFPSImages.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * cocos2d for iPhone: http://www.cocos2d-iphone.org
- *
- * Copyright (c) 2012 Zynga Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * 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.
- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern unsigned char cc_fps_images_png[];
-unsigned int cc_fps_images_len(void);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCAffineTransform.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCAffineTransform.h
deleted file mode 100644
index 6bc8b35..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCAffineTransform.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __COCOA_CGAFFINETRANSFORM_H__
-#define __COCOA_CGAFFINETRANSFORM_H__
-
-#include "CCGeometry.h"
-#include "platform/CCPlatformMacros.h"
-
-NS_CC_BEGIN
-
-struct CCAffineTransform {
- float a, b, c, d;
- float tx, ty;
-};
-
-CC_DLL CCAffineTransform __CCAffineTransformMake(float a, float b, float c, float d, float tx, float ty);
-#define CCAffineTransformMake __CCAffineTransformMake
-
-CC_DLL CCPoint __CCPointApplyAffineTransform(const CCPoint& point, const CCAffineTransform& t);
-#define CCPointApplyAffineTransform __CCPointApplyAffineTransform
-
-CC_DLL CCSize __CCSizeApplyAffineTransform(const CCSize& size, const CCAffineTransform& t);
-#define CCSizeApplyAffineTransform __CCSizeApplyAffineTransform
-
-CC_DLL CCAffineTransform CCAffineTransformMakeIdentity();
-CC_DLL CCRect CCRectApplyAffineTransform(const CCRect& rect, const CCAffineTransform& anAffineTransform);
-
-CC_DLL CCAffineTransform CCAffineTransformTranslate(const CCAffineTransform& t, float tx, float ty);
-CC_DLL CCAffineTransform CCAffineTransformRotate(const CCAffineTransform& aTransform, float anAngle);
-CC_DLL CCAffineTransform CCAffineTransformScale(const CCAffineTransform& t, float sx, float sy);
-CC_DLL CCAffineTransform CCAffineTransformConcat(const CCAffineTransform& t1, const CCAffineTransform& t2);
-CC_DLL bool CCAffineTransformEqualToTransform(const CCAffineTransform& t1, const CCAffineTransform& t2);
-CC_DLL CCAffineTransform CCAffineTransformInvert(const CCAffineTransform& t);
-
-extern CC_DLL const CCAffineTransform CCAffineTransformIdentity;
-
-NS_CC_END
-
-#endif // __COCOA_CGAFFINETRANSFORM_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCArray.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCArray.h
deleted file mode 100644
index a09c199..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCArray.h
+++ /dev/null
@@ -1,254 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 ForzeField Studios S.L. http://forzefield.com
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __CCARRAY_H__
-#define __CCARRAY_H__
-
-#include "support/data_support/ccCArray.h"
-
-/**
- * @addtogroup data_structures
- * @{
- */
-
-/** @def CCARRAY_FOREACH
-A convenience macro to iterate over a CCArray using. It is faster than the "fast enumeration" interface.
-@since v0.99.4
-*/
-
-/*
-In cocos2d-iphone 1.0.0, This macro have been update to like this:
-
-#define CCARRAY_FOREACH(__array__, __object__) \
-if (__array__ && __array__->data->num > 0) \
-for(id *__arr__ = __array__->data->arr, *end = __array__->data->arr + __array__->data->num-1; \
-__arr__ <= end && ((__object__ = *__arr__) != nil || true); \
-__arr__++)
-
-I found that it's not work in C++. So it keep what it's look like in version 1.0.0-rc3. ---By Bin
-*/
-#define CCARRAY_FOREACH(__array__, __object__) \
- if ((__array__) && (__array__)->data->num > 0) \
- for(CCObject** __arr__ = (__array__)->data->arr, **__end__ = (__array__)->data->arr + (__array__)->data->num-1; \
- __arr__ <= __end__ && (((__object__) = *__arr__) != NULL/* || true*/); \
- __arr__++)
-
-#define CCARRAY_FOREACH_REVERSE(__array__, __object__) \
- if ((__array__) && (__array__)->data->num > 0) \
- for(CCObject** __arr__ = (__array__)->data->arr + (__array__)->data->num-1, **__end__ = (__array__)->data->arr; \
- __arr__ >= __end__ && (((__object__) = *__arr__) != NULL/* || true*/); \
- __arr__--)
-
-#if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
-#define CCARRAY_VERIFY_TYPE(__array__, __type__) \
- do { \
- if ((__array__) && (__array__)->data->num > 0) \
- for(CCObject** __arr__ = (__array__)->data->arr, \
- **__end__ = (__array__)->data->arr + (__array__)->data->num-1; __arr__ <= __end__; __arr__++) \
- CCAssert(dynamic_cast<__type__>(*__arr__), "element type is wrong!"); \
- } while(false)
-#else
-#define CCARRAY_VERIFY_TYPE(__array__, __type__) void(0)
-#endif
-
-#define arrayMakeObjectsPerformSelector(pArray, func, elementType) \
-do { \
- if(pArray && pArray->count() > 0) \
- { \
- CCObject* child; \
- CCARRAY_FOREACH(pArray, child) \
- { \
- elementType pNode = (elementType) child; \
- if(pNode) \
- { \
- pNode->func(); \
- } \
- } \
- } \
-} \
-while(false)
-
-#define arrayMakeObjectsPerformSelectorWithObject(pArray, func, pObject, elementType) \
-do { \
- if(pArray && pArray->count() > 0) \
- { \
- CCObject* child = NULL; \
- CCARRAY_FOREACH(pArray, child) \
- { \
- elementType pNode = (elementType) child; \
- if(pNode) \
- { \
- pNode->func(pObject); \
- } \
- } \
- } \
-} \
-while(false)
-
-
-NS_CC_BEGIN
-/**
- * @js NA
- */
-class CC_DLL CCArray : public CCObject
-{
-public:
- /**
- * @lua NA
- */
- ~CCArray();
-
- /** Create an array */
- static CCArray* create();
- /** Create an array with some objects
- * @lua NA
- */
- static CCArray* create(CCObject* pObject, ...);
- /** Create an array with one object */
- static CCArray* createWithObject(CCObject* pObject);
- /** Create an array with capacity */
- static CCArray* createWithCapacity(unsigned int capacity);
- /** Create an array with an existing array */
- static CCArray* createWithArray(CCArray* otherArray);
- /**
- @brief Generate a CCArray pointer by file
- @param pFileName The file name of *.plist file
- @return The CCArray pointer generated from the file
- */
- static CCArray* createWithContentsOfFile(const char* pFileName);
-
- /*
- @brief The same meaning as arrayWithContentsOfFile(), but it doesn't call autorelease, so the
- invoker should call release().
- @lua NA
- */
- static CCArray* createWithContentsOfFileThreadSafe(const char* pFileName);
-
- /** Initializes an array
- * @lua NA
- */
- bool init();
- /** Initializes an array with one object
- * @lua NA
- */
- bool initWithObject(CCObject* pObject);
- /** Initializes an array with some objects
- * @lua NA
- */
- bool initWithObjects(CCObject* pObject, ...);
- /** Initializes an array with capacity
- * @lua NA
- */
- bool initWithCapacity(unsigned int capacity);
- /** Initializes an array with an existing array
- * @lua NA
- */
- bool initWithArray(CCArray* otherArray);
-
- // Querying an Array
-
- /** Returns element count of the array */
- unsigned int count() const;
- /** Returns capacity of the array */
- unsigned int capacity() const;
- /** Returns index of a certain object, return UINT_MAX if doesn't contain the object */
- unsigned int indexOfObject(CCObject* object) const;
- /** Returns an element with a certain index */
- CCObject* objectAtIndex(unsigned int index);
- /** Returns last element */
- CCObject* lastObject();
- /** Returns a random element */
- CCObject* randomObject();
- /** Returns a Boolean value that indicates whether object is present in array. */
- bool containsObject(CCObject* object) const;
- /** @since 1.1 */
- bool isEqualToArray(CCArray* pOtherArray);
- // Adding Objects
-
- /** Add a certain object */
- void addObject(CCObject* object);
- /** Add all elements of an existing array */
- void addObjectsFromArray(CCArray* otherArray);
- /** Insert a certain object at a certain index */
- void insertObject(CCObject* object, unsigned int index);
-
- // Removing Objects
-
- /** Remove last object */
- void removeLastObject(bool bReleaseObj = true);
- /** Remove a certain object */
- void removeObject(CCObject* object, bool bReleaseObj = true);
- /** Remove an element with a certain index */
- void removeObjectAtIndex(unsigned int index, bool bReleaseObj = true);
- /** Remove all elements */
- void removeObjectsInArray(CCArray* otherArray);
- /** Remove all objects */
- void removeAllObjects();
- /** Fast way to remove a certain object */
- void fastRemoveObject(CCObject* object);
- /** Fast way to remove an element with a certain index */
- void fastRemoveObjectAtIndex(unsigned int index);
-
- // Rearranging Content
-
- /** Swap two elements */
- void exchangeObject(CCObject* object1, CCObject* object2);
- /** Swap two elements with certain indexes */
- void exchangeObjectAtIndex(unsigned int index1, unsigned int index2);
-
- /** Replace object at index with another object. */
- void replaceObjectAtIndex(unsigned int uIndex, CCObject* pObject, bool bReleaseObject = true);
-
- /** Revers the array */
- void reverseObjects();
- /* Shrinks the array so the memory footprint corresponds with the number of items */
- void reduceMemoryFootprint();
-
- /** override functions
- * @js NA
- * @lua NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
-
- /* override functions */
- virtual void acceptVisitor(CCDataVisitor &visitor);
-
-public:
- ccArray* data;
- /**
- * @lua NA
- */
- CCArray();
- /**
- * @lua NA
- */
- CCArray(unsigned int capacity);
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif // __CCARRAY_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCAutoreleasePool.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCAutoreleasePool.h
deleted file mode 100644
index 5c83686..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCAutoreleasePool.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __AUTORELEASEPOOL_H__
-#define __AUTORELEASEPOOL_H__
-
-#include "CCObject.h"
-#include "CCArray.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup base_nodes
- * @{
- * @js NA
- * @lua NA
- */
-
-class CC_DLL CCAutoreleasePool : public CCObject
-{
- CCArray* m_pManagedObjectArray;
-public:
- CCAutoreleasePool(void);
- ~CCAutoreleasePool(void);
-
- void addObject(CCObject *pObject);
- void removeObject(CCObject *pObject);
-
- void clear();
-};
-
-/**
- * @js NA
- * @lua NA
- */
-class CC_DLL CCPoolManager
-{
- CCArray* m_pReleasePoolStack;
- CCAutoreleasePool* m_pCurReleasePool;
-
- CCAutoreleasePool* getCurReleasePool();
-public:
- CCPoolManager();
- ~CCPoolManager();
- void finalize();
- void push();
- void pop();
-
- void removeObject(CCObject* pObject);
- void addObject(CCObject* pObject);
-
- static CCPoolManager* sharedPoolManager();
- static void purgePoolManager();
-
- friend class CCAutoreleasePool;
-};
-
-// end of base_nodes group
-/// @}
-
-NS_CC_END
-
-#endif //__AUTORELEASEPOOL_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCBool.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCBool.h
deleted file mode 100644
index 51e5b79..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCBool.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
- Copyright (c) 2010-2012 cocos2d-x.org
-
- http://www.cocos2d-x.org
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- 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.
- ****************************************************************************/
-
-#ifndef __CCBOOL_H__
-#define __CCBOOL_H__
-
-#include "CCObject.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- * @js NA
- * @lua NA
- */
-
-class CC_DLL CCBool : public CCObject
-{
-public:
- CCBool(bool v)
- : m_bValue(v) {}
- bool getValue() const {return m_bValue;}
-
- static CCBool* create(bool v)
- {
- CCBool* pRet = new CCBool(v);
- if (pRet)
- {
- pRet->autorelease();
- }
- return pRet;
- }
-
- /* override functions */
- virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); }
-
-private:
- bool m_bValue;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif /* __CCBOOL_H__ */
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCDataVisitor.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCDataVisitor.h
deleted file mode 100644
index 28f01c9..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCDataVisitor.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
- Copyright (c) 2013 cocos2d-x.org
-
- http://www.cocos2d-x.org
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- 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.
- ****************************************************************************/
-
-#ifndef __CCDATAVISITOR_H__
-#define __CCDATAVISITOR_H__
-
-#include "platform/CCPlatformMacros.h"
-#include
-
-NS_CC_BEGIN
-
-class CCObject;
-class CCBool;
-class CCInteger;
-class CCFloat;
-class CCDouble;
-class CCString;
-class CCArray;
-class CCDictionary;
-class CCSet;
-
-/**
- * @addtogroup data_structures
- * @{
- */
-
-/**
- * Visitor that helps to perform action that depends on polymorphic object type
- *
- * Use cases:
- * - data serialization,
- * - pretty printing of \a CCObject *
- * - safe value reading from \a CCArray, \a CCDictionary, \a CCSet
- *
- * Usage:
- * 1. subclass CCDataVisitor
- * 2. overload visit() methods for object that you need to handle
- * 3. handle other objects in \a visitObject()
- * 4. pass your visitor to \a CCObject::acceptVisitor()
- * @js NA
- * @lua NA
- */
-class CC_DLL CCDataVisitor
-{
-public:
- virtual ~CCDataVisitor() {}
-
- /** default method, called from non-overloaded methods and for unrecognized objects */
- virtual void visitObject(const CCObject *p) = 0;
-
- virtual void visit(const CCBool *p);
- virtual void visit(const CCInteger *p);
- virtual void visit(const CCFloat *p);
- virtual void visit(const CCDouble *p);
- virtual void visit(const CCString *p);
- virtual void visit(const CCArray *p);
- virtual void visit(const CCDictionary *p);
- virtual void visit(const CCSet *p);
-};
-
-/**
- * @js NA
- * @lua NA
- */
-class CC_DLL CCPrettyPrinter : public CCDataVisitor
-{
-public:
- CCPrettyPrinter(int indentLevel = 0);
-
- virtual void clear();
- virtual std::string getResult();
-
- virtual void visitObject(const CCObject *p);
- virtual void visit(const CCBool * p);
- virtual void visit(const CCInteger *p);
- virtual void visit(const CCFloat *p);
- virtual void visit(const CCDouble *p);
- virtual void visit(const CCString *p);
- virtual void visit(const CCArray *p);
- virtual void visit(const CCDictionary *p);
- virtual void visit(const CCSet *p);
-private:
- void setIndentLevel(int indentLevel);
- int _indentLevel;
- std::string _indentStr;
- std::string _result;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif // __CCDATAVISITOR_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCDictionary.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCDictionary.h
deleted file mode 100644
index c86ae64..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCDictionary.h
+++ /dev/null
@@ -1,436 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012 - 2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCDICTIONARY_H__
-#define __CCDICTIONARY_H__
-
-#include "support/data_support/uthash.h"
-#include "CCObject.h"
-#include "CCArray.h"
-#include "CCString.h"
-
-NS_CC_BEGIN
-
-class CCDictionary;
-
-/**
- * @addtogroup data_structures
- * @{
- */
-
-
-/**
- * CCDictElement is used for traversing CCDictionary.
- *
- * A CCDictElement is one element of CCDictionary, it contains two properties, key and object.
- * Its key has two different type (integer and string).
- *
- * @note The key type is unique, all the elements in CCDictionary has the same key type(integer or string).
- * @code
- * CCDictElement* pElement;
- * CCDICT_FOREACH(dict, pElement)
- * {
- * const char*key = pElement->getStrKey();
- * // You certainly know the type of value, so we assume that it's a CCSprite.
- * CCSprite* pSprite = (CCSprite*)pElement->getObject();
- * // ......
- * }
- * @endcode
- * @js NA
- * @lua NA
- */
-class CC_DLL CCDictElement
-{
-private:
- /**
- * Constructor of CCDictElement. It's only for internal usage. CCDictionary is its friend class.
- *
- * @param pszKey The string key of this element.
- * @param pObject The object of this element.
- */
- CCDictElement(const char* pszKey, CCObject* pObject);
-
- /**
- * Constructor of CCDictElement. It's only for internal usage. CCDictionary is its friend class.
- *
- * @param iKey The integer key of this element.
- * @param pObject The object of this element.
- */
- CCDictElement(intptr_t iKey, CCObject* pObject);
-
-public:
- /**
- * The destructor of CCDictElement.
- */
- ~CCDictElement();
-
- // Inline functions need to be implemented in header file on Android.
-
- /**
- * Get the string key of this element.
- * @note This method assumes you know the key type in the element.
- * If the element's key type is integer, invoking this method will cause an assert.
- *
- * @return The string key of this element.
- */
- inline const char* getStrKey() const
- {
- CCAssert(m_szKey[0] != '\0', "Should not call this function for integer dictionary");
- return m_szKey;
- }
-
- /**
- * Get the integer key of this element.
- * @note This method assumes you know the key type in the element.
- * If the element's key type is string, invoking this method will cause an assert.
- *
- * @return The integer key of this element.
- */
- inline intptr_t getIntKey() const
- {
- CCAssert(m_szKey[0] == '\0', "Should not call this function for string dictionary");
- return m_iKey;
- }
-
- /**
- * Get the object of this element.
- *
- * @return The object of this element.
- */
- inline CCObject* getObject() const { return m_pObject; }
-
-private:
- // The max length of string key.
- #define MAX_KEY_LEN 256
- // char array is needed for HASH_ADD_STR in UT_HASH.
- // So it's a pain that all elements will allocate 256 bytes for this array.
- char m_szKey[MAX_KEY_LEN]; // hash key of string type
- intptr_t m_iKey; // hash key of integer type
- CCObject* m_pObject; // hash value
-public:
- UT_hash_handle hh; // makes this class hashable
- friend class CCDictionary; // declare CCDictionary as friend class
-};
-
-/** The macro for traversing dictionary
- *
- * @note It's faster than getting all keys and traversing keys to get objects by objectForKey.
- * It's also safe to remove elements while traversing.
- */
-#define CCDICT_FOREACH(__dict__, __el__) \
- CCDictElement* pTmp##__dict__##__el__ = NULL; \
- if (__dict__) \
- HASH_ITER(hh, (__dict__)->m_pElements, __el__, pTmp##__dict__##__el__)
-
-
-
-/**
- * CCDictionary is a class like NSDictionary in Obj-C .
- *
- * @note Only the pointer of CCObject or its subclass can be inserted to CCDictionary.
- * @code
- * // Create a dictionary, return an autorelease object.
- * CCDictionary* pDict = CCDictionary::create();
- *
- * // Insert objects to dictionary
- * CCString* pValue1 = CCString::create("100");
- * CCString* pValue2 = CCString::create("120");
- * CCInteger* pValue3 = CCInteger::create(200);
- * pDict->setObject(pValue1, "key1");
- * pDict->setObject(pValue2, "key2");
- * pDict->setObject(pValue3, "key3");
- *
- * // Get the object for key
- * CCString* pStr1 = (CCString*)pDict->objectForKey("key1");
- * CCLog("{ key1: %s }", pStr1->getCString());
- * CCInteger* pInteger = (CCInteger*)pDict->objectForKey("key3");
- * CCLog("{ key3: %d }", pInteger->getValue());
- * @endcode
- * @js NA
- *
- */
-
-class CC_DLL CCDictionary : public CCObject
-{
-public:
- /**
- * The constructor of CCDictionary.
- * @lua NA
- */
- CCDictionary();
-
- /**
- * The destructor of CCDictionary
- * @lua NA
- */
- ~CCDictionary();
-
- /**
- * Get the count of elements in CCDictionary.
- *
- * @return The count of elements.
- */
- unsigned int count();
-
- /**
- * Return all keys of elements.
- *
- * @return The array contains all keys of elements. It's an autorelease object yet.
- */
- CCArray* allKeys();
-
- /**
- * Get all keys according to the specified object.
- * @warning We use '==' to compare two objects
- * @return The array contains all keys for the specified object. It's an autorelease object yet.
- */
- CCArray* allKeysForObject(CCObject* object);
-
- /**
- * Get the object according to the specified string key.
- *
- * @note The dictionary needs to use string as key. If integer is passed, an assert will appear.
- * @param key The string key for searching.
- * @return The object matches the key. You need to force convert it to the type you know.
- * @code
- * // Assume that the elements are CCString* pointers. Convert it by following code.
- * CCString* pStr = (CCString*)pDict->objectForKey("key1");
- * // Do something about pStr.
- * // If you don't know the object type, properly you need to use dynamic_cast to check it.
- * CCString* pStr2 = dynamic_cast(pDict->objectForKey("key1"));
- * if (pStr2 != NULL) {
- * // Do something about pStr2
- * }
- * @endcode
- * @see objectForKey(intptr_t)
- */
- CCObject* objectForKey(const std::string& key);
-
- /**
- * Get the object according to the specified integer key.
- *
- * @note The dictionary needs to use integer as key. If string is passed, an assert will appear.
- * @param key The integer key for searching.
- * @return The object matches the key.
- * @see objectForKey(const std::string&)
- */
- CCObject* objectForKey(intptr_t key);
-
- /** Get the value according to the specified string key.
- *
- * @note Be careful to use this function since it assumes the objects in the dictionary are CCString pointer.
- * @param key The string key for searching
- * @return An instance of CCString.
- * It will return an empty string if the objects aren't CCString pointer or the key wasn't found.
- * @see valueForKey(intptr_t)
- */
- const CCString* valueForKey(const std::string& key);
-
- /** Get the value according to the specified integer key.
- *
- * @note Be careful to use this function since it assumes the objects in the dictionary are CCString pointer.
- * @param key The string key for searching.
- * @return An instance of CCString.
- * It will return an empty string if the objects aren't CCString pointer or the key wasn't found.
- * @see valueForKey(intptr_t)
- */
- const CCString* valueForKey(intptr_t key);
-
- /** Insert an object to dictionary, and match it with the specified string key.
- *
- * @note Whe the first time this method is invoked, the key type will be set to string.
- * After that you can't setObject with an integer key.
- * If the dictionary contains the key you passed, the object matching the key will be released and removed from dictionary.
- * Then the new object will be inserted after that.
- *
- * @param pObject The Object to be inserted.
- * @param key The string key for searching.
- * @see setObject(CCObject*, intptr_t)
- */
- void setObject(CCObject* pObject, const std::string& key);
-
- /** Insert an object to dictionary, and match it with the specified string key.
- *
- * @note Then the first time this method is invoked, the key type will be set to string.
- * After that you can't setObject with an integer key.
- * If the dictionary contains the key you passed, the object matching the key will be released and removed from dictionary.
- * Then the new object will be inserted after that.
- * @param pObject The Object to be inserted.
- * @param key The string key for searching.
- * @see setObject(CCObject*, const std::string&)
- */
- void setObject(CCObject* pObject, intptr_t key);
-
- /**
- * Remove an object by the specified string key.
- *
- * @param key The string key for searching.
- * @see removeObjectForKey(intptr_t), removeObjectsForKeys(CCArray*),
- * removeObjectForElememt(CCDictElement*), removeAllObjects().
- */
- void removeObjectForKey(const std::string& key);
-
- /**
- * Remove an object by the specified integer key.
- *
- * @param key The integer key for searching.
- * @see removeObjectForKey(const std::string&), removeObjectsForKeys(CCArray*),
- * removeObjectForElememt(CCDictElement*), removeAllObjects().
- */
- void removeObjectForKey(intptr_t key);
-
- /**
- * Remove objects by an array of keys.
- *
- * @param pKeyArray The array contains keys to be removed.
- * @see removeObjectForKey(const std::string&), removeObjectForKey(intptr_t),
- * removeObjectForElememt(CCDictElement*), removeAllObjects().
- */
- void removeObjectsForKeys(CCArray* pKeyArray);
-
- /**
- * Remove an object by an element.
- *
- * @param pElement The element need to be removed.
- * @see removeObjectForKey(const std::string&), removeObjectForKey(intptr_t),
- * removeObjectsForKeys(CCArray*), removeAllObjects().
- * @lua NA
- */
- void removeObjectForElememt(CCDictElement* pElement);
-
- /**
- * Remove all objects in the dictionary.
- *
- * @see removeObjectForKey(const std::string&), removeObjectForKey(intptr_t),
- * removeObjectsForKeys(CCArray*), removeObjectForElememt(CCDictElement*).
- */
- void removeAllObjects();
-
- /// @{
- /// @name Function override
- /**
- * This function is used for deepcopy elements from source dictionary to destination dictionary.
- * You shouldn't invoke this function manually since it's called by CCObject::copy.
- * @lua NA
- * @js NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- /// @}
-
- /**
- * Return a random object in the dictionary.
- *
- * @return The random object.
- * @see objectForKey(intptr_t), objectForKey(const std::string&)
- * @lua NA
- */
- CCObject* randomObject();
-
- /**
- * Create a dictionary.
- * @return A dictionary which is an autorelease object.
- * @see createWithDictionary(CCDictionary*), createWithContentsOfFile(const char*), createWithContentsOfFileThreadSafe(const char*).
- */
- static CCDictionary* create();
-
- /**
- * Create a dictionary with an existing dictionary.
- *
- * @param srcDict The exist dictionary.
- * @return A dictionary which is an autorelease object.
- * @see create(), createWithContentsOfFile(const char*), createWithContentsOfFileThreadSafe(const char*).
- */
- static CCDictionary* createWithDictionary(CCDictionary* srcDict);
-
- /**
- * Create a dictionary with a plist file.
- * @param pFileName The name of the plist file.
- * @return A dictionary which is an autorelease object.
- * @see create(), createWithDictionary(CCDictionary*), createWithContentsOfFileThreadSafe(const char*).
- */
- static CCDictionary* createWithContentsOfFile(const char *pFileName);
-
- /**
- * Write a dictionary to a plist file.
- * @param fullPath The full path of the plist file. You can get writeable path by getWritablePath()
- * @return true if successed, false if failed
- * @lua NA
- */
- bool writeToFile(const char *fullPath);
-
- /**
- * Create a dictionary with a plist file.
- *
- * @note the return object isn't an autorelease object.
- * This can make sure not using autorelease pool in a new thread.
- * Therefore, you need to manage the lifecycle of the return object.
- * It means that when you don't need it, CC_SAFE_RELEASE needs to be invoked.
- *
- * @param pFileName The name of the plist file.
- * @return A dictionary which isn't an autorelease object.
- * @lua NA
- */
- static CCDictionary* createWithContentsOfFileThreadSafe(const char *pFileName);
-
- /* override functions
- * @lua NA
- */
- virtual void acceptVisitor(CCDataVisitor &visitor);
-
-private:
- /**
- * For internal usage, invoked by setObject.
- */
- void setObjectUnSafe(CCObject* pObject, const std::string& key);
- void setObjectUnSafe(CCObject* pObject, const intptr_t key);
-
-public:
- /**
- * All the elements in dictionary.
- *
- * @note For internal usage, we need to declare this member variable as public since it's used in UT_HASH.
- */
- CCDictElement* m_pElements;
-private:
-
- /** The support type of dictionary, it's confirmed when setObject is invoked. */
- enum CCDictType
- {
- kCCDictUnknown = 0,
- kCCDictStr,
- kCCDictInt
- };
-
- /**
- * The type of dictionary, it's assigned to kCCDictUnknown by default.
- */
- CCDictType m_eDictType;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif /* __CCDICTIONARY_H__ */
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCDouble.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCDouble.h
deleted file mode 100644
index 25023fa..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCDouble.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
- Copyright (c) 2010-2012 cocos2d-x.org
-
- http://www.cocos2d-x.org
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- 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.
- ****************************************************************************/
-
-#ifndef __CCDOUBLE_H__
-#define __CCDOUBLE_H__
-
-#include "CCObject.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- * @js NA
- * @lua NA
- */
-
-class CC_DLL CCDouble : public CCObject
-{
-public:
- CCDouble(double v)
- : m_dValue(v) {}
- double getValue() const {return m_dValue;}
-
- static CCDouble* create(double v)
- {
- CCDouble* pRet = new CCDouble(v);
- if (pRet)
- {
- pRet->autorelease();
- }
- return pRet;
- }
-
- /* override functions */
- virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); }
-
-private:
- double m_dValue;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif /* __CCDOUBLE_H__ */
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCFloat.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCFloat.h
deleted file mode 100644
index ab5131d..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCFloat.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
- Copyright (c) 2010-2012 cocos2d-x.org
-
- http://www.cocos2d-x.org
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- 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.
- ****************************************************************************/
-
-#ifndef __CCFLOAT_H__
-#define __CCFLOAT_H__
-
-#include "CCObject.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- * @js NA
- * @lua NA
- */
-
-class CC_DLL CCFloat : public CCObject
-{
-public:
- CCFloat(float v)
- : m_fValue(v) {}
- float getValue() const {return m_fValue;}
-
- static CCFloat* create(float v)
- {
- CCFloat* pRet = new CCFloat(v);
- if (pRet)
- {
- pRet->autorelease();
- }
- return pRet;
- }
-
- /* override functions */
- virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); }
-
-private:
- float m_fValue;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif /* __CCFLOAT_H__ */
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCGeometry.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCGeometry.h
deleted file mode 100644
index 9b28209..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCGeometry.h
+++ /dev/null
@@ -1,347 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCGEMETRY_H__
-#define __CCGEMETRY_H__
-
-#include "platform/CCPlatformMacros.h"
-#include "CCObject.h"
-#include
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- */
-
-// for CCPoint assignement operator and copy constructor
-class CC_DLL CCSize;
-
-/**
- * @js NA
- */
-class CC_DLL CCPoint
-{
-public:
- float x;
- float y;
-
-public:
- CCPoint();
- CCPoint(float x, float y);
- /**
- * @lua NA
- */
- CCPoint(const CCPoint& other);
- /**
- * @lua NA
- */
- CCPoint(const CCSize& size);
- /**
- * @lua NA
- */
- CCPoint& operator= (const CCPoint& other);
- /**
- * @lua NA
- */
- CCPoint& operator= (const CCSize& size);
- /**
- * @lua NA
- */
- CCPoint operator+(const CCPoint& right) const;
- /**
- * @lua NA
- */
- CCPoint operator-(const CCPoint& right) const;
- /**
- * @lua NA
- */
- CCPoint operator-() const;
- /**
- * @lua NA
- */
- CCPoint operator*(float a) const;
- /**
- * @lua NA
- */
- CCPoint operator/(float a) const;
- /**
- * @lua NA
- */
- void setPoint(float x, float y);
- bool equals(const CCPoint& target) const;
-
- /** @returns if points have fuzzy equality which means equal with some degree of variance.
- * @since v2.1.4
- * @lua NA
- */
- bool fuzzyEquals(const CCPoint& target, float variance) const;
-
- /** Calculates distance between point an origin
- * @return float
- * @since v2.1.4
- * @lua NA
- */
- inline float getLength() const {
- return sqrtf(x*x + y*y);
- };
-
- /** Calculates the square length of a CCPoint (not calling sqrt() )
- * @return float
- * @since v2.1.4
- * @lua NA
- */
- inline float getLengthSq() const {
- return dot(*this); //x*x + y*y;
- };
-
- /** Calculates the square distance between two points (not calling sqrt() )
- @return float
- @since v2.1.4
- */
- inline float getDistanceSq(const CCPoint& other) const {
- return (*this - other).getLengthSq();
- };
-
- /** Calculates the distance between two points
- @return float
- @since v2.1.4
- */
- inline float getDistance(const CCPoint& other) const {
- return (*this - other).getLength();
- };
-
- /** @returns the angle in radians between this vector and the x axis
- @since v2.1.4
- */
- inline float getAngle() const {
- return atan2f(y, x);
- };
-
- /** @returns the angle in radians between two vector directions
- @since v2.1.4
- */
- float getAngle(const CCPoint& other) const;
-
- /** Calculates dot product of two points.
- @return float
- @since v2.1.4
- */
- inline float dot(const CCPoint& other) const {
- return x*other.x + y*other.y;
- };
-
- /** Calculates cross product of two points.
- @return float
- @since v2.1.4
- */
- inline float cross(const CCPoint& other) const {
- return x*other.y - y*other.x;
- };
-
- /** Calculates perpendicular of v, rotated 90 degrees counter-clockwise -- cross(v, perp(v)) >= 0
- @return CCPoint
- @since v2.1.4
- */
- inline CCPoint getPerp() const {
- return CCPoint(-y, x);
- };
-
- /** Calculates perpendicular of v, rotated 90 degrees clockwise -- cross(v, rperp(v)) <= 0
- @return CCPoint
- @since v2.1.4
- */
- inline CCPoint getRPerp() const {
- return CCPoint(y, -x);
- };
-
- /** Calculates the projection of this over other.
- @return CCPoint
- @since v2.1.4
- */
- inline CCPoint project(const CCPoint& other) const {
- return other * (dot(other)/other.dot(other));
- };
-
- /** Complex multiplication of two points ("rotates" two points).
- @return CCPoint vector with an angle of this.getAngle() + other.getAngle(),
- and a length of this.getLength() * other.getLength().
- @since v2.1.4
- */
- inline CCPoint rotate(const CCPoint& other) const {
- return CCPoint(x*other.x - y*other.y, x*other.y + y*other.x);
- };
-
- /** Unrotates two points.
- @return CCPoint vector with an angle of this.getAngle() - other.getAngle(),
- and a length of this.getLength() * other.getLength().
- @since v2.1.4
- */
- inline CCPoint unrotate(const CCPoint& other) const {
- return CCPoint(x*other.x + y*other.y, y*other.x - x*other.y);
- };
-
- /** Returns point multiplied to a length of 1.
- * If the point is 0, it returns (1, 0)
- @return CCPoint
- @since v2.1.4
- */
- inline CCPoint normalize() const {
- float length = getLength();
- if(length == 0.) return CCPoint(1.f, 0);
- return *this / getLength();
- };
-
- /** Linear Interpolation between two points a and b
- @returns
- alpha == 0 ? a
- alpha == 1 ? b
- otherwise a value between a..b
- @since v2.1.4
- */
- inline CCPoint lerp(const CCPoint& other, float alpha) const {
- return *this * (1.f - alpha) + other * alpha;
- };
-
- /** Rotates a point counter clockwise by the angle around a pivot
- @param pivot is the pivot, naturally
- @param angle is the angle of rotation ccw in radians
- @returns the rotated point
- @since v2.1.4
- */
- CCPoint rotateByAngle(const CCPoint& pivot, float angle) const;
-
- static inline CCPoint forAngle(const float a)
- {
- return CCPoint(cosf(a), sinf(a));
- }
-};
-
-/**
- * @js NA
- */
-class CC_DLL CCSize
-{
-public:
- float width;
- float height;
-
-public:
- CCSize();
- CCSize(float width, float height);
- /**
- * @lua NA
- */
- CCSize(const CCSize& other);
- /**
- * @lua NA
- */
- CCSize(const CCPoint& point);
- /**
- * @lua NA
- */
- CCSize& operator= (const CCSize& other);
- /**
- * @lua NA
- */
- CCSize& operator= (const CCPoint& point);
- /**
- * @lua NA
- */
- CCSize operator+(const CCSize& right) const;
- /**
- * @lua NA
- */
- CCSize operator-(const CCSize& right) const;
- /**
- * @lua NA
- */
- CCSize operator*(float a) const;
- /**
- * @lua NA
- */
- CCSize operator/(float a) const;
- /**
- * @lua NA
- */
- void setSize(float width, float height);
- /**
- * @lua NA
- */
- bool equals(const CCSize& target) const;
-};
-
-/**
- * @js NA
- */
-class CC_DLL CCRect
-{
-public:
- CCPoint origin;
- CCSize size;
-
-public:
- CCRect();
- CCRect(float x, float y, float width, float height);
- /**
- * @lua NA
- */
- CCRect(const CCRect& other);
- /**
- * @lua NA
- */
- CCRect& operator= (const CCRect& other);
- void setRect(float x, float y, float width, float height);
- float getMinX() const; /// return the leftmost x-value of current rect
- float getMidX() const; /// return the midpoint x-value of current rect
- float getMaxX() const; /// return the rightmost x-value of current rect
- float getMinY() const; /// return the bottommost y-value of current rect
- float getMidY() const; /// return the midpoint y-value of current rect
- float getMaxY() const; /// return the topmost y-value of current rect
- bool equals(const CCRect& rect) const;
- bool containsPoint(const CCPoint& point) const;
- bool intersectsRect(const CCRect& rect) const;
-};
-
-
-#define CCPointMake(x, y) CCPoint((float)(x), (float)(y))
-#define CCSizeMake(width, height) CCSize((float)(width), (float)(height))
-#define CCRectMake(x, y, width, height) CCRect((float)(x), (float)(y), (float)(width), (float)(height))
-
-
-const CCPoint CCPointZero = CCPointMake(0,0);
-
-/* The "zero" size -- equivalent to CCSizeMake(0, 0). */
-const CCSize CCSizeZero = CCSizeMake(0,0);
-
-/* The "zero" rectangle -- equivalent to CCRectMake(0, 0, 0, 0). */
-const CCRect CCRectZero = CCRectMake(0,0,0,0);
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif // __CCGEMETRY_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCInteger.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCInteger.h
deleted file mode 100644
index f700a30..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCInteger.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef __CCINTEGER_H__
-#define __CCINTEGER_H__
-
-#include "CCObject.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- * @js NA
- */
-
-class CC_DLL CCInteger : public CCObject
-{
-public:
- CCInteger(int v)
- : m_nValue(v) {}
- int getValue() const {return m_nValue;}
-
- static CCInteger* create(int v)
- {
- CCInteger* pRet = new CCInteger(v);
- pRet->autorelease();
- return pRet;
- }
-
- /* override functions
- * @lua NA
- */
- virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); }
-
-private:
- int m_nValue;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif /* __CCINTEGER_H__ */
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCNS.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCNS.h
deleted file mode 100644
index e5d4744..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCNS.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __PLATFOMR_CCNS_H__
-#define __PLATFOMR_CCNS_H__
-
-#include "CCGeometry.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- */
-
-/**
-@brief Returns a Core Graphics rectangle structure corresponding to the data in a given string.
-@param pszContent A string object whose contents are of the form "{{x,y},{w, h}}",
- where x is the x coordinate, y is the y coordinate, w is the width, and h is the height.
- These components can represent integer or float values.
- An example of a valid string is "{{3,2},{4,5}}".
- The string is not localized, so items are always separated with a comma.
-@return A Core Graphics structure that represents a rectangle.
- If the string is not well-formed, the function returns CCRectZero.
-*/
-CCRect CC_DLL CCRectFromString(const char* pszContent);
-
-/**
-@brief Returns a Core Graphics point structure corresponding to the data in a given string.
-@param pszContent A string object whose contents are of the form "{x,y}",
- where x is the x coordinate and y is the y coordinate.
- The x and y values can represent integer or float values.
- An example of a valid string is "{3.0,2.5}".
- The string is not localized, so items are always separated with a comma.
-@return A Core Graphics structure that represents a point.
- If the string is not well-formed, the function returns CCPointZero.
-*/
-CCPoint CC_DLL CCPointFromString(const char* pszContent);
-
-/**
-@brief Returns a Core Graphics size structure corresponding to the data in a given string.
-@param pszContent A string object whose contents are of the form "{w, h}",
- where w is the width and h is the height.
- The w and h values can be integer or float values.
- An example of a valid string is "{3.0,2.5}".
- The string is not localized, so items are always separated with a comma.
-@return A Core Graphics structure that represents a size.
- If the string is not well-formed, the function returns CCSizeZero.
-*/
-CCSize CC_DLL CCSizeFromString(const char* pszContent);
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif // __PLATFOMR_CCNS_H__
-
-
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCObject.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCObject.h
deleted file mode 100644
index 80eccd6..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCObject.h
+++ /dev/null
@@ -1,126 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCOBJECT_H__
-#define __CCOBJECT_H__
-
-#include "CCDataVisitor.h"
-
-#ifdef EMSCRIPTEN
-#include
-#endif // EMSCRIPTEN
-class DS_Dictionary;
-NS_CC_BEGIN
-
-/**
- * @addtogroup base_nodes
- * @{
- */
-
-class CCZone;
-class CCObject;
-class CCNode;
-class CCEvent;
-enum CCObjectType;
-/**
- * @js NA
- * @lua NA
- */
-class CC_DLL CCCopying
-{
-public:
- virtual CCObject* copyWithZone(CCZone* pZone);
-};
-
-/**
- * @js NA
- */
-class CC_DLL CCObject : public CCCopying
-{
-public:
- // object id, CCScriptSupport need public m_uID
- unsigned int m_uID;
- // Lua reference id
- int m_nLuaID;
-protected:
- unsigned int m_uTag;
- // count of references
- unsigned int m_uReference;
-
- CCObjectType m_CCObjectType;
-
- // count of autorelease
- unsigned int m_uAutoReleaseCount;
-
- unsigned int m_uPadding;
-public:
- CCObject(void);
- /**
- * @lua NA
- */
- virtual ~CCObject(void);
-
- void release(void);
- void retain(void);
- CCObject* autorelease(void);
- CCObject* copy(void);
- bool isSingleReference(void) const;
- unsigned int retainCount(void) const;
- virtual bool isEqual(const CCObject* pObject);
-
- virtual void acceptVisitor(CCDataVisitor &visitor);
- virtual void update(float dt) {CC_UNUSED_PARAM(dt);};
- virtual void encodeWithCoder(DS_Dictionary*); //Robtop Modification
- virtual bool canEncode(); //Robtop Modification
- virtual int getTag() const; //Robtop Modification
- virtual void setTag(int); //Robtop Modification
-
- friend class CCAutoreleasePool;
-};
-
-
-typedef void (CCObject::*SEL_SCHEDULE)(float);
-typedef void (CCObject::*SEL_CallFunc)();
-typedef void (CCObject::*SEL_CallFuncN)(CCNode*);
-typedef void (CCObject::*SEL_CallFuncND)(CCNode*, void*);
-typedef void (CCObject::*SEL_CallFuncO)(CCObject*);
-typedef void (CCObject::*SEL_MenuHandler)(CCObject*);
-typedef void (CCObject::*SEL_EventHandler)(CCEvent*);
-typedef int (CCObject::*SEL_Compare)(CCObject*);
-
-#define schedule_selector(_SELECTOR) (SEL_SCHEDULE)(&_SELECTOR)
-#define callfunc_selector(_SELECTOR) (SEL_CallFunc)(&_SELECTOR)
-#define callfuncN_selector(_SELECTOR) (SEL_CallFuncN)(&_SELECTOR)
-#define callfuncND_selector(_SELECTOR) (SEL_CallFuncND)(&_SELECTOR)
-#define callfuncO_selector(_SELECTOR) (SEL_CallFuncO)(&_SELECTOR)
-#define menu_selector(_SELECTOR) (SEL_MenuHandler)(&_SELECTOR)
-#define event_selector(_SELECTOR) (SEL_EventHandler)(&_SELECTOR)
-#define compare_selector(_SELECTOR) (SEL_Compare)(&_SELECTOR)
-
-// end of base_nodes group
-/// @}
-
-NS_CC_END
-
-#endif // __CCOBJECT_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCSet.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCSet.h
deleted file mode 100644
index d24ae3c..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCSet.h
+++ /dev/null
@@ -1,125 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CC_SET_H__
-#define __CC_SET_H__
-
-#include
-#include "CCObject.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- */
-
-typedef std::set::iterator CCSetIterator;
-
-class CC_DLL CCSet : public CCObject
-{
-public:
- /**
- * @js ctor
- * @lua NA
- */
- CCSet(void);
- /**
- * @lua NA
- */
- CCSet(const CCSet &rSetObject);
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCSet(void);
-
- /**
- * @brief Create and return a new empty set.
- * @lua NA
- */
- static CCSet * create();
-
- /**
- *@brief Return a copy of the CCSet, it will copy all the elements.
- */
- CCSet* copy();
- /**
- *@brief It is the same as copy().
- *@lua NA
- */
- CCSet* mutableCopy();
- /**
- *@brief Return the number of elements the CCSet contains.
- */
- int count();
- /**
- *@brief Add a element into CCSet, it will retain the element.
- */
- void addObject(CCObject *pObject);
- /**
- *@brief Remove the given element, nothing todo if no element equals pObject.
- */
- void removeObject(CCObject *pObject);
- /**
- *@brief Remove all elements of the set
- */
- void removeAllObjects();
- /**
- *@brief Check if CCSet contains a element equals pObject.
- */
- bool containsObject(CCObject *pObject);
- /**
- *@brief Return the iterator that points to the first element.
- *@js NA
- *@lua NA
- */
- CCSetIterator begin();
- /**
- *@brief Return the iterator that points to the position after the last element.
- *@js NA
- *@lua NA
- */
- CCSetIterator end();
- /**
- *@brief Return the first element if it contains elements, or null if it doesn't contain any element.
- */
- CCObject* anyObject();
- /**
- * @js NA
- * @lua NA
- */
- virtual void acceptVisitor(CCDataVisitor &visitor);
-
-private:
- std::set *m_pSet;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif // __CC_SET_H__
-
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCString.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCString.h
deleted file mode 100644
index 43ddcc9..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCString.h
+++ /dev/null
@@ -1,164 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __CCSTRING_H__
-#define __CCSTRING_H__
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
-#include
-#endif
-
-#include
-#include
-#include
-#include "CCObject.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- * @ js NA
- */
-
-class CC_DLL CCString : public CCObject
-{
-public:
- /**
- * @lua NA
- */
- CCString();
- /**
- * @lua NA
- */
- CCString(const char* str);
- /**
- * @lua NA
- */
- CCString(const std::string& str);
- /**
- * @lua NA
- */
- CCString(const CCString& str);
- /**
- * @lua NA
- */
- virtual ~CCString();
-
- /* override assignment operator
- * @lua NA
- */
- CCString& operator= (const CCString& other);
-
- /** init a string with format, it's similar with the c function 'sprintf'
- * @lua NA
- */
- bool initWithFormat(const char* format, ...) CC_FORMAT_PRINTF(2, 3);
-
- /** convert to int value */
- int intValue() const;
-
- /** convert to unsigned int value */
- unsigned int uintValue() const;
-
- /** convert to float value */
- float floatValue() const;
-
- /** convert to double value */
- double doubleValue() const;
-
- /** convert to bool value */
- bool boolValue() const;
-
- /** get the C string */
- const char* getCString() const;
-
- /** get the length of string */
- unsigned int length() const;
-
- /** compare to a c string */
- int compare(const char *) const;
-
- /* override functions
- * @lua NA
- * @js NA
- */
- virtual CCObject* copyWithZone(CCZone* pZone);
- virtual bool isEqual(const CCObject* pObject);
-
- /** create a string with std string, you can also pass a c string pointer because the default constructor of std::string can access a c string pointer.
- * @return A CCString pointer which is an autorelease object pointer,
- * it means that you needn't do a release operation unless you retain it.
- */
- static CCString* create(const std::string& str);
-
- /** create a string with format, it's similar with the c function 'sprintf', the default buffer size is (1024*100) bytes,
- * if you want to change it, you should modify the kMaxStringLen macro in CCString.cpp file.
- * @return A CCString pointer which is an autorelease object pointer,
- * it means that you needn't do a release operation unless you retain it.
- * @lua NA
- */
- static CCString* createWithFormat(const char* format, ...) CC_FORMAT_PRINTF(1, 2);
-
- /** create a string with binary data
- * @return A CCString pointer which is an autorelease object pointer,
- * it means that you needn't do a release operation unless you retain it.
- */
- static CCString* createWithData(const unsigned char* pData, unsigned long nLen);
-
- /** create a string with a file,
- * @return A CCString pointer which is an autorelease object pointer,
- * it means that you needn't do a release operation unless you retain it.
- */
- static CCString* createWithContentsOfFile(const char* pszFileName);
- /**
- * @lua NA
- */
- virtual void acceptVisitor(CCDataVisitor &visitor);
-
-private:
-
- /** only for internal use */
- bool initWithFormatAndValist(const char* format, va_list ap);
-
-public:
- std::string m_sString;
-};
-
-//std::binary_function emoved in C++ 17
-/*struct CCStringCompare : public std::binary_function {
- public:
- bool operator() (CCString * a, CCString * b) const {
- return strcmp(a->getCString(), b->getCString()) < 0;
- }
-};*/
-
-#define CCStringMake(str) CCString::create(str)
-#define ccs CCStringMake
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif //__CCSTRING_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/cocoa/CCZone.h b/cappuccino-sdk/incl/cocos2dx/cocoa/CCZone.h
deleted file mode 100644
index b69648b..0000000
--- a/cappuccino-sdk/incl/cocos2dx/cocoa/CCZone.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CC_ZONE_H__
-#define __CC_ZONE_H__
-
-#include "platform/CCPlatformMacros.h"
-#include
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup data_structures
- * @{
- */
-
-class CCObject;
-/**
- * @js NA
- * @lua NA
- */
-class CC_DLL CCZone
-{
-public:
- CCZone(CCObject *pObject = NULL);
-
-public:
- CCObject *m_pCopyObject;
-};
-
-// end of data_structure group
-/// @}
-
-NS_CC_END
-
-#endif // __CC_ZONE_H__
-
diff --git a/cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCKeyboardDelegate.h b/cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCKeyboardDelegate.h
deleted file mode 100644
index 7654ddc..0000000
--- a/cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCKeyboardDelegate.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef __CCKEYBOARD_DELEGATE_H
-#define __CCKEYBOARD_DELEGATE_H
-
-#include
-NS_CC_BEGIN
-
-enum enumKeyCodes;
-class CC_DLL CCKeyboardDelegate {
-public:
- virtual void keyDown(enumKeyCodes);
- virtual void keyUp(enumKeyCodes);
-};
-
-NS_CC_END
-#endif
\ No newline at end of file
diff --git a/cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCMouseDelegate.h b/cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCMouseDelegate.h
deleted file mode 100644
index 452aede..0000000
--- a/cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCMouseDelegate.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef __CCMOUSE_DELEGATE_H
-#define __CCMOUSE_DELEGATE_H
-
-#include
-NS_CC_BEGIN
-
-class CC_DLL CCMouseDelegate {
-public:
- virtual void rightKeyDown(void);
- virtual void rightKeyUp(void);
- virtual void scrollWheel(float, float);
-};
-
-NS_CC_END
-#endif
\ No newline at end of file
diff --git a/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.cpp b/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.cpp
deleted file mode 100644
index eb216c8..0000000
--- a/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#include "CCMenuItemSpriteExtra.h"
-
-void CCMenuItemSpriteExtra::selected(){
- CCMenuItemSprite::selected();
- auto resize = cocos2d::CCScaleTo::create(0.3, m_sizeMult * m_origScale);
- auto bounce = cocos2d::CCEaseBounceOut::create(resize);
- this->runAction(bounce);
-}
-
-void CCMenuItemSpriteExtra::unselected(){
- CCMenuItemSprite::unselected();
- auto resize = cocos2d::CCScaleTo::create(0.3, m_origScale);
- auto bounce = cocos2d::CCEaseBounceOut::create(resize);
- this->runAction(bounce);
-}
-
-void CCMenuItemSpriteExtra::activate () {
- CCMenuItemSprite::activate();
- this->stopAllActions();
- this->setScale(m_origScale);
-}
-
-void CCMenuItemSpriteExtra::setScale(float scale) {
- CCMenuItemSprite::setScale(scale);
- m_origScale = scale;
-}
-
-CCMenuItemSpriteExtra* CCMenuItemSpriteExtra::create(CCNode *normalSprite, CCNode *selectedSprite, CCObject *target, cocos2d::SEL_MenuHandler selector){
- auto spriteItem = new CCMenuItemSpriteExtra;
- if (spriteItem && spriteItem->initWithNormalSprite(normalSprite, selectedSprite, nullptr, target, selector))
- spriteItem->autorelease();
- else {
- delete spriteItem;
- spriteItem = nullptr;
- }
- return spriteItem;
-
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.h b/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.h
deleted file mode 100644
index 07dd2fe..0000000
--- a/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#pragma once
-#include
-
-class CCMenuItemSpriteExtra : public cocos2d::CCMenuItemSprite{
-private:
- float m_sizeMult = 1.25;
- float m_origScale = 1.f;
-public:
- virtual void selected() override;
- virtual void unselected() override;
- virtual void activate() override;
- virtual void setScale(float scale) override;
- static CCMenuItemSpriteExtra* create(CCNode *normalSprite, CCNode *selectedSprite, CCObject *target, cocos2d::SEL_MenuHandler selector);
- void setSizeMult(float multiplier) { m_sizeMult = multiplier; }
-};
diff --git a/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCSpriteExtra/CCSpriteExtra.h b/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCSpriteExtra/CCSpriteExtra.h
deleted file mode 100644
index 6b3c27d..0000000
--- a/cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCSpriteExtra/CCSpriteExtra.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef __CCSPRITE_EXTRA_H
-#define __CCSPRITE_EXTRA_H
-
-#include
-NS_CC_BEGIN
-
-class CC_DLL CCSpriteExtra : public CCSprite{
-public:
- ROB_CC_SYNTHESIZE(float, m_fXOffset, XOffset);
- ROB_CC_SYNTHESIZE(float, m_fYOffset, YOffset);
-};
-
-NS_CC_END
-#endif
\ No newline at end of file
diff --git a/cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawNode.h b/cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawNode.h
deleted file mode 100644
index a6e0d40..0000000
--- a/cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawNode.h
+++ /dev/null
@@ -1,107 +0,0 @@
-/* Copyright (c) 2012 Scott Lembcke and Howling Moon Software
- * Copyright (c) 2012 cocos2d-x.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * 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.
- */
-
-/*
- * Code copied & pasted from SpacePatrol game https://github.com/slembcke/SpacePatrol
- *
- * Renamed and added some changes for cocos2d
- *
- */
-
-#ifndef __CCDRAWNODES_CCDRAW_NODE_H__
-#define __CCDRAWNODES_CCDRAW_NODE_H__
-
-#include "base_nodes/CCNode.h"
-#include "ccTypes.h"
-
-NS_CC_BEGIN
-
-/** CCDrawNode
- Node that draws dots, segments and polygons.
- Faster than the "drawing primitives" since they it draws everything in one single batch.
-
- @since v2.1
- @lua NA
- */
-class CC_DLL CCDrawNode : public CCNode
-{
-protected:
- GLuint m_uVao;
- GLuint m_uVbo;
-
- unsigned int m_uBufferCapacity;
- GLsizei m_nBufferCount;
- ccV2F_C4B_T2F *m_pBuffer;
-
- ccBlendFunc m_sBlendFunc;
-
- bool m_bDirty;
-
-public:
- static CCDrawNode* create();
- virtual ~CCDrawNode();
-
- virtual bool init();
- virtual void draw();
-
- /** draw a dot at a position, with a given radius and color */
- void drawDot(const CCPoint &pos, float radius, const ccColor4F &color);
-
- /** draw a segment with a radius and color */
- void drawSegment(const CCPoint &from, const CCPoint &to, float radius, const ccColor4F &color);
-
- /** draw a polygon with a fill color and line color
- * @code
- * when this funciton bound to js,the input params are changed
- * js:var drawPolygon(var verts, var fillColor,var borderWidth,var borderColor)
- * @endcode
- */
- void drawPolygon(CCPoint *verts, unsigned int count, const ccColor4F &fillColor, float borderWidth, const ccColor4F &borderColor);
-
- /** Clear the geometry in the node's buffer. */
- void clear();
- /**
- * @js NA
- */
- ccBlendFunc getBlendFunc() const;
- /**
- * @code
- * when this function bound to js ,the input param is change
- * js:var setBlendFunc(var src,var dst)
- * @endcode
- */
- void setBlendFunc(const ccBlendFunc &blendFunc);
-
- CCDrawNode();
-
- /** listen the event that coming to foreground on Android
- * @js NA
- */
- void listenBackToForeground(CCObject *obj);
-private:
- void ensureCapacity(unsigned int count);
- void render();
-};
-
-NS_CC_END
-
-#endif // __CCDRAWNODES_CCDRAW_NODE_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawingPrimitives.h b/cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawingPrimitives.h
deleted file mode 100644
index cb667d3..0000000
--- a/cappuccino-sdk/incl/cocos2dx/draw_nodes/CCDrawingPrimitives.h
+++ /dev/null
@@ -1,160 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-/*
- *
- * IMPORTANT IMPORTANT IMPORTANT IMPORTANT
- *
- *
- * LEGACY FUNCTIONS
- *
- * USE CCDrawNode instead
- *
- */
-
-
-#ifndef __CCDRAWING_PRIMITIVES__
-#define __CCDRAWING_PRIMITIVES__
-
-
-#include "ccTypes.h"
-#include "ccMacros.h"
-#include "cocoa/CCGeometry.h" // for CCPoint
-
-/**
- @file
- Drawing OpenGL ES primitives.
- - ccDrawPoint, ccDrawPoints
- - ccDrawLine
- - ccDrawRect, ccDrawSolidRect
- - ccDrawPoly, ccDrawSolidPoly
- - ccDrawCircle
- - ccDrawQuadBezier
- - ccDrawCubicBezier
- - ccDrawCatmullRom
- - ccDrawCardinalSpline
-
- You can change the color, point size, width by calling:
- - ccDrawColor4B(), ccDrawColor4F()
- - ccPointSize()
- - glLineWidth()
-
- @warning These functions draws the Line, Point, Polygon, immediately. They aren't batched. If you are going to make a game that depends on these primitives, I suggest creating a batch. Instead you should use CCDrawNode
-
- */
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup global
- * @{
- */
-
-class CCPointArray;
-
-/** Initializes the drawing primitives */
-void CC_DLL ccDrawInit();
-
-/** Frees allocated resources by the drawing primitives */
-void CC_DLL ccDrawFree();
-
-/** draws a point given x and y coordinate measured in points */
-void CC_DLL ccDrawPoint( const CCPoint& point );
-
-/** draws an array of points.
- @since v0.7.2
- */
-void CC_DLL ccDrawPoints( const CCPoint *points, unsigned int numberOfPoints );
-
-/** draws a line given the origin and destination point measured in points */
-void CC_DLL ccDrawLine( const CCPoint& origin, const CCPoint& destination );
-
-/** draws a rectangle given the origin and destination point measured in points. */
-void CC_DLL ccDrawRect( CCPoint origin, CCPoint destination );
-
-/** draws a solid rectangle given the origin and destination point measured in points.
- @since 1.1
- */
-void CC_DLL ccDrawSolidRect( CCPoint origin, CCPoint destination, ccColor4F color );
-
-/** draws a polygon given a pointer to CCPoint coordinates and the number of vertices measured in points.
-The polygon can be closed or open
-*/
-void CC_DLL ccDrawPoly( const CCPoint *vertices, unsigned int numOfVertices, bool closePolygon );
-
-/** draws a solid polygon given a pointer to CGPoint coordinates, the number of vertices measured in points, and a color.
- */
-void CC_DLL ccDrawSolidPoly( const CCPoint *poli, unsigned int numberOfPoints, ccColor4F color );
-
-/** draws a circle given the center, radius and number of segments. */
-void CC_DLL ccDrawCircle( const CCPoint& center, float radius, float angle, unsigned int segments, bool drawLineToCenter, float scaleX, float scaleY);
-void CC_DLL ccDrawCircle( const CCPoint& center, float radius, float angle, unsigned int segments, bool drawLineToCenter);
-
-/** draws a quad bezier path
- @warning This function could be pretty slow. Use it only for debugging purposes.
- @since v0.8
- */
-void CC_DLL ccDrawQuadBezier(const CCPoint& origin, const CCPoint& control, const CCPoint& destination, unsigned int segments);
-
-/** draws a cubic bezier path
- @warning This function could be pretty slow. Use it only for debugging purposes.
- @since v0.8
- */
-void CC_DLL ccDrawCubicBezier(const CCPoint& origin, const CCPoint& control1, const CCPoint& control2, const CCPoint& destination, unsigned int segments);
-
-/** draws a Catmull Rom path.
- @warning This function could be pretty slow. Use it only for debugging purposes.
- @since v2.0
- */
-void CC_DLL ccDrawCatmullRom( CCPointArray *arrayOfControlPoints, unsigned int segments );
-
-/** draws a Cardinal Spline path.
- @warning This function could be pretty slow. Use it only for debugging purposes.
- @since v2.0
- */
-void CC_DLL ccDrawCardinalSpline( CCPointArray *config, float tension, unsigned int segments );
-
-/** set the drawing color with 4 unsigned bytes
- @since v2.0
- */
-void CC_DLL ccDrawColor4B( GLubyte r, GLubyte g, GLubyte b, GLubyte a );
-
-/** set the drawing color with 4 floats
- @since v2.0
- */
-void CC_DLL ccDrawColor4F( GLfloat r, GLfloat g, GLfloat b, GLfloat a );
-
-/** set the point size in points. Default 1.
- @since v2.0
- */
-void CC_DLL ccPointSize( GLfloat pointSize );
-
-// end of global group
-/// @}
-
-NS_CC_END
-
-#endif // __CCDRAWING_PRIMITIVES__
diff --git a/cappuccino-sdk/incl/cocos2dx/effects/CCGrabber.h b/cappuccino-sdk/incl/cocos2dx/effects/CCGrabber.h
deleted file mode 100644
index 9cd11ce..0000000
--- a/cappuccino-sdk/incl/cocos2dx/effects/CCGrabber.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2009 On-Core
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __EFFECTS_CCGRABBER_H__
-#define __EFFECTS_CCGRABBER_H__
-
-#include "CCConfiguration.h"
-#include "cocoa/CCObject.h"
-#include "CCGL.h"
-
-NS_CC_BEGIN
-
-class CCTexture2D;
-
-/**
- * @addtogroup effects
- * @{
- */
-
-/** FBO class that grabs the the contents of the screen
- * @js NA
- * @lua NA
- */
-class CCGrabber : public CCObject
-{
-public:
- CCGrabber(void);
- ~CCGrabber(void);
-
- void grab(CCTexture2D *pTexture);
- void beforeRender(CCTexture2D *pTexture);
- void afterRender(CCTexture2D *pTexture);
-
-protected:
- GLuint m_FBO;
- GLint m_oldFBO;
- GLfloat m_oldClearColor[4];
-};
-
-// end of effects group
-/// @}
-
-NS_CC_END
-
-#endif // __EFFECTS_CCGRABBER_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/effects/CCGrid.h b/cappuccino-sdk/incl/cocos2dx/effects/CCGrid.h
deleted file mode 100644
index ced7b90..0000000
--- a/cappuccino-sdk/incl/cocos2dx/effects/CCGrid.h
+++ /dev/null
@@ -1,244 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2009 On-Core
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __EFFECTS_CCGRID_H__
-#define __EFFECTS_CCGRID_H__
-
-#include "cocoa/CCObject.h"
-#include "base_nodes/CCNode.h"
-#include "CCCamera.h"
-#include "ccTypes.h"
-#include "textures/CCTexture2D.h"
-#include "CCDirector.h"
-#include "kazmath/mat4.h"
-#ifdef EMSCRIPTEN
-#include "base_nodes/CCGLBufferedNode.h"
-#endif // EMSCRIPTEN
-
-NS_CC_BEGIN
-
-class CCTexture2D;
-class CCGrabber;
-class CCGLProgram;
-
-/**
- * @addtogroup effects
- * @{
- */
-
-/** Base class for other
-*/
-class CC_DLL CCGridBase : public CCObject
-{
-public:
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCGridBase(void);
-
- /** whether or not the grid is active
- * @lua NA
- */
- inline bool isActive(void) { return m_bActive; }
- /**
- * @lua NA
- */
- void setActive(bool bActive);
-
- /** number of times that the grid will be reused
- * @lua NA
- */
- inline int getReuseGrid(void) { return m_nReuseGrid; }
- /**
- * @lua NA
- */
- inline void setReuseGrid(int nReuseGrid) { m_nReuseGrid = nReuseGrid; }
-
- /** size of the grid
- * @lua NA
- */
- inline const CCSize& getGridSize(void) { return m_sGridSize; }
- /**
- * @lua NA
- */
- inline void setGridSize(const CCSize& gridSize) { m_sGridSize = gridSize; }
-
- /** pixels between the grids
- * @lua NA
- */
- inline const CCPoint& getStep(void) { return m_obStep; }
- /**
- * @lua NA
- */
- inline void setStep(const CCPoint& step) { m_obStep = step; }
-
- /** is texture flipped
- * @lua NA
- */
- inline bool isTextureFlipped(void) { return m_bIsTextureFlipped; }
- /**
- * @lua NA
- */
- void setTextureFlipped(bool bFlipped);
- /**
- * @lua NA
- */
- bool initWithSize(const CCSize& gridSize, CCTexture2D *pTexture, bool bFlipped);
- /**
- * @lua NA
- */
- bool initWithSize(const CCSize& gridSize);
- /**
- * @lua NA
- */
- void beforeDraw(void);
- /**
- * @lua NA
- */
- void afterDraw(CCNode *pTarget);
- /**
- * @lua NA
- */
- virtual void blit(void);
- /**
- * @lua NA
- */
- virtual void reuse(void);
- /**
- * @lua NA
- */
- virtual void calculateVertexPoints(void);
-
-public:
-
- /** create one Grid
- * @lua NA
- */
- static CCGridBase* create(const CCSize& gridSize, CCTexture2D *texture, bool flipped);
- /** create one Grid
- * @lua NA
- */
- static CCGridBase* create(const CCSize& gridSize);
- /**
- * @lua NA
- */
- void set2DProjection(void);
-
-protected:
- bool m_bActive;
- int m_nReuseGrid;
- CCSize m_sGridSize;
- CCTexture2D *m_pTexture;
- CCPoint m_obStep;
- CCGrabber *m_pGrabber;
- bool m_bIsTextureFlipped;
- CCGLProgram* m_pShaderProgram;
- ccDirectorProjection m_directorProjection;
-};
-
-/**
- CCGrid3D is a 3D grid implementation. Each vertex has 3 dimensions: x,y,z
- @js NA
- @lua NA
- */
-class CC_DLL CCGrid3D : public CCGridBase
-#ifdef EMSCRIPTEN
-, public CCGLBufferedNode
-#endif // EMSCRIPTEN
-{
-public:
- CCGrid3D();
- ~CCGrid3D(void);
-
- /** returns the vertex at a given position */
- ccVertex3F vertex(const CCPoint& pos);
- /** returns the original (non-transformed) vertex at a given position */
- ccVertex3F originalVertex(const CCPoint& pos);
- /** sets a new vertex at a given position */
- void setVertex(const CCPoint& pos, const ccVertex3F& vertex);
-
- virtual void blit(void);
- virtual void reuse(void);
- virtual void calculateVertexPoints(void);
-
-public:
- /** create one Grid */
- static CCGrid3D* create(const CCSize& gridSize, CCTexture2D *pTexture, bool bFlipped);
- /** create one Grid */
- static CCGrid3D* create(const CCSize& gridSize);
-
-protected:
- GLvoid *m_pTexCoordinates;
- GLvoid *m_pVertices;
- GLvoid *m_pOriginalVertices;
- GLushort *m_pIndices;
-};
-
-/**
- CCTiledGrid3D is a 3D grid implementation. It differs from Grid3D in that
- the tiles can be separated from the grid.
- @js NA
- @lua NA
-*/
-class CC_DLL CCTiledGrid3D : public CCGridBase
-#ifdef EMSCRIPTEN
-, public CCGLBufferedNode
-#endif // EMSCRIPTEN
-{
-public:
- CCTiledGrid3D();
- ~CCTiledGrid3D(void);
-
- /** returns the tile at the given position */
- ccQuad3 tile(const CCPoint& pos);
- /** returns the original tile (untransformed) at the given position */
- ccQuad3 originalTile(const CCPoint& pos);
- /** sets a new tile */
- void setTile(const CCPoint& pos, const ccQuad3& coords);
-
- virtual void blit(void);
- virtual void reuse(void);
- virtual void calculateVertexPoints(void);
-
-public:
-
- /** create one Grid */
- static CCTiledGrid3D* create(const CCSize& gridSize, CCTexture2D *pTexture, bool bFlipped);
- /** create one Grid */
- static CCTiledGrid3D* create(const CCSize& gridSize);
-
-protected:
- GLvoid *m_pTexCoordinates;
- GLvoid *m_pVertices;
- GLvoid *m_pOriginalVertices;
- GLushort *m_pIndices;
-};
-
-// end of effects group
-/// @}
-
-NS_CC_END
-
-#endif // __EFFECTS_CCGRID_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/include/CCEventType.h b/cappuccino-sdk/incl/cocos2dx/include/CCEventType.h
deleted file mode 100644
index 297c87c..0000000
--- a/cappuccino-sdk/incl/cocos2dx/include/CCEventType.h
+++ /dev/null
@@ -1,19 +0,0 @@
-
-#ifndef __CCEVENT_TYPE_H__
-#define __CCEVENT_TYPE_H__
-
-/**
- * This header is used for defining event types using in CCNotificationCenter
- */
-
-// The application will come to foreground.
-// This message is used for reloading resources before come to foreground on Android.
-// This message is posted in main.cpp.
-#define EVENT_COME_TO_FOREGROUND "event_come_to_foreground"
-
-// The application will come to background.
-// This message is used for doing something before coming to background, such as save CCRenderTexture.
-// This message is posted in cocos2dx/platform/android/jni/MessageJni.cpp.
-#define EVENT_COME_TO_BACKGROUND "event_come_to_background"
-
-#endif // __CCEVENT_TYPE_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/include/CCProtocols.h b/cappuccino-sdk/incl/cocos2dx/include/CCProtocols.h
deleted file mode 100644
index 5899d56..0000000
--- a/cappuccino-sdk/incl/cocos2dx/include/CCProtocols.h
+++ /dev/null
@@ -1,225 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCPROTOCOLS_H__
-#define __CCPROTOCOLS_H__
-
-#include "ccTypes.h"
-#include "textures/CCTexture2D.h"
-#include
-
-NS_CC_BEGIN
-
-/**
- * RGBA protocol that affects CCNode's color and opacity
- * @js NA
- */
-class CC_DLL CCRGBAProtocol
-{
-public:
- /**
- * Changes the color with R,G,B bytes
- *
- * @param color Example: ccc3(255,100,0) means R=255, G=100, B=0
- */
- virtual void setColor(const ccColor3B& color) = 0;
-
- /**
- * Returns color that is currently used.
- *
- * @return The ccColor3B contains R,G,B bytes.
- */
- virtual const ccColor3B& getColor(void) = 0;
-
- /**
- * Returns the displayed color.
- *
- * @return The ccColor3B contains R,G,B bytes.
- */
- virtual const ccColor3B& getDisplayedColor(void) = 0;
-
- /**
- * Returns the displayed opacity.
- *
- * @return The opacity of sprite, from 0 ~ 255
- */
- virtual GLubyte getDisplayedOpacity(void) = 0;
- /**
- * Returns the opacity.
- *
- * The opacity which indicates how transparent or opaque this node is.
- * 0 indicates fully transparent and 255 is fully opaque.
- *
- * @return The opacity of sprite, from 0 ~ 255
- */
- virtual GLubyte getOpacity(void) = 0;
-
- /**
- * Changes the opacity.
- *
- * @param value Goes from 0 to 255, where 255 means fully opaque and 0 means fully transparent.
- */
- virtual void setOpacity(GLubyte opacity) = 0;
-
- // optional
-
- /**
- * Changes the OpacityModifyRGB property.
- * If thie property is set to true, then the rendered color will be affected by opacity.
- * Normally, r = r * opacity/255, g = g * opacity/255, b = b * opacity/255.
- *
- * @param bValue true then the opacity will be applied as: glColor(R,G,B,opacity);
- * false then the opacity will be applied as: glColor(opacity, opacity, opacity, opacity);
- */
- virtual void setOpacityModifyRGB(bool bValue) = 0;
-
- /**
- * Returns whether or not the opacity will be applied using glColor(R,G,B,opacity)
- * or glColor(opacity, opacity, opacity, opacity)
- *
- * @return Returns opacity modify flag.
- */
- virtual bool isOpacityModifyRGB(void) = 0;
-
- /**
- * whether or not color should be propagated to its children.
- */
- virtual bool isCascadeColorEnabled(void) = 0;
- virtual void setCascadeColorEnabled(bool cascadeColorEnabled) = 0;
-
- /**
- * recursive method that updates display color
- */
- virtual void updateDisplayedColor(const ccColor3B& color) = 0;
-
- /**
- * whether or not opacity should be propagated to its children.
- */
- virtual bool isCascadeOpacityEnabled(void) = 0;
- virtual void setCascadeOpacityEnabled(bool cascadeOpacityEnabled) = 0;
-
- /**
- * recursive method that updates the displayed opacity.
- */
- virtual void updateDisplayedOpacity(GLubyte opacity) = 0;
-};
-
-/**
- * Specify the blending function according glBlendFunc
- * Please refer to glBlendFunc in OpenGL ES Manual
- * http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml for more details.
- * @js NA
- * @lua NA
- */
-class CC_DLL CCBlendProtocol
-{
-public:
- /**
- * Sets the source blending function.
- *
- * @param blendFunc A structure with source and destination factor to specify pixel arithmetic,
- * e.g. {GL_ONE, GL_ONE}, {GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA}.
- *
- */
- virtual void setBlendFunc(ccBlendFunc blendFunc) = 0;
-
- /**
- * Returns the blending function that is currently being used.
- *
- * @return A ccBlendFunc structure with source and destination factor which specified pixel arithmetic.
- */
- virtual ccBlendFunc getBlendFunc(void) = 0;
-};
-
-/**
- * CCNode objects that uses a CCTexture2D to render the images.
- * The texture can have a blending function.
- * If the texture has alpha premultiplied the default blending function is:
- * src=GL_ONE dst= GL_ONE_MINUS_SRC_ALPHA
- * else
- * src=GL_SRC_ALPHA dst= GL_ONE_MINUS_SRC_ALPHA
- * But you can change the blending function at any time.
- * @js NA
- */
-class CC_DLL CCTextureProtocol : public CCBlendProtocol
-{
-public:
- /**
- * Returns the currently used texture
- *
- * @return The texture that is currenlty being used.
- * @lua NA
- */
- virtual CCTexture2D* getTexture(void) = 0;
-
- /**
- * Sets a new texuture. It will be retained.
- *
- * @param texture A valid CCTexture2D object, which will be applied to this sprite object.
- * @lua NA
- */
- virtual void setTexture(CCTexture2D *texture) = 0;
-};
-
-/**
- * Common interface for Labels
- * @js NA
- * @lua NA
- */
-class CC_DLL CCLabelProtocol
-{
-public:
- /**
- * Sets a new label using an string
- *
- * @param A null terminated string
- */
- virtual void setString(const char *label) = 0;
-
- /**
- * Returns the string that is currently being used in this label
- *
- * @return The string that is currently being used in this label
- */
- virtual const char* getString(void) = 0;
-};
-
-/**
- * OpenGL projection protocol
- * @js NA
- * @lua NA
- */
-class CC_DLL CCDirectorDelegate
-{
-public:
- /**
- * Will be called by CCDirector when the projection is updated, and "custom" projection is used
- */
- virtual void updateProjection(void) = 0;
-};
-
-NS_CC_END
-
-#endif // __CCPROTOCOLS_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/include/ccConfig.h b/cappuccino-sdk/incl/cocos2dx/include/ccConfig.h
deleted file mode 100644
index 5fc2365..0000000
--- a/cappuccino-sdk/incl/cocos2dx/include/ccConfig.h
+++ /dev/null
@@ -1,269 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCCONFIG_H__
-#define __CCCONFIG_H__
-
-#include "platform/CCPlatformConfig.h"
-
-/**
- @file
- cocos2d (cc) configuration file
-*/
-
-/** @def CC_ENABLE_STACKABLE_ACTIONS
- If enabled, actions that alter the position property (eg: CCMoveBy, CCJumpBy, CCBezierBy, etc..) will be stacked.
- If you run 2 or more 'position' actions at the same time on a node, then end position will be the sum of all the positions.
- If disabled, only the last run action will take effect.
-
- Enabled by default. Disable to be compatible with v2.0 and older versions.
-
- @since v2.1
- */
-#ifndef CC_ENABLE_STACKABLE_ACTIONS
-#define CC_ENABLE_STACKABLE_ACTIONS 1
-#endif
-
-/** @def CC_ENABLE_GL_STATE_CACHE
- If enabled, cocos2d will maintain an OpenGL state cache internally to avoid unnecessary switches.
- In order to use them, you have to use the following functions, instead of the the GL ones:
- - ccGLUseProgram() instead of glUseProgram()
- - ccGLDeleteProgram() instead of glDeleteProgram()
- - ccGLBlendFunc() instead of glBlendFunc()
-
- If this functionality is disabled, then ccGLUseProgram(), ccGLDeleteProgram(), ccGLBlendFunc() will call the GL ones, without using the cache.
-
- It is recommended to enable whenever possible to improve speed.
- If you are migrating your code from GL ES 1.1, then keep it disabled. Once all your code works as expected, turn it on.
-
- Default value: Enabled by default
-
- @since v2.0.0
- */
-#ifndef CC_ENABLE_GL_STATE_CACHE
-#define CC_ENABLE_GL_STATE_CACHE 1
-#endif
-
-/** @def CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL
-If enabled, the texture coordinates will be calculated by using this formula:
-- texCoord.left = (rect.origin.x*2+1) / (texture.wide*2);
-- texCoord.right = texCoord.left + (rect.size.width*2-2)/(texture.wide*2);
-
-The same for bottom and top.
-
-This formula prevents artifacts by using 99% of the texture.
-The "correct" way to prevent artifacts is by using the spritesheet-artifact-fixer.py or a similar tool.
-
-Affected nodes:
-- CCSprite / CCSpriteBatchNode and subclasses: CCLabelBMFont, CCTMXTiledMap
-- CCLabelAtlas
-- CCQuadParticleSystem
-- CCTileMap
-
-To enabled set it to 1. Disabled by default.
-
-@since v0.99.5
-*/
-#ifndef CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL
-#define CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL 0
-#endif
-
-/** @def CC_DIRECTOR_FPS_INTERVAL
- Seconds between FPS updates.
- 0.5 seconds, means that the FPS number will be updated every 0.5 seconds.
- Having a bigger number means a more reliable FPS
-
- Default value: 0.1f
- */
-#ifndef CC_DIRECTOR_STATS_INTERVAL
-#define CC_DIRECTOR_STATS_INTERVAL (0.5f)
-#endif
-
-/** @def CC_DIRECTOR_FPS_POSITION
- Position of the FPS
-
- Default: 0,0 (bottom-left corner)
- */
-#ifndef CC_DIRECTOR_FPS_POSITION
-#define CC_DIRECTOR_FPS_POSITION ccp(0,0)
-#endif
-
-/** @def CC_DIRECTOR_DISPATCH_FAST_EVENTS
- If enabled, and only when it is used with CCFastDirector, the main loop will wait 0.04 seconds to
- dispatch all the events, even if there are not events to dispatch.
- If your game uses lot's of events (eg: touches) it might be a good idea to enable this feature.
- Otherwise, it is safe to leave it disabled.
-
- To enable set it to 1. Disabled by default.
-
- @warning This feature is experimental
- */
-#ifndef CC_DIRECTOR_DISPATCH_FAST_EVENTS
- #define CC_DIRECTOR_DISPATCH_FAST_EVENTS 0
-#endif
-
-/** @def CC_DIRECTOR_MAC_USE_DISPLAY_LINK_THREAD
-If enabled, cocos2d-mac will run on the Display Link thread. If disabled cocos2d-mac will run in its own thread.
-
-If enabled, the images will be drawn at the "correct" time, but the events might not be very responsive.
-If disabled, some frames might be skipped, but the events will be dispatched as they arrived.
-
-To enable set it to a 1, to disable it set to 0. Enabled by default.
-
-Only valid for cocos2d-mac. Not supported on cocos2d-ios.
-
-*/
-#ifndef CC_DIRECTOR_MAC_USE_DISPLAY_LINK_THREAD
-#define CC_DIRECTOR_MAC_USE_DISPLAY_LINK_THREAD 1
-#endif
-
-/** @def CC_NODE_RENDER_SUBPIXEL
- If enabled, the CCNode objects (CCSprite, CCLabel,etc) will be able to render in subpixels.
- If disabled, integer pixels will be used.
-
- To enable set it to 1. Enabled by default.
- */
-#ifndef CC_NODE_RENDER_SUBPIXEL
-#define CC_NODE_RENDER_SUBPIXEL 1
-#endif
-
-/** @def CC_SPRITEBATCHNODE_RENDER_SUBPIXEL
- If enabled, the CCSprite objects rendered with CCSpriteBatchNode will be able to render in subpixels.
- If disabled, integer pixels will be used.
-
- To enable set it to 1. Enabled by default.
- */
-#ifndef CC_SPRITEBATCHNODE_RENDER_SUBPIXEL
-#define CC_SPRITEBATCHNODE_RENDER_SUBPIXEL 1
-#endif
-
-/** @def CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP
- Use GL_TRIANGLE_STRIP instead of GL_TRIANGLES when rendering the texture atlas.
- It seems it is the recommend way, but it is much slower, so, enable it at your own risk
-
- To enable set it to a value different than 0. Disabled by default.
-
- */
-#ifndef CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP
-#define CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP 0
-#endif
-
-/** @def CC_TEXTURE_ATLAS_USE_VAO
- By default, CCTextureAtlas (used by many cocos2d classes) will use VAO (Vertex Array Objects).
- Apple recommends its usage but they might consume a lot of memory, specially if you use many of them.
- So for certain cases, where you might need hundreds of VAO objects, it might be a good idea to disable it.
-
- To disable it set it to 0. Enabled by default.
-
- */
-#ifndef CC_TEXTURE_ATLAS_USE_VAO
- #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
- #define CC_TEXTURE_ATLAS_USE_VAO 1
- #else
- /* Some Windows display adapter driver cannot support VAO. */
- /* Some android devices cannot support VAO very well, so we disable it by default for android platform. */
- /* Blackberry also doesn't support this feature. */
- #define CC_TEXTURE_ATLAS_USE_VAO 0
- #endif
-#endif
-
-
-/** @def CC_USE_LA88_LABELS
- If enabled, it will use LA88 (Luminance Alpha 16-bit textures) for CCLabelTTF objects.
- If it is disabled, it will use A8 (Alpha 8-bit textures).
- LA88 textures are 6% faster than A8 textures, but they will consume 2x memory.
-
- This feature is enabled by default.
-
- @since v0.99.5
- */
-#ifndef CC_USE_LA88_LABELS
-#define CC_USE_LA88_LABELS 1
-#endif
-
-/** @def CC_SPRITE_DEBUG_DRAW
- If enabled, all subclasses of CCSprite will draw a bounding box
- Useful for debugging purposes only. It is recommended to leave it disabled.
-
- To enable set it to a value different than 0. Disabled by default:
- 0 -- disabled
- 1 -- draw bounding box
- 2 -- draw texture box
- 0 -- disabled
- 1 -- draw bounding box
- 2 -- draw texture box
-*/
-#ifndef CC_SPRITE_DEBUG_DRAW
-#define CC_SPRITE_DEBUG_DRAW 0
-#endif
-
-/** @def CC_SPRITEBATCHNODE_DEBUG_DRAW
-If enabled, all subclasses of CCSprite that are rendered using an CCSpriteBatchNode draw a bounding box.
-Useful for debugging purposes only. It is recommended to leave it disabled.
-
-To enable set it to a value different than 0. Disabled by default.
-*/
-#ifndef CC_SPRITEBATCHNODE_DEBUG_DRAW
-#define CC_SPRITEBATCHNODE_DEBUG_DRAW 0
-#endif
-
-/** @def CC_LABELBMFONT_DEBUG_DRAW
-If enabled, all subclasses of CCLabelBMFont will draw a bounding box
-Useful for debugging purposes only. It is recommended to leave it disabled.
-
-To enable set it to a value different than 0. Disabled by default.
-*/
-#ifndef CC_LABELBMFONT_DEBUG_DRAW
-#define CC_LABELBMFONT_DEBUG_DRAW 0
-#endif
-
-/** @def CC_LABELATLAS_DEBUG_DRAW
- If enabled, all subclasses of LabeltAtlas will draw a bounding box
- Useful for debugging purposes only. It is recommended to leave it disabled.
-
- To enable set it to a value different than 0. Disabled by default.
- */
-#ifndef CC_LABELATLAS_DEBUG_DRAW
-#define CC_LABELATLAS_DEBUG_DRAW 0
-#endif
-
-/** @def CC_ENABLE_PROFILERS
- If enabled, will activate various profilers within cocos2d. This statistical data will be output to the console
- once per second showing average time (in milliseconds) required to execute the specific routine(s).
- Useful for debugging purposes only. It is recommended to leave it disabled.
-
- To enable set it to a value different than 0. Disabled by default.
- */
-#ifndef CC_ENABLE_PROFILERS
-#define CC_ENABLE_PROFILERS 0
-#endif
-
-/** Enable Lua engine debug log */
-#ifndef CC_LUA_ENGINE_DEBUG
-#define CC_LUA_ENGINE_DEBUG 0
-#endif
-
-#endif // __CCCONFIG_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/include/ccMacros.h b/cappuccino-sdk/incl/cocos2dx/include/ccMacros.h
deleted file mode 100644
index e9ae253..0000000
--- a/cappuccino-sdk/incl/cocos2dx/include/ccMacros.h
+++ /dev/null
@@ -1,259 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCMACROS_H__
-#define __CCMACROS_H__
-
-#ifndef _USE_MATH_DEFINES
-#define _USE_MATH_DEFINES
-#endif
-
-#include "platform/CCCommon.h"
-#include "CCStdC.h"
-
-#ifndef CCAssert
-#if COCOS2D_DEBUG > 0
-extern bool CC_DLL cc_assert_script_compatible(const char *msg);
-#define CCAssert(cond, msg) do { \
- if (!(cond)) { \
- if (!cc_assert_script_compatible(msg) && strlen(msg)) \
- cocos2d::CCLog("Assert failed: %s", msg); \
- CC_ASSERT(cond); \
- } \
- } while (0)
-#else
-#define CCAssert(cond, msg) ((void)(cond))
-#endif
-#endif // CCAssert
-
-#include "ccConfig.h"
-
-/** @def CC_SWAP
-simple macro that swaps 2 variables
-*/
-#define CC_SWAP(x, y, type) \
-{ type temp = (x); \
- x = y; y = temp; \
-}
-
-
-/** @def CCRANDOM_MINUS1_1
- returns a random float between -1 and 1
- */
-#define CCRANDOM_MINUS1_1() ((2.0f*((float)rand()/RAND_MAX))-1.0f)
-
-/** @def CCRANDOM_0_1
- returns a random float between 0 and 1
- */
-#define CCRANDOM_0_1() ((float)rand()/RAND_MAX)
-
-/** @def CC_DEGREES_TO_RADIANS
- converts degrees to radians
- */
-#define CC_DEGREES_TO_RADIANS(__ANGLE__) ((__ANGLE__) * 0.01745329252f) // PI / 180
-
-/** @def CC_RADIANS_TO_DEGREES
- converts radians to degrees
- */
-#define CC_RADIANS_TO_DEGREES(__ANGLE__) ((__ANGLE__) * 57.29577951f) // PI * 180
-
-#define kCCRepeatForever (UINT_MAX -1)
-
-/** @def CC_BLEND_SRC
-default gl blend src function. Compatible with premultiplied alpha images.
-*/
-#define CC_BLEND_SRC GL_ONE
-#define CC_BLEND_DST GL_ONE_MINUS_SRC_ALPHA
-
-
-/** @def CC_NODE_DRAW_SETUP
- Helpful macro that setups the GL server state, the correct GL program and sets the Model View Projection matrix
- @since v2.0
- */
-#define CC_NODE_DRAW_SETUP() \
-do { \
- ccGLEnable(m_eGLServerState); \
- CCAssert(getShaderProgram(), "No shader program set for this node"); \
- { \
- getShaderProgram()->use(); \
- getShaderProgram()->setUniformsForBuiltins(); \
- } \
-} while(0)
-
-
- /** @def CC_DIRECTOR_END
- Stops and removes the director from memory.
- Removes the CCGLView from its parent
-
- @since v0.99.4
- */
-#define CC_DIRECTOR_END() \
-do { \
- CCDirector *__director = CCDirector::sharedDirector(); \
- __director->end(); \
-} while(0)
-
-/** @def CC_CONTENT_SCALE_FACTOR
-On Mac it returns 1;
-On iPhone it returns 2 if RetinaDisplay is On. Otherwise it returns 1
-*/
-#define CC_CONTENT_SCALE_FACTOR() CCDirector::sharedDirector()->getContentScaleFactor()
-
-/****************************/
-/** RETINA DISPLAY ENABLED **/
-/****************************/
-
-/** @def CC_RECT_PIXELS_TO_POINTS
- Converts a rect in pixels to points
- */
-#define CC_RECT_PIXELS_TO_POINTS(__rect_in_pixels__) \
- CCRectMake( (__rect_in_pixels__).origin.x / CC_CONTENT_SCALE_FACTOR(), (__rect_in_pixels__).origin.y / CC_CONTENT_SCALE_FACTOR(), \
- (__rect_in_pixels__).size.width / CC_CONTENT_SCALE_FACTOR(), (__rect_in_pixels__).size.height / CC_CONTENT_SCALE_FACTOR() )
-
-/** @def CC_RECT_POINTS_TO_PIXELS
- Converts a rect in points to pixels
- */
-#define CC_RECT_POINTS_TO_PIXELS(__rect_in_points_points__) \
- CCRectMake( (__rect_in_points_points__).origin.x * CC_CONTENT_SCALE_FACTOR(), (__rect_in_points_points__).origin.y * CC_CONTENT_SCALE_FACTOR(), \
- (__rect_in_points_points__).size.width * CC_CONTENT_SCALE_FACTOR(), (__rect_in_points_points__).size.height * CC_CONTENT_SCALE_FACTOR() )
-
-/** @def CC_POINT_PIXELS_TO_POINTS
- Converts a rect in pixels to points
- */
-#define CC_POINT_PIXELS_TO_POINTS(__pixels__) \
-CCPointMake( (__pixels__).x / CC_CONTENT_SCALE_FACTOR(), (__pixels__).y / CC_CONTENT_SCALE_FACTOR())
-
-/** @def CC_POINT_POINTS_TO_PIXELS
- Converts a rect in points to pixels
- */
-#define CC_POINT_POINTS_TO_PIXELS(__points__) \
-CCPointMake( (__points__).x * CC_CONTENT_SCALE_FACTOR(), (__points__).y * CC_CONTENT_SCALE_FACTOR())
-
-/** @def CC_POINT_PIXELS_TO_POINTS
- Converts a rect in pixels to points
- */
-#define CC_SIZE_PIXELS_TO_POINTS(__size_in_pixels__) \
-CCSizeMake( (__size_in_pixels__).width / CC_CONTENT_SCALE_FACTOR(), (__size_in_pixels__).height / CC_CONTENT_SCALE_FACTOR())
-
-/** @def CC_POINT_POINTS_TO_PIXELS
- Converts a rect in points to pixels
- */
-#define CC_SIZE_POINTS_TO_PIXELS(__size_in_points__) \
-CCSizeMake( (__size_in_points__).width * CC_CONTENT_SCALE_FACTOR(), (__size_in_points__).height * CC_CONTENT_SCALE_FACTOR())
-
-
-#ifndef FLT_EPSILON
-#define FLT_EPSILON 1.192092896e-07F
-#endif // FLT_EPSILON
-
-#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
- TypeName(const TypeName&);\
- void operator=(const TypeName&)
-
-/**
-Helper macros which converts 4-byte little/big endian
-integral number to the machine native number representation
-
-It should work same as apples CFSwapInt32LittleToHost(..)
-*/
-
-/// when define returns true it means that our architecture uses big endian
-#define CC_HOST_IS_BIG_ENDIAN (bool)(*(unsigned short *)"\0\xff" < 0x100)
-#define CC_SWAP32(i) ((i & 0x000000ff) << 24 | (i & 0x0000ff00) << 8 | (i & 0x00ff0000) >> 8 | (i & 0xff000000) >> 24)
-#define CC_SWAP16(i) ((i & 0x00ff) << 8 | (i &0xff00) >> 8)
-#define CC_SWAP_INT32_LITTLE_TO_HOST(i) ((CC_HOST_IS_BIG_ENDIAN == true)? CC_SWAP32(i) : (i) )
-#define CC_SWAP_INT16_LITTLE_TO_HOST(i) ((CC_HOST_IS_BIG_ENDIAN == true)? CC_SWAP16(i) : (i) )
-#define CC_SWAP_INT32_BIG_TO_HOST(i) ((CC_HOST_IS_BIG_ENDIAN == true)? (i) : CC_SWAP32(i) )
-#define CC_SWAP_INT16_BIG_TO_HOST(i) ((CC_HOST_IS_BIG_ENDIAN == true)? (i): CC_SWAP16(i) )
-
-/**********************/
-/** Profiling Macros **/
-/**********************/
-#if CC_ENABLE_PROFILERS
-
-#define CC_PROFILER_DISPLAY_TIMERS() CCProfiler::sharedProfiler()->displayTimers()
-#define CC_PROFILER_PURGE_ALL() CCProfiler::sharedProfiler()->releaseAllTimers()
-
-#define CC_PROFILER_START(__name__) CCProfilingBeginTimingBlock(__name__)
-#define CC_PROFILER_STOP(__name__) CCProfilingEndTimingBlock(__name__)
-#define CC_PROFILER_RESET(__name__) CCProfilingResetTimingBlock(__name__)
-
-#define CC_PROFILER_START_CATEGORY(__cat__, __name__) do{ if(__cat__) CCProfilingBeginTimingBlock(__name__); } while(0)
-#define CC_PROFILER_STOP_CATEGORY(__cat__, __name__) do{ if(__cat__) CCProfilingEndTimingBlock(__name__); } while(0)
-#define CC_PROFILER_RESET_CATEGORY(__cat__, __name__) do{ if(__cat__) CCProfilingResetTimingBlock(__name__); } while(0)
-
-#define CC_PROFILER_START_INSTANCE(__id__, __name__) do{ CCProfilingBeginTimingBlock( CCString::createWithFormat("%08X - %s", __id__, __name__)->getCString() ); } while(0)
-#define CC_PROFILER_STOP_INSTANCE(__id__, __name__) do{ CCProfilingEndTimingBlock( CCString::createWithFormat("%08X - %s", __id__, __name__)->getCString() ); } while(0)
-#define CC_PROFILER_RESET_INSTANCE(__id__, __name__) do{ CCProfilingResetTimingBlock( CCString::createWithFormat("%08X - %s", __id__, __name__)->getCString() ); } while(0)
-
-
-#else
-
-#define CC_PROFILER_DISPLAY_TIMERS() do {} while (0)
-#define CC_PROFILER_PURGE_ALL() do {} while (0)
-
-#define CC_PROFILER_START(__name__) do {} while (0)
-#define CC_PROFILER_STOP(__name__) do {} while (0)
-#define CC_PROFILER_RESET(__name__) do {} while (0)
-
-#define CC_PROFILER_START_CATEGORY(__cat__, __name__) do {} while(0)
-#define CC_PROFILER_STOP_CATEGORY(__cat__, __name__) do {} while(0)
-#define CC_PROFILER_RESET_CATEGORY(__cat__, __name__) do {} while(0)
-
-#define CC_PROFILER_START_INSTANCE(__id__, __name__) do {} while(0)
-#define CC_PROFILER_STOP_INSTANCE(__id__, __name__) do {} while(0)
-#define CC_PROFILER_RESET_INSTANCE(__id__, __name__) do {} while(0)
-
-#endif
-
-#if !defined(COCOS2D_DEBUG) || COCOS2D_DEBUG == 0
-#define CHECK_GL_ERROR_DEBUG()
-#else
-#define CHECK_GL_ERROR_DEBUG() \
- do { \
- GLenum __error = glGetError(); \
- if(__error) { \
- CCLog("OpenGL error 0x%04X in %s %s %d\n", __error, __FILE__, __FUNCTION__, __LINE__); \
- } \
- } while (false)
-#endif
-
-/** @def CC_INCREMENT_GL_DRAWS_BY_ONE
- Increments the GL Draws counts by one.
- The number of calls per frame are displayed on the screen when the CCDirector's stats are enabled.
- */
-extern unsigned int CC_DLL g_uNumberOfDraws;
-#define CC_INCREMENT_GL_DRAWS(__n__) g_uNumberOfDraws += __n__
-
-/*******************/
-/** Notifications **/
-/*******************/
-/** @def CCAnimationFrameDisplayedNotification
- Notification name when a CCSpriteFrame is displayed
- */
-#define CCAnimationFrameDisplayedNotification "CCAnimationFrameDisplayedNotification"
-
-#endif // __CCMACROS_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/include/ccTypeInfo.h b/cappuccino-sdk/incl/cocos2dx/include/ccTypeInfo.h
deleted file mode 100644
index c7eeedd..0000000
--- a/cappuccino-sdk/incl/cocos2dx/include/ccTypeInfo.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef cocos2dx_ccTypeInfo_h
-#define cocos2dx_ccTypeInfo_h
-
-#include "platform/CCPlatformMacros.h"
-
-#include
-#include
-#include
-
-NS_CC_BEGIN
-
-class TypeInfo
-{
-public:
- virtual long getClassTypeInfo() = 0;
-};
-
-static inline unsigned int getHashCodeByString(const char *key)
-{
- unsigned int len = strlen(key);
- const char *end=key+len;
- unsigned int hash;
-
- for (hash = 0; key < end; key++)
- {
- hash *= 16777619;
- hash ^= (unsigned int) (unsigned char) toupper(*key);
- }
- return (hash);
-}
-NS_CC_END
-
-#endif
diff --git a/cappuccino-sdk/incl/cocos2dx/include/ccTypes.h b/cappuccino-sdk/incl/cocos2dx/include/ccTypes.h
deleted file mode 100644
index f5596d3..0000000
--- a/cappuccino-sdk/incl/cocos2dx/include/ccTypes.h
+++ /dev/null
@@ -1,441 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCTYPES_H__
-#define __CCTYPES_H__
-
-#include
-#include "cocoa/CCGeometry.h"
-#include "CCGL.h"
-
-
-NS_CC_BEGIN
-
-/** RGB color composed of bytes 3 bytes
-@since v0.8
- */
-typedef struct _ccColor3B
-{
- GLubyte r;
- GLubyte g;
- GLubyte b;
-} ccColor3B;
-
-//! helper macro that creates an ccColor3B type
-static inline ccColor3B
-ccc3(const GLubyte r, const GLubyte g, const GLubyte b)
-{
- ccColor3B c = {r, g, b};
- return c;
-}
-
-/** returns true if both ccColor3B are equal. Otherwise it returns false.
- */
-static inline bool ccc3BEqual(const ccColor3B &col1, const ccColor3B &col2)
-{
- return col1.r == col2.r && col1.g == col2.g && col1.b == col2.b;
-}
-
-//ccColor3B predefined colors
-//! White color (255,255,255)
-static const ccColor3B ccWHITE={255,255,255};
-//! Yellow color (255,255,0)
-static const ccColor3B ccYELLOW={255,255,0};
-//! Blue color (0,0,255)
-static const ccColor3B ccBLUE={0,0,255};
-//! Green Color (0,255,0)
-static const ccColor3B ccGREEN={0,255,0};
-//! Red Color (255,0,0,)
-static const ccColor3B ccRED={255,0,0};
-//! Magenta Color (255,0,255)
-static const ccColor3B ccMAGENTA={255,0,255};
-//! Black Color (0,0,0)
-static const ccColor3B ccBLACK={0,0,0};
-//! Orange Color (255,127,0)
-static const ccColor3B ccORANGE={255,127,0};
-//! Gray Color (166,166,166)
-static const ccColor3B ccGRAY={166,166,166};
-
-/** RGBA color composed of 4 bytes
-@since v0.8
-*/
-typedef struct _ccColor4B
-{
- GLubyte r;
- GLubyte g;
- GLubyte b;
- GLubyte a;
-} ccColor4B;
-//! helper macro that creates an ccColor4B type
-static inline ccColor4B
-ccc4(const GLubyte r, const GLubyte g, const GLubyte b, const GLubyte o)
-{
- ccColor4B c = {r, g, b, o};
- return c;
-}
-
-
-/** RGBA color composed of 4 floats
-@since v0.8
-*/
-typedef struct _ccColor4F {
- GLfloat r;
- GLfloat g;
- GLfloat b;
- GLfloat a;
-} ccColor4F;
-
-
-/** Returns a ccColor4F from a ccColor3B. Alpha will be 1.
- @since v0.99.1
- */
-static inline ccColor4F ccc4FFromccc3B(ccColor3B c)
-{
- ccColor4F c4 = {c.r/255.f, c.g/255.f, c.b/255.f, 1.f};
- return c4;
-}
-
-//! helper that creates a ccColor4f type
-static inline ccColor4F
-ccc4f(const GLfloat r, const GLfloat g, const GLfloat b, const GLfloat a)
-{
- ccColor4F c4 = {r, g, b, a};
- return c4;
-}
-
-/** Returns a ccColor4F from a ccColor4B.
- @since v0.99.1
- */
-static inline ccColor4F ccc4FFromccc4B(ccColor4B c)
-{
- ccColor4F c4 = {c.r/255.f, c.g/255.f, c.b/255.f, c.a/255.f};
- return c4;
-}
-
-static inline ccColor4B ccc4BFromccc4F(ccColor4F c)
-{
- ccColor4B ret = {(GLubyte)(c.r*255), (GLubyte)(c.g*255), (GLubyte)(c.b*255), (GLubyte)(c.a*255)};
- return ret;
-}
-
-/** returns YES if both ccColor4F are equal. Otherwise it returns NO.
- @since v0.99.1
- */
-static inline bool ccc4FEqual(ccColor4F a, ccColor4F b)
-{
- return a.r == b.r && a.g == b.g && a.b == b.b && a.a == b.a;
-}
-
-/** A vertex composed of 2 floats: x, y
- @since v0.8
- */
-typedef struct _ccVertex2F
-{
- GLfloat x;
- GLfloat y;
-} ccVertex2F;
-
-static inline ccVertex2F vertex2(const float x, const float y)
-{
- ccVertex2F c = {x, y};
- return c;
-}
-
-
-/** A vertex composed of 2 floats: x, y
- @since v0.8
- */
-typedef struct _ccVertex3F
-{
- GLfloat x;
- GLfloat y;
- GLfloat z;
-} ccVertex3F;
-
-static inline ccVertex3F vertex3(const float x, const float y, const float z)
-{
- ccVertex3F c = {x, y, z};
- return c;
-}
-
-/** A texcoord composed of 2 floats: u, y
- @since v0.8
- */
-typedef struct _ccTex2F {
- GLfloat u;
- GLfloat v;
-} ccTex2F;
-
-static inline ccTex2F tex2(const float u, const float v)
-{
- ccTex2F t = {u , v};
- return t;
-}
-
-
-//! Point Sprite component
-typedef struct _ccPointSprite
-{
- ccVertex2F pos; // 8 bytes
- ccColor4B color; // 4 bytes
- GLfloat size; // 4 bytes
-} ccPointSprite;
-
-//! A 2D Quad. 4 * 2 floats
-typedef struct _ccQuad2 {
- ccVertex2F tl;
- ccVertex2F tr;
- ccVertex2F bl;
- ccVertex2F br;
-} ccQuad2;
-
-
-//! A 3D Quad. 4 * 3 floats
-typedef struct _ccQuad3 {
- ccVertex3F bl;
- ccVertex3F br;
- ccVertex3F tl;
- ccVertex3F tr;
-} ccQuad3;
-
-//! a Point with a vertex point, a tex coord point and a color 4B
-typedef struct _ccV2F_C4B_T2F
-{
- //! vertices (2F)
- ccVertex2F vertices;
- //! colors (4B)
- ccColor4B colors;
- //! tex coords (2F)
- ccTex2F texCoords;
-} ccV2F_C4B_T2F;
-
-//! a Point with a vertex point, a tex coord point and a color 4F
-typedef struct _ccV2F_C4F_T2F
-{
- //! vertices (2F)
- ccVertex2F vertices;
- //! colors (4F)
- ccColor4F colors;
- //! tex coords (2F)
- ccTex2F texCoords;
-} ccV2F_C4F_T2F;
-
-//! a Point with a vertex point, a tex coord point and a color 4B
-typedef struct _ccV3F_C4B_T2F
-{
- //! vertices (3F)
- ccVertex3F vertices; // 12 bytes
-// char __padding__[4];
-
- //! colors (4B)
- ccColor4B colors; // 4 bytes
-// char __padding2__[4];
-
- // tex coords (2F)
- ccTex2F texCoords; // 8 bytes
-} ccV3F_C4B_T2F;
-
-//! A Triangle of ccV2F_C4B_T2F
-typedef struct _ccV2F_C4B_T2F_Triangle
-{
- //! Point A
- ccV2F_C4B_T2F a;
- //! Point B
- ccV2F_C4B_T2F b;
- //! Point B
- ccV2F_C4B_T2F c;
-} ccV2F_C4B_T2F_Triangle;
-
-//! A Quad of ccV2F_C4B_T2F
-typedef struct _ccV2F_C4B_T2F_Quad
-{
- //! bottom left
- ccV2F_C4B_T2F bl;
- //! bottom right
- ccV2F_C4B_T2F br;
- //! top left
- ccV2F_C4B_T2F tl;
- //! top right
- ccV2F_C4B_T2F tr;
-} ccV2F_C4B_T2F_Quad;
-
-//! 4 ccVertex3FTex2FColor4B
-typedef struct _ccV3F_C4B_T2F_Quad
-{
- //! top left
- ccV3F_C4B_T2F tl;
- //! bottom left
- ccV3F_C4B_T2F bl;
- //! top right
- ccV3F_C4B_T2F tr;
- //! bottom right
- ccV3F_C4B_T2F br;
-} ccV3F_C4B_T2F_Quad;
-
-//! 4 ccVertex2FTex2FColor4F Quad
-typedef struct _ccV2F_C4F_T2F_Quad
-{
- //! bottom left
- ccV2F_C4F_T2F bl;
- //! bottom right
- ccV2F_C4F_T2F br;
- //! top left
- ccV2F_C4F_T2F tl;
- //! top right
- ccV2F_C4F_T2F tr;
-} ccV2F_C4F_T2F_Quad;
-
-//! Blend Function used for textures
-typedef struct _ccBlendFunc
-{
- //! source blend function
- GLenum src;
- //! destination blend function
- GLenum dst;
-} ccBlendFunc;
-
-static const ccBlendFunc kCCBlendFuncDisable = {GL_ONE, GL_ZERO};
-
-// XXX: If any of these enums are edited and/or reordered, update CCTexture2D.m
-//! Vertical text alignment type
-typedef enum
-{
- kCCVerticalTextAlignmentTop,
- kCCVerticalTextAlignmentCenter,
- kCCVerticalTextAlignmentBottom,
-} CCVerticalTextAlignment;
-
-// XXX: If any of these enums are edited and/or reordered, update CCTexture2D.m
-//! Horizontal text alignment type
-typedef enum
-{
- kCCTextAlignmentLeft,
- kCCTextAlignmentCenter,
- kCCTextAlignmentRight,
-} CCTextAlignment;
-
-// types for animation in particle systems
-
-// texture coordinates for a quad
-typedef struct _ccT2F_Quad
-{
- //! bottom left
- ccTex2F bl;
- //! bottom right
- ccTex2F br;
- //! top left
- ccTex2F tl;
- //! top right
- ccTex2F tr;
-} ccT2F_Quad;
-
-// struct that holds the size in pixels, texture coordinates and delays for animated CCParticleSystemQuad
-typedef struct
-{
- ccT2F_Quad texCoords;
- float delay;
- CCSize size;
-} ccAnimationFrameData;
-
-
-
-/**
- types used for defining fonts properties (i.e. font name, size, stroke or shadow)
- */
-
-// shadow attributes
-typedef struct _ccFontShadow
-{
-public:
-
- // shadow is not enabled by default
- _ccFontShadow(): m_shadowEnabled(false) {}
-
- // true if shadow enabled
- bool m_shadowEnabled;
- // shadow x and y offset
- CCSize m_shadowOffset;
- // shadow blurrines
- float m_shadowBlur;
- // shadow opacity
- float m_shadowOpacity;
-
-} ccFontShadow;
-
-// stroke attributes
-typedef struct _ccFontStroke
-{
-public:
-
- // stroke is disabled by default
- _ccFontStroke(): m_strokeEnabled(false) {}
-
- // true if stroke enabled
- bool m_strokeEnabled;
- // stroke color
- ccColor3B m_strokeColor;
- // stroke size
- float m_strokeSize;
-
-} ccFontStroke;
-
-// font attributes
-/**
- * @js NA
- * @lua NA
- */
-typedef struct _ccFontDefinition
-{
-public:
-
- _ccFontDefinition(): m_alignment(kCCTextAlignmentCenter),
- m_vertAlignment(kCCVerticalTextAlignmentTop),
- m_fontFillColor(ccWHITE)
- { m_dimensions = CCSizeMake(0,0); }
-
- // font name
- std::string m_fontName;
- // font size
- int m_fontSize;
- // horizontal alignment
- CCTextAlignment m_alignment;
- // vertical alignment
- CCVerticalTextAlignment m_vertAlignment;
- // renering box
- CCSize m_dimensions;
- // font color
- ccColor3B m_fontFillColor;
- // font shadow
- ccFontShadow m_shadow;
- // font stroke
- ccFontStroke m_stroke;
-
-} ccFontDefinition;
-
-
-NS_CC_END
-
-#endif //__CCTYPES_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/include/cocos2d.h b/cappuccino-sdk/incl/cocos2dx/include/cocos2d.h
deleted file mode 100644
index 40674ba..0000000
--- a/cappuccino-sdk/incl/cocos2dx/include/cocos2d.h
+++ /dev/null
@@ -1,311 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-Copyright (c) Microsoft Open Technologies, Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __COCOS2D_H__
-#define __COCOS2D_H__
-
-// 0x00 HI ME LO
-// 00 02 01 00
-#define COCOS2D_VERSION 0x00020100
-
-//
-// all cocos2d include files
-//
-#include "ccConfig.h"
-
-// actions
-#include "actions/CCAction.h"
-#include "actions/CCActionInterval.h"
-#include "actions/CCActionCamera.h"
-#include "actions/CCActionManager.h"
-#include "actions/CCActionEase.h"
-#include "actions/CCActionPageTurn3D.h"
-#include "actions/CCActionGrid.h"
-#include "actions/CCActionProgressTimer.h"
-#include "actions/CCActionGrid3D.h"
-#include "actions/CCActionTiledGrid.h"
-#include "actions/CCActionInstant.h"
-#include "actions/CCActionTween.h"
-#include "actions/CCActionCatmullRom.h"
-
-// base_nodes
-#include "base_nodes/CCNode.h"
-#include "base_nodes/CCAtlasNode.h"
-
-// cocoa
-#include "cocoa/CCAffineTransform.h"
-#include "cocoa/CCDictionary.h"
-#include "cocoa/CCObject.h"
-#include "cocoa/CCArray.h"
-#include "cocoa/CCGeometry.h"
-#include "cocoa/CCSet.h"
-#include "cocoa/CCAutoreleasePool.h"
-#include "cocoa/CCInteger.h"
-#include "cocoa/CCFloat.h"
-#include "cocoa/CCDouble.h"
-#include "cocoa/CCBool.h"
-#include "cocoa/CCString.h"
-#include "cocoa/CCNS.h"
-#include "cocoa/CCZone.h"
-
-// draw nodes
-#include "draw_nodes/CCDrawingPrimitives.h"
-#include "draw_nodes/CCDrawNode.h"
-
-// effects
-#include "effects/CCGrabber.h"
-#include "effects/CCGrid.h"
-
-// include
-#include "CCEventType.h"
-#include "CCProtocols.h"
-#include "ccConfig.h"
-#include "ccMacros.h"
-#include "ccTypes.h"
-
-// kazmath
-#include "kazmath/include/kazmath/kazmath.h"
-#include "kazmath/include/kazmath/GL/matrix.h"
-
-// keypad_dispatcher
-#include "keypad_dispatcher/CCKeypadDelegate.h"
-#include "keypad_dispatcher/CCKeypadDispatcher.h"
-
-// label_nodes
-#include "label_nodes/CCLabelAtlas.h"
-#include "label_nodes/CCLabelTTF.h"
-#include "label_nodes/CCLabelBMFont.h"
-
-// layers_scenes_transitions_nodes
-#include "layers_scenes_transitions_nodes/CCLayer.h"
-#include "layers_scenes_transitions_nodes/CCScene.h"
-#include "layers_scenes_transitions_nodes/CCTransition.h"
-#include "layers_scenes_transitions_nodes/CCTransitionPageTurn.h"
-#include "layers_scenes_transitions_nodes/CCTransitionProgress.h"
-
-// menu_nodes
-#include "menu_nodes/CCMenu.h"
-#include "menu_nodes/CCMenuItem.h"
-
-// misc_nodes
-#include "misc_nodes/CCClippingNode.h"
-#include "misc_nodes/CCMotionStreak.h"
-#include "misc_nodes/CCProgressTimer.h"
-#include "misc_nodes/CCRenderTexture.h"
-
-// particle_nodes
-#include "particle_nodes/CCParticleBatchNode.h"
-#include "particle_nodes/CCParticleSystem.h"
-#include "particle_nodes/CCParticleExamples.h"
-#include "particle_nodes/CCParticleSystemQuad.h"
-
-// platform
-#include "platform/CCDevice.h"
-#include "platform/CCCommon.h"
-#include "platform/CCFileUtils.h"
-#include "platform/CCImage.h"
-#include "platform/CCSAXParser.h"
-#include "platform/CCThread.h"
-#include "platform/platform.h"
-#include "platform/CCPlatformConfig.h"
-#include "platform/CCPlatformMacros.h"
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
- #include "platform/ios/CCAccelerometer.h"
- #include "platform/ios/CCApplication.h"
- #include "platform/ios/CCEGLView.h"
- #include "platform/ios/CCGL.h"
- #include "platform/ios/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
- #include "platform/android/CCAccelerometer.h"
- #include "platform/android/CCApplication.h"
- #include "platform/android/CCEGLView.h"
- #include "platform/android/CCGL.h"
- #include "platform/android/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
- #include "platform/blackberry/CCAccelerometer.h"
- #include "platform/blackberry/CCApplication.h"
- #include "platform/blackberry/CCEGLView.h"
- #include "platform/blackberry/CCGL.h"
- #include "platform/blackberry/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
- #include "platform/win32/CCAccelerometer.h"
- #include "platform/win32/CCApplication.h"
- #include "platform/win32/CCEGLView.h"
- #include "platform/win32/CCGL.h"
- #include "platform/win32/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
- #include "platform/winrt/CCApplication.h"
- #include "platform/winrt/CCEGLView.h"
- #include "platform/winrt/CCGL.h"
- #include "platform/winrt/CCStdC.h"
- #include "platform/winrt/CCAccelerometer.h"
- #include "platform/winrt/CCPrecompiledShaders.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WINRT
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
- #include "platform/winrt/CCApplication.h"
- #include "platform/wp8/CCEGLView.h"
- #include "platform/winrt/CCGL.h"
- #include "platform/winrt/CCStdC.h"
- #include "platform/winrt/CCAccelerometer.h"
- #include "platform/winrt/CCPrecompiledShaders.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WP8
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
- #include "platform/mac/CCAccelerometer.h"
- #include "platform/mac/CCApplication.h"
- #include "platform/mac/CCEGLView.h"
- #include "platform/mac/CCGL.h"
- #include "platform/mac/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
-
-
-
-
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
- #include "platform/linux/CCAccelerometer.h"
- #include "platform/linux/CCApplication.h"
- #include "platform/linux/CCEGLView.h"
- #include "platform/linux/CCGL.h"
- #include "platform/linux/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
-
-// MARMALADE CHANGE
-// Added for Marmalade support
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_MARMALADE)
- #include "platform/Marmalade/CCAccelerometer.h"
- #include "platform/Marmalade/CCApplication.h"
- #include "platform/Marmalade/CCEGLView.h"
- #include "platform/Marmalade/CCGL.h"
- #include "platform/Marmalade/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_NACL)
- #include "platform/nacl/CCAccelerometer.h"
- #include "platform/nacl/CCApplication.h"
- #include "platform/nacl/CCEGLView.h"
- #include "platform/nacl/CCGL.h"
- #include "platform/nacl/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_EMSCRIPTEN)
- #include "platform/emscripten/CCAccelerometer.h"
- #include "platform/emscripten/CCApplication.h"
- #include "platform/emscripten/CCEGLView.h"
- #include "platform/emscripten/CCGL.h"
- #include "platform/emscripten/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_EMSCRIPTEN
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_TIZEN)
- #include "platform/tizen/CCAccelerometer.h"
- #include "platform/tizen/CCApplication.h"
- #include "platform/tizen/CCEGLView.h"
- #include "platform/tizen/CCGL.h"
- #include "platform/tizen/CCStdC.h"
-#endif // CC_TARGET_PLATFORM == CC_PLATFORM_TIZEN
-
-// script_support
-#include "script_support/CCScriptSupport.h"
-
-// shaders
-#include "shaders/CCGLProgram.h"
-#include "shaders/ccGLStateCache.h"
-#include "shaders/CCShaderCache.h"
-#include "shaders/ccShaders.h"
-
-// sprite_nodes
-#include "sprite_nodes/CCAnimation.h"
-#include "sprite_nodes/CCAnimationCache.h"
-#include "sprite_nodes/CCSprite.h"
-#include "sprite_nodes/CCSpriteBatchNode.h"
-#include "sprite_nodes/CCSpriteFrame.h"
-#include "sprite_nodes/CCSpriteFrameCache.h"
-
-// support
-#include "support/ccUTF8.h"
-#include "support/CCNotificationCenter.h"
-#include "support/CCPointExtension.h"
-#include "support/CCProfiling.h"
-#include "support/user_default/CCUserDefault.h"
-#include "support/CCVertex.h"
-#include "support/tinyxml2/tinyxml2.h"
-
-// text_input_node
-#include "text_input_node/CCIMEDelegate.h"
-#include "text_input_node/CCIMEDispatcher.h"
-#include "text_input_node/CCTextFieldTTF.h"
-
-// textures
-#include "textures/CCTexture2D.h"
-#include "textures/CCTextureAtlas.h"
-#include "textures/CCTextureCache.h"
-#include "textures/CCTexturePVR.h"
-
-// tilemap_parallax_nodes
-#include "tilemap_parallax_nodes/CCParallaxNode.h"
-#include "tilemap_parallax_nodes/CCTMXLayer.h"
-#include "tilemap_parallax_nodes/CCTMXObjectGroup.h"
-#include "tilemap_parallax_nodes/CCTMXTiledMap.h"
-#include "tilemap_parallax_nodes/CCTMXXMLParser.h"
-#include "tilemap_parallax_nodes/CCTileMapAtlas.h"
-
-// touch_dispatcher
-#include "touch_dispatcher/CCTouch.h"
-#include "touch_dispatcher/CCTouchDelegateProtocol.h"
-#include "touch_dispatcher/CCTouchDispatcher.h"
-#include "touch_dispatcher/CCTouchHandler.h"
-
-// root
-#include "CCCamera.h"
-#include "CCConfiguration.h"
-#include "CCDirector.h"
-#include "CCScheduler.h"
-
-// component
-#include "support/component/CCComponent.h"
-#include "support/component/CCComponentContainer.h"
-
-//New Classes
-#include "custom/Sprites/CCSpriteExtra/CCSpriteExtra.h"
-#include "custom/Sprites//CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.h"
-NS_CC_BEGIN
-
-CC_DLL const char* cocos2dVersion();
-
-NS_CC_END
-
-#endif // __COCOS2D_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/mat4stack.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/mat4stack.h
deleted file mode 100644
index a1084c8..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/mat4stack.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef C_STACK_H_INCLUDED
-#define C_STACK_H_INCLUDED
-
-#include "../mat4.h"
-
-typedef struct km_mat4_stack {
- int capacity; //The total item capacity
- int item_count; //The number of items
- kmMat4* top;
- kmMat4* stack;
-} km_mat4_stack;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void km_mat4_stack_initialize(km_mat4_stack* stack);
-void km_mat4_stack_push(km_mat4_stack* stack, const kmMat4* item);
-void km_mat4_stack_pop(km_mat4_stack* stack, kmMat4* pOut);
-void km_mat4_stack_release(km_mat4_stack* stack);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // C_STACK_H_INCLUDED
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/matrix.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/matrix.h
deleted file mode 100644
index a1c95f8..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/matrix.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef KM_GL_MATRIX_H_INCLUDED
-#define KM_GL_MATRIX_H_INCLUDED
-
-#include "platform/CCPlatformMacros.h"
-
-#define KM_GL_MODELVIEW 0x1700
-#define KM_GL_PROJECTION 0x1701
-#define KM_GL_TEXTURE 0x1702
-
-typedef unsigned int kmGLEnum;
-
-#include "../mat4.h"
-#include "../vec3.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void CC_DLL kmGLFreeAll(void);
-void CC_DLL kmGLPushMatrix(void);
-void CC_DLL kmGLPopMatrix(void);
-void CC_DLL kmGLMatrixMode(kmGLEnum mode);
-void CC_DLL kmGLLoadIdentity(void);
-void CC_DLL kmGLLoadMatrix(const kmMat4* pIn);
-void CC_DLL kmGLMultMatrix(const kmMat4* pIn);
-void CC_DLL kmGLTranslatef(float x, float y, float z);
-void CC_DLL kmGLRotatef(float angle, float x, float y, float z);
-void CC_DLL kmGLScalef(float x, float y, float z);
-void CC_DLL kmGLGetMatrix(kmGLEnum mode, kmMat4* pOut);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // MATRIX_H_INCLUDED
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/aabb.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/aabb.h
deleted file mode 100644
index 629889c..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/aabb.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef KAZMATH_AABB_H_INCLUDED
-#define KAZMATH_AABB_H_INCLUDED
-
-#include "platform/CCPlatformMacros.h"
-#include "vec3.h"
-#include "utility.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * A structure that represents an axis-aligned
- * bounding box.
- */
-typedef struct kmAABB {
- kmVec3 min; /** The max corner of the box */
- kmVec3 max; /** The min corner of the box */
-} kmAABB;
-
-CC_DLL const int kmAABBContainsPoint(const kmVec3* pPoint, const kmAABB* pBox);
-CC_DLL kmAABB* const kmAABBAssign(kmAABB* pOut, const kmAABB* pIn);
-CC_DLL kmAABB* const kmAABBScale(kmAABB* pOut, const kmAABB* pIn, kmScalar s);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/kazmath.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/kazmath.h
deleted file mode 100644
index ef09870..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/kazmath.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef KAZMATH_H_INCLUDED
-#define KAZMATH_H_INCLUDED
-
-#include "vec2.h"
-#include "vec3.h"
-#include "mat3.h"
-#include "mat4.h"
-#include "utility.h"
-#include "quaternion.h"
-#include "plane.h"
-#include "aabb.h"
-#include "ray2.h"
-
-#endif // KAZMATH_H_INCLUDED
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat3.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat3.h
deleted file mode 100644
index 4d22dfb..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat3.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-
-#ifndef MAT3_H_INCLUDED
-#define MAT3_H_INCLUDED
-
-#include "platform/CCPlatformMacros.h"
-#include "utility.h"
-
-struct kmVec3;
-struct kmQuaternion;
-
-typedef struct kmMat3{
- kmScalar mat[9];
-} kmMat3;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-CC_DLL kmMat3* const kmMat3Fill(kmMat3* pOut, const kmScalar* pMat);
-CC_DLL kmMat3* const kmMat3Adjugate(kmMat3* pOut, const kmMat3* pIn);
-CC_DLL kmMat3* const kmMat3Identity(kmMat3* pOut);
-CC_DLL kmMat3* const kmMat3Inverse(kmMat3* pOut, const kmScalar pDeterminate, const kmMat3* pM);
-CC_DLL const int kmMat3IsIdentity(const kmMat3* pIn);
-CC_DLL kmMat3* const kmMat3Transpose(kmMat3* pOut, const kmMat3* pIn);
-CC_DLL const kmScalar kmMat3Determinant(const kmMat3* pIn);
-CC_DLL kmMat3* const kmMat3Multiply(kmMat3* pOut, const kmMat3* pM1, const kmMat3* pM2);
-CC_DLL kmMat3* const kmMat3ScalarMultiply(kmMat3* pOut, const kmMat3* pM, const kmScalar pFactor);
-
-CC_DLL kmMat3* const kmMat3RotationAxisAngle(kmMat3* pOut, const struct kmVec3* axis, kmScalar radians);
-CC_DLL struct kmVec3* const kmMat3RotationToAxisAngle(struct kmVec3* pAxis, kmScalar* radians, const kmMat3* pIn);
-
-CC_DLL kmMat3* const kmMat3Assign(kmMat3* pOut, const kmMat3* pIn);
-CC_DLL const int kmMat3AreEqual(const kmMat3* pM1, const kmMat3* pM2);
-
-CC_DLL kmMat3* const kmMat3RotationX(kmMat3* pOut, const kmScalar radians);
-CC_DLL kmMat3* const kmMat3RotationY(kmMat3* pOut, const kmScalar radians);
-CC_DLL kmMat3* const kmMat3RotationZ(kmMat3* pOut, const kmScalar radians);
-
-CC_DLL kmMat3* const kmMat3Rotation(kmMat3* pOut, const kmScalar radians);
-CC_DLL kmMat3* const kmMat3Scaling(kmMat3* pOut, const kmScalar x, const kmScalar y);
-CC_DLL kmMat3* const kmMat3Translation(kmMat3* pOut, const kmScalar x, const kmScalar y);
-
-CC_DLL kmMat3* const kmMat3RotationQuaternion(kmMat3* pOut, const struct kmQuaternion* pIn);
-CC_DLL kmMat3* const kmMat3RotationAxisAngle(kmMat3* pOut, const struct kmVec3* axis, kmScalar radians);
-CC_DLL struct kmVec3* const kmMat3RotationToAxisAngle(struct kmVec3* pAxis, kmScalar* radians, const kmMat3* pIn);
-
-#ifdef __cplusplus
-}
-#endif
-#endif // MAT3_H_INCLUDED
-
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat4.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat4.h
deleted file mode 100644
index 241a0b9..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/mat4.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef MAT4_H_INCLUDED
-#define MAT4_H_INCLUDED
-
-#include "platform/CCPlatformMacros.h"
-#include "utility.h"
-
-struct kmVec3;
-struct kmMat3;
-struct kmQuaternion;
-struct kmPlane;
-
-/*
-A 4x4 matrix
-
- | 0 4 8 12 |
-mat = | 1 5 9 13 |
- | 2 6 10 14 |
- | 3 7 11 15 |
-*/
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct kmMat4 {
- kmScalar mat[16];
-} kmMat4;
-
-CC_DLL kmMat4* const kmMat4Fill(kmMat4* pOut, const kmScalar* pMat);
-
-
-CC_DLL kmMat4* const kmMat4Identity(kmMat4* pOut);
-
-CC_DLL kmMat4* const kmMat4Inverse(kmMat4* pOut, const kmMat4* pM);
-
-
-CC_DLL const int kmMat4IsIdentity(const kmMat4* pIn);
-
-CC_DLL kmMat4* const kmMat4Transpose(kmMat4* pOut, const kmMat4* pIn);
-CC_DLL kmMat4* const kmMat4Multiply(kmMat4* pOut, const kmMat4* pM1, const kmMat4* pM2);
-
-CC_DLL kmMat4* const kmMat4Assign(kmMat4* pOut, const kmMat4* pIn);
-CC_DLL const int kmMat4AreEqual(const kmMat4* pM1, const kmMat4* pM2);
-
-CC_DLL kmMat4* const kmMat4RotationX(kmMat4* pOut, const kmScalar radians);
-CC_DLL kmMat4* const kmMat4RotationY(kmMat4* pOut, const kmScalar radians);
-CC_DLL kmMat4* const kmMat4RotationZ(kmMat4* pOut, const kmScalar radians);
-CC_DLL kmMat4* const kmMat4RotationPitchYawRoll(kmMat4* pOut, const kmScalar pitch, const kmScalar yaw, const kmScalar roll);
-CC_DLL kmMat4* const kmMat4RotationQuaternion(kmMat4* pOut, const struct kmQuaternion* pQ);
-CC_DLL kmMat4* const kmMat4RotationTranslation(kmMat4* pOut, const struct kmMat3* rotation, const struct kmVec3* translation);
-CC_DLL kmMat4* const kmMat4Scaling(kmMat4* pOut, const kmScalar x, const kmScalar y, const kmScalar z);
-CC_DLL kmMat4* const kmMat4Translation(kmMat4* pOut, const kmScalar x, const kmScalar y, const kmScalar z);
-
-CC_DLL struct kmVec3* const kmMat4GetUpVec3(struct kmVec3* pOut, const kmMat4* pIn);
-CC_DLL struct kmVec3* const kmMat4GetRightVec3(struct kmVec3* pOut, const kmMat4* pIn);
-CC_DLL struct kmVec3* const kmMat4GetForwardVec3(struct kmVec3* pOut, const kmMat4* pIn);
-
-CC_DLL kmMat4* const kmMat4PerspectiveProjection(kmMat4* pOut, kmScalar fovY, kmScalar aspect, kmScalar zNear, kmScalar zFar);
-CC_DLL kmMat4* const kmMat4OrthographicProjection(kmMat4* pOut, kmScalar left, kmScalar right, kmScalar bottom, kmScalar top, kmScalar nearVal, kmScalar farVal);
-CC_DLL kmMat4* const kmMat4LookAt(kmMat4* pOut, const struct kmVec3* pEye, const struct kmVec3* pCenter, const struct kmVec3* pUp);
-
-CC_DLL kmMat4* const kmMat4RotationAxisAngle(kmMat4* pOut, const struct kmVec3* axis, kmScalar radians);
-CC_DLL struct kmMat3* const kmMat4ExtractRotation(struct kmMat3* pOut, const kmMat4* pIn);
-CC_DLL struct kmPlane* const kmMat4ExtractPlane(struct kmPlane* pOut, const kmMat4* pIn, const kmEnum plane);
-CC_DLL struct kmVec3* const kmMat4RotationToAxisAngle(struct kmVec3* pAxis, kmScalar* radians, const kmMat4* pIn);
-#ifdef __cplusplus
-}
-#endif
-#endif /* MAT4_H_INCLUDED */
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/neon_matrix_impl.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/neon_matrix_impl.h
deleted file mode 100644
index aa85e6d..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/neon_matrix_impl.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- NEON math library for the iPhone / iPod touch
-
- Copyright (c) 2009 Justin Saunders
-
- This software is provided 'as-is', without any express or implied warranty.
- In no event will the authors be held liable for any damages arising
- from the use of this software.
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications, and to alter it and redistribute it freely,
- subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must
- not claim that you wrote the original software. If you use this
- software in a product, an acknowledgment in the product documentation
- would be appreciated but is not required.
-
- 2. Altered source versions must be plainly marked as such, and must
- not be misrepresented as being the original software.
-
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#ifndef __NEON_MATRIX_IMPL_H__
-#define __NEON_MATRIX_IMPL_H__
-
-#ifdef __arm__
-#if defined(__QNX__) || defined(ANDROID) || defined(I3D_ARCH_ARM) || defined(__native_client__) || defined(TIZEN) // MARMALADE CHANGE: Added for Marmalade support
-// blackberry and android don't have arm/arch.h but it defines __arm__
-#else
-#include "arm/arch.h"
-#endif
-#endif // __arm__
-
-// Matrices are assumed to be stored in column major format according to OpenGL
-// specification.
-
-// Multiplies two 4x4 matrices (a,b) outputting a 4x4 matrix (output)
-void NEON_Matrix4Mul(const float* a, const float* b, float* output );
-
-// Multiplies a 4x4 matrix (m) with a vector 4 (v), outputting a vector 4
-void NEON_Matrix4Vector4Mul(const float* m, const float* v, float* output);
-
-
-#endif // __NEON_MATRIX_IMPL_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/plane.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/plane.h
deleted file mode 100644
index c4e4fe5..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/plane.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef PLANE_H_INCLUDED
-#define PLANE_H_INCLUDED
-
-#define KM_PLANE_LEFT 0
-#define KM_PLANE_RIGHT 1
-#define KM_PLANE_BOTTOM 2
-#define KM_PLANE_TOP 3
-#define KM_PLANE_NEAR 4
-#define KM_PLANE_FAR 5
-
-#include "platform/CCPlatformMacros.h"
-#include "utility.h"
-
-struct kmVec3;
-struct kmVec4;
-struct kmMat4;
-
-typedef struct kmPlane {
- kmScalar a, b, c, d;
-} kmPlane;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef enum POINT_CLASSIFICATION {
- POINT_INFRONT_OF_PLANE = 0,
- POINT_BEHIND_PLANE,
- POINT_ON_PLANE,
-} POINT_CLASSIFICATION;
-
-CC_DLL const kmScalar kmPlaneDot(const kmPlane* pP, const struct kmVec4* pV);
-CC_DLL const kmScalar kmPlaneDotCoord(const kmPlane* pP, const struct kmVec3* pV);
-CC_DLL const kmScalar kmPlaneDotNormal(const kmPlane* pP, const struct kmVec3* pV);
-CC_DLL kmPlane* const kmPlaneFromPointNormal(kmPlane* pOut, const struct kmVec3* pPoint, const struct kmVec3* pNormal);
-CC_DLL kmPlane* const kmPlaneFromPoints(kmPlane* pOut, const struct kmVec3* p1, const struct kmVec3* p2, const struct kmVec3* p3);
-CC_DLL kmVec3* const kmPlaneIntersectLine(struct kmVec3* pOut, const kmPlane* pP, const struct kmVec3* pV1, const struct kmVec3* pV2);
-CC_DLL kmPlane* const kmPlaneNormalize(kmPlane* pOut, const kmPlane* pP);
-CC_DLL kmPlane* const kmPlaneScale(kmPlane* pOut, const kmPlane* pP, kmScalar s);
-CC_DLL const POINT_CLASSIFICATION kmPlaneClassifyPoint(const kmPlane* pIn, const kmVec3* pP); /** Classifies a point against a plane */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // PLANE_H_INCLUDED
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/quaternion.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/quaternion.h
deleted file mode 100644
index a3632f0..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/quaternion.h
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef QUATERNION_H_INCLUDED
-#define QUATERNION_H_INCLUDED
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "platform/CCPlatformMacros.h"
-#include "utility.h"
-
-struct kmMat4;
-struct kmMat3;
-struct kmVec3;
-
-typedef struct kmQuaternion {
- kmScalar x;
- kmScalar y;
- kmScalar z;
- kmScalar w;
-} kmQuaternion;
-
-CC_DLL kmQuaternion* const kmQuaternionConjugate(kmQuaternion* pOut, const kmQuaternion* pIn); ///< Returns pOut, sets pOut to the conjugate of pIn
-
-CC_DLL const kmScalar kmQuaternionDot(const kmQuaternion* q1, const kmQuaternion* q2); ///< Returns the dot product of the 2 quaternions
-
-CC_DLL kmQuaternion* kmQuaternionExp(kmQuaternion* pOut, const kmQuaternion* pIn); ///< Returns the exponential of the quaternion
-
-///< Makes the passed quaternion an identity quaternion
-
-CC_DLL kmQuaternion* kmQuaternionIdentity(kmQuaternion* pOut);
-
-///< Returns the inverse of the passed Quaternion
-
-CC_DLL kmQuaternion* kmQuaternionInverse(kmQuaternion* pOut,
- const kmQuaternion* pIn);
-
-///< Returns true if the quaternion is an identity quaternion
-
-CC_DLL int kmQuaternionIsIdentity(const kmQuaternion* pIn);
-
-///< Returns the length of the quaternion
-
-CC_DLL kmScalar kmQuaternionLength(const kmQuaternion* pIn);
-
-///< Returns the length of the quaternion squared (prevents a sqrt)
-
-CC_DLL kmScalar kmQuaternionLengthSq(const kmQuaternion* pIn);
-
-///< Returns the natural logarithm
-
-CC_DLL kmQuaternion* kmQuaternionLn(kmQuaternion* pOut, const kmQuaternion* pIn);
-
-///< Multiplies 2 quaternions together
-
-CC_DLL kmQuaternion* kmQuaternionMultiply(kmQuaternion* pOut, const kmQuaternion* q1, const kmQuaternion* q2);
-
-///< Normalizes a quaternion
-
-CC_DLL kmQuaternion* kmQuaternionNormalize(kmQuaternion* pOut, const kmQuaternion* pIn);
-
-///< Rotates a quaternion around an axis
-
-CC_DLL kmQuaternion* kmQuaternionRotationAxis(kmQuaternion* pOut, const struct kmVec3* pV, kmScalar angle);
-
-///< Creates a quaternion from a rotation matrix
-
-CC_DLL kmQuaternion* kmQuaternionRotationMatrix(kmQuaternion* pOut, const struct kmMat3* pIn);
-
-///< Create a quaternion from yaw, pitch and roll
-
-CC_DLL kmQuaternion* kmQuaternionRotationYawPitchRoll(kmQuaternion* pOut, kmScalar yaw, kmScalar pitch, kmScalar roll);
-///< Interpolate between 2 quaternions
-CC_DLL kmQuaternion* kmQuaternionSlerp(kmQuaternion* pOut, const kmQuaternion* q1, const kmQuaternion* q2, kmScalar t);
-
-///< Get the axis and angle of rotation from a quaternion
-CC_DLL void kmQuaternionToAxisAngle(const kmQuaternion* pIn, struct kmVec3* pVector, kmScalar* pAngle);
-
-///< Scale a quaternion
-CC_DLL kmQuaternion* kmQuaternionScale(kmQuaternion* pOut, const kmQuaternion* pIn, kmScalar s);
-CC_DLL kmQuaternion* kmQuaternionAssign(kmQuaternion* pOut, const kmQuaternion* pIn);
-CC_DLL kmQuaternion* kmQuaternionAdd(kmQuaternion* pOut, const kmQuaternion* pQ1, const kmQuaternion* pQ2);
-CC_DLL kmQuaternion* kmQuaternionRotationBetweenVec3(kmQuaternion* pOut, const struct kmVec3* vec1, const struct kmVec3* vec2, const struct kmVec3* fallback);
-CC_DLL struct kmVec3* kmQuaternionMultiplyVec3(struct kmVec3* pOut, const kmQuaternion* q, const struct kmVec3* v);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/ray2.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/ray2.h
deleted file mode 100644
index 6734a95..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/ray2.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
-Copyright (c) 2011, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef RAY_2_H
-#define RAY_2_H
-
-#include "platform/CCPlatformMacros.h"
-#include "utility.h"
-#include "vec2.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct kmRay2 {
- kmVec2 start;
- kmVec2 dir;
-} kmRay2;
-
-CC_DLL void kmRay2Fill(kmRay2* ray, kmScalar px, kmScalar py, kmScalar vx, kmScalar vy);
-CC_DLL kmBool kmRay2IntersectLineSegment(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, kmVec2* intersection);
-CC_DLL kmBool kmRay2IntersectTriangle(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, const kmVec2* p3, kmVec2* intersection, kmVec2* normal_out);
-CC_DLL kmBool kmRay2IntersectCircle(const kmRay2* ray, const kmVec2 centre, const kmScalar radius, kmVec2* intersection);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/utility.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/utility.h
deleted file mode 100644
index ed6bff6..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/utility.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef UTILITY_H_INCLUDED
-#define UTILITY_H_INCLUDED
-
-#include "platform/CCPlatformMacros.h"
-#include
-
-#ifndef kmScalar
-#define kmScalar float
-#endif
-
-#ifndef kmBool
-#define kmBool unsigned char
-#endif
-
-#ifndef kmEnum
-#define kmEnum unsigned int
-#endif
-
-#ifndef KM_FALSE
-#define KM_FALSE 0
-#endif
-
-#ifndef KM_TRUE
-#define KM_TRUE 1
-#endif
-
-#define kmPI 3.141592f
-#define kmPIOver180 0.017453f // PI / 180
-#define kmPIUnder180 57.295779f // 180 / PI
-#define kmEpsilon 1.0 / 64.0
-
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-CC_DLL kmScalar kmSQR(kmScalar s);
-CC_DLL kmScalar kmDegreesToRadians(kmScalar degrees);
-CC_DLL kmScalar kmRadiansToDegrees(kmScalar radians);
-
-CC_DLL kmScalar kmMin(kmScalar lhs, kmScalar rhs);
-CC_DLL kmScalar kmMax(kmScalar lhs, kmScalar rhs);
-CC_DLL kmBool kmAlmostEqual(kmScalar lhs, kmScalar rhs);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* UTILITY_H_INCLUDED */
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec2.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec2.h
deleted file mode 100644
index 6c29d40..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec2.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef VEC2_H_INCLUDED
-#define VEC2_H_INCLUDED
-
-#include "platform/CCPlatformMacros.h"
-
-struct kmMat3;
-
-#ifndef kmScalar
-#define kmScalar float
-#endif
-
-#pragma pack(push) /* push current alignment to stack */
-#pragma pack(1) /* set alignment to 1 byte boundary */
-typedef struct kmVec2 {
- kmScalar x;
- kmScalar y;
-} kmVec2;
-
-#pragma pack(pop)
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-CC_DLL kmVec2* kmVec2Fill(kmVec2* pOut, kmScalar x, kmScalar y);
-CC_DLL kmScalar kmVec2Length(const kmVec2* pIn); ///< Returns the length of the vector
-CC_DLL kmScalar kmVec2LengthSq(const kmVec2* pIn); ///< Returns the square of the length of the vector
-CC_DLL kmVec2* kmVec2Normalize(kmVec2* pOut, const kmVec2* pIn); ///< Returns the vector passed in set to unit length
-CC_DLL kmVec2* kmVec2Add(kmVec2* pOut, const kmVec2* pV1, const kmVec2* pV2); ///< Adds 2 vectors and returns the result
-CC_DLL kmScalar kmVec2Dot(const kmVec2* pV1, const kmVec2* pV2); /** Returns the Dot product which is the cosine of the angle between the two vectors multiplied by their lengths */
-CC_DLL kmVec2* kmVec2Subtract(kmVec2* pOut, const kmVec2* pV1, const kmVec2* pV2); ///< Subtracts 2 vectors and returns the result
-CC_DLL kmVec2* kmVec2Transform(kmVec2* pOut, const kmVec2* pV1, const struct kmMat3* pM); /** Transform the Vector */
-CC_DLL kmVec2* kmVec2TransformCoord(kmVec2* pOut, const kmVec2* pV, const struct kmMat3* pM); ///
-
-#ifndef kmScalar
-#define kmScalar float
-#endif
-
-struct kmMat4;
-
-typedef struct kmVec3 {
- kmScalar x;
- kmScalar y;
- kmScalar z;
-} kmVec3;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-CC_DLL kmVec3* kmVec3Fill(kmVec3* pOut, kmScalar x, kmScalar y, kmScalar z);
-CC_DLL kmScalar kmVec3Length(const kmVec3* pIn); /** Returns the length of the vector */
-CC_DLL kmScalar kmVec3LengthSq(const kmVec3* pIn); /** Returns the square of the length of the vector */
-CC_DLL kmVec3* kmVec3Normalize(kmVec3* pOut, const kmVec3* pIn); /** Returns the vector passed in set to unit length */
-CC_DLL kmVec3* kmVec3Cross(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2); /** Returns a vector perpendicular to 2 other vectors */
-CC_DLL kmScalar kmVec3Dot(const kmVec3* pV1, const kmVec3* pV2); /** Returns the cosine of the angle between 2 vectors */
-CC_DLL kmVec3* kmVec3Add(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2); /** Adds 2 vectors and returns the result */
-CC_DLL kmVec3* kmVec3Subtract(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2); /** Subtracts 2 vectors and returns the result */
-CC_DLL kmVec3* kmVec3Transform(kmVec3* pOut, const kmVec3* pV1, const struct kmMat4* pM); /** Transforms a vector (assuming w=1) by a given matrix */
-CC_DLL kmVec3* kmVec3TransformNormal(kmVec3* pOut, const kmVec3* pV, const struct kmMat4* pM);/**Transforms a 3D normal by a given matrix */
-CC_DLL kmVec3* kmVec3TransformCoord(kmVec3* pOut, const kmVec3* pV, const struct kmMat4* pM); /**Transforms a 3D vector by a given matrix, projecting the result back into w = 1. */
-CC_DLL kmVec3* kmVec3Scale(kmVec3* pOut, const kmVec3* pIn, const kmScalar s); /** Scales a vector to length s */
-CC_DLL int kmVec3AreEqual(const kmVec3* p1, const kmVec3* p2);
-CC_DLL kmVec3* kmVec3InverseTransform(kmVec3* pOut, const kmVec3* pV, const struct kmMat4* pM);
-CC_DLL kmVec3* kmVec3InverseTransformNormal(kmVec3* pOut, const kmVec3* pVect, const struct kmMat4* pM);
-CC_DLL kmVec3* kmVec3Assign(kmVec3* pOut, const kmVec3* pIn);
-CC_DLL kmVec3* kmVec3Zero(kmVec3* pOut);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* VEC3_H_INCLUDED */
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec4.h b/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec4.h
deleted file mode 100644
index 7956d2a..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/vec4.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#ifndef VEC4_H_INCLUDED
-#define VEC4_H_INCLUDED
-
-#include "platform/CCPlatformMacros.h"
-#include "utility.h"
-
-struct kmMat4;
-
-#pragma pack(push) /* push current alignment to stack */
-#pragma pack(1) /* set alignment to 1 byte boundary */
-
-typedef struct kmVec4 {
- kmScalar x;
- kmScalar y;
- kmScalar z;
- kmScalar w;
-} kmVec4;
-
-#pragma pack(pop)
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-CC_DLL kmVec4* kmVec4Fill(kmVec4* pOut, kmScalar x, kmScalar y, kmScalar z, kmScalar w);
-CC_DLL kmVec4* kmVec4Add(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2);
-CC_DLL kmScalar kmVec4Dot(const kmVec4* pV1, const kmVec4* pV2);
-CC_DLL kmScalar kmVec4Length(const kmVec4* pIn);
-CC_DLL kmScalar kmVec4LengthSq(const kmVec4* pIn);
-CC_DLL kmVec4* kmVec4Lerp(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2, kmScalar t);
-CC_DLL kmVec4* kmVec4Normalize(kmVec4* pOut, const kmVec4* pIn);
-CC_DLL kmVec4* kmVec4Scale(kmVec4* pOut, const kmVec4* pIn, const kmScalar s); ///< Scales a vector to length s
-CC_DLL kmVec4* kmVec4Subtract(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2);
-CC_DLL kmVec4* kmVec4Transform(kmVec4* pOut, const kmVec4* pV, const struct kmMat4* pM);
-CC_DLL kmVec4* kmVec4TransformArray(kmVec4* pOut, unsigned int outStride,
- const kmVec4* pV, unsigned int vStride, const struct kmMat4* pM, unsigned int count);
-CC_DLL int kmVec4AreEqual(const kmVec4* p1, const kmVec4* p2);
-CC_DLL kmVec4* kmVec4Assign(kmVec4* pOut, const kmVec4* pIn);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif // VEC4_H_INCLUDED
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/CMakeLists.txt b/cappuccino-sdk/incl/cocos2dx/kazmath/src/CMakeLists.txt
deleted file mode 100644
index a389466..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-
-#ADD_LIBRARY(Kazmath STATIC ${KAZMATH_SRCS})
-#INSTALL(TARGETS Kazmath ARCHIVE DESTINATION lib)
-
-INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/include )
-
-ADD_LIBRARY(kazmath STATIC ${KAZMATH_SOURCES})
-INSTALL(TARGETS kazmath ARCHIVE DESTINATION lib)
-
-#ADD_LIBRARY(KazmathGL STATIC ${GL_UTILS_SRCS})
-#INSTALL(TARGETS KazmathGL ARCHIVE DESTINATION lib)
-
-INSTALL(FILES ${KAZMATH_HEADERS} DESTINATION include/kazmath)
-INSTALL(FILES ${GL_UTILS_HEADERS} DESTINATION include/kazmath/GL)
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/ChangeLog b/cappuccino-sdk/incl/cocos2dx/kazmath/src/ChangeLog
deleted file mode 100644
index f13b823..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/ChangeLog
+++ /dev/null
@@ -1,738 +0,0 @@
-------------------------------------------------------------
-revno: 111
-committer: Kazade
-branch nick: kazmath
-timestamp: Thu 2010-08-19 12:07:29 +0100
-message:
- Fix #620352. Fix a reference to kmMat4RotationAxisAngle
-------------------------------------------------------------
-revno: 110
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Wed 2010-04-21 12:55:39 +0200
-message:
- applied the change to the header files as well
-------------------------------------------------------------
-revno: 109
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Wed 2010-04-21 12:54:06 +0200
-message:
- fixed kmMat4RotationAxis
-------------------------------------------------------------
-revno: 108 [merge]
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Wed 2010-04-21 12:27:53 +0200
-message:
- fixed CMake in kazmathxx due to missing utility.h
-------------------------------------------------------------
-revno: 107
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Wed 2010-04-21 12:22:40 +0200
-message:
- fixed mat4 rotation axis by normalizing the axis first
-------------------------------------------------------------
-revno: 106
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2010-01-09 16:56:04 +0000
-message:
- Add cmake module
-------------------------------------------------------------
-revno: 105
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2010-01-09 16:23:31 +0000
-message:
- Remove kazmodel - it really should belong in its own repo
-------------------------------------------------------------
-revno: 104
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Fri 2010-01-08 23:03:13 +0000
-message:
- Reorganize the headers so that the tests can compile in place
-------------------------------------------------------------
-revno: 103
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Mon 2009-08-31 11:21:42 +0200
-message:
- Operators now inline, constructors fixed
-------------------------------------------------------------
-revno: 102
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sat 2009-08-29 11:42:59 +0200
-message:
- fixed some compilation errors - still how do we define operators in headers correctly??
-------------------------------------------------------------
-revno: 101
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Wed 2009-08-26 10:37:52 +0100
-message:
- Added the header defines
-------------------------------------------------------------
-revno: 100
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Wed 2009-08-26 09:38:47 +0100
-message:
- Added a V2 for kazmathxx
-------------------------------------------------------------
-revno: 99
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-08-02 08:08:26 +0100
-message:
- Added missing header file to one of the tests
-------------------------------------------------------------
-revno: 98
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sat 2009-08-01 12:05:25 +0200
-message:
- No longer doing self assignment in kmMat4Inverse
-------------------------------------------------------------
-revno: 97
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sat 2009-08-01 11:15:36 +0200
-message:
- Fixed kmMat4Inverse
-------------------------------------------------------------
-revno: 96
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-08-01 09:20:33 +0100
-message:
- Fixed some whitespace issues in plane.c
-------------------------------------------------------------
-revno: 95
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-08-01 09:17:01 +0100
-message:
- Rename kmAABBPointInBox to kmAABBContainsPoint
-------------------------------------------------------------
-revno: 94
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-08-01 09:16:28 +0100
-message:
- Implement kmAABBPointInBox
-------------------------------------------------------------
-revno: 93
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-08-01 09:14:00 +0100
-message:
- Implement kmAABBAssign
-------------------------------------------------------------
-revno: 92
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-08-01 09:10:36 +0100
-message:
- Fixed some whitespace and added some comments
-------------------------------------------------------------
-revno: 91
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-08-01 08:56:13 +0100
-message:
- Implemented (untested) kmMat4RotationTranslation to construct a 4x4 matrix from a 3x3 + vec3
-------------------------------------------------------------
-revno: 90
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-07-05 07:55:45 +0100
-message:
- Added kmMat3RotationX, kmMat3RotationY and kmMat3RotationZ
-------------------------------------------------------------
-revno: 89
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sat 2009-06-27 09:38:20 +0200
-message:
- Fixed a crash?
-------------------------------------------------------------
-revno: 88
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Tue 2009-04-28 09:52:57 +0100
-message:
- Added a test for kmMat4Transpose
-------------------------------------------------------------
-revno: 87
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Tue 2009-04-28 08:49:59 +0100
-message:
- Added a commented test for kmMat4Inverse, however kmMat4Adjugate and kmMat4Determinate need implementing
-------------------------------------------------------------
-revno: 86
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Tue 2009-04-28 08:46:03 +0100
-message:
- Fixed bug in kmQuaternionRotationMatrix
-------------------------------------------------------------
-revno: 85
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Tue 2009-04-28 08:41:27 +0100
-message:
- Added missing include to test_mat3.cpp
-------------------------------------------------------------
-revno: 84
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Mon 2009-04-27 22:59:08 +0200
-message:
- fixed CMakeLists.txt for the tests
-------------------------------------------------------------
-revno: 83
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 21:34:20 +0100
-message:
- Added a test for kmMat3Translation
-------------------------------------------------------------
-revno: 82
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 21:32:19 +0100
-message:
- Fixed bugs in kmMat3Scaling and kmMat3Translation, added test for kmMat3Scaling
-------------------------------------------------------------
-revno: 81 [merge]
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 19:04:56 +0100
-message:
- Merge from upstream. Fixed mismatching prototype in quaternion.c
-------------------------------------------------------------
-revno: 80
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 19:01:35 +0100
-message:
- Added a test for kmMat3AreEqual. Fixed a bug in kmMat3AreEqual
-------------------------------------------------------------
-revno: 79
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 18:57:28 +0100
-message:
- Added a test for kmMat3IsIdentity
-------------------------------------------------------------
-revno: 78
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 18:54:48 +0100
-message:
- Added a test for kmMat3Identity
-------------------------------------------------------------
-revno: 77
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 18:52:14 +0100
-message:
- Added a test for kmMat3Fill
-------------------------------------------------------------
-revno: 76
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 18:46:30 +0100
-message:
- Added some mat3 unit tests. Fixed a bug in kmMat3AreEqual
-------------------------------------------------------------
-revno: 75
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 11:08:43 +0100
-message:
- Added mat4 test stub
-------------------------------------------------------------
-revno: 74
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 11:06:12 +0100
-message:
- Enabled unit testing in cmake
-------------------------------------------------------------
-revno: 73
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 10:44:37 +0100
-message:
- Added cmakelists.txt to the tests subfolder
-------------------------------------------------------------
-revno: 72
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 10:37:34 +0100
-message:
- Added stub mat3 test file
-------------------------------------------------------------
-revno: 71
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Mon 2009-04-27 10:35:48 +0100
-message:
- Added tests folder for new boost::unit based tests
-------------------------------------------------------------
-revno: 70
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sun 2009-04-26 14:25:48 +0200
-message:
- Fixed the new quaternion -> Matrix -> AngleAxis methods and added them to mat4
-------------------------------------------------------------
-revno: 69
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 12:40:08 +0100
-message:
- Added kazmodel to the kazlibs repo
-------------------------------------------------------------
-revno: 68 [merge]
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 12:34:27 +0100
-message:
- Merge from upstream
-------------------------------------------------------------
-revno: 67
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 12:33:43 +0100
-message:
- Reorganized bzr
-------------------------------------------------------------
-revno: 66
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 10:00:18 +0100
-message:
- Renamed kmMat3RotationAxis to kmMat3RotationAxisAngle to be more accurate
-------------------------------------------------------------
-revno: 65
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 09:57:19 +0100
-message:
- Fixed some compilation errors
-------------------------------------------------------------
-revno: 64
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 09:54:12 +0100
-message:
- Added untested implementation of kmMat3RotationToAxisAngle
-------------------------------------------------------------
-revno: 63
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 09:49:17 +0100
-message:
- Added stub for kmMat3RotationToAxisAngle()
-------------------------------------------------------------
-revno: 62
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 09:45:58 +0100
-message:
- Corrected a typo
-------------------------------------------------------------
-revno: 61
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sun 2009-04-26 09:44:39 +0100
-message:
- Fixed broken Quaternion functions
- Added (untested) kmMat3RotationAxis()
-------------------------------------------------------------
-revno: 60
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-04-18 08:55:29 +0100
-message:
- Fixed some errors in the quaternion header.
- Changed kmQuaternionRotationMatrix to accept a kmMat3 instead of kmMat4
-------------------------------------------------------------
-revno: 59
-committer: Luke Benstead
-branch nick: kazmath
-timestamp: Sat 2009-04-18 08:42:38 +0100
-message:
- Added kmMat3RotationQuaternion
-------------------------------------------------------------
-revno: 58
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sun 2009-04-05 11:58:29 +0200
-message:
- Added mat3
-------------------------------------------------------------
-revno: 57 [merge]
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sun 2009-04-05 11:54:15 +0200
-message:
- Implemented mat4 and vec4 for kazmathxx
-------------------------------------------------------------
-revno: 56
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Sun 2009-04-05 11:53:07 +0200
-message:
- Implemented mat4 and vec4 for kazmathxx
-------------------------------------------------------------
-revno: 55
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Fri 2009-03-13 16:46:26 +0100
-message:
- added km::vec3 to kazmathxx
-------------------------------------------------------------
-revno: 54
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Fri 2009-03-13 16:14:51 +0100
-message:
- Fixed: kmVec2 is no longer transformed by kmMat4\nAdded km::vec2
-------------------------------------------------------------
-revno: 53
-committer: Carsten Haubld
-branch nick: kazmath
-timestamp: Fri 2009-03-13 15:38:53 +0100
-message:
- Added folder for kazmathxx
-------------------------------------------------------------
-revno: 52 [merge]
-committer: Luke Benstead
-branch nick: trunk
-timestamp: Fri 2009-03-13 14:04:32 +0000
-message:
- Merge from upstream
-------------------------------------------------------------
-revno: 51
-committer: Luke Benstead
-branch nick: trunk
-timestamp: Fri 2009-03-13 14:00:14 +0000
-message:
- Fixed for C89
-------------------------------------------------------------
-revno: 50
-committer: Carsten Haubold
-timestamp: Tue 2008-12-30 12:45:23 +0100
-message:
- fixed kmGLTranslate
-------------------------------------------------------------
-revno: 49
-committer: Carsten Haubold
-timestamp: Tue 2008-12-30 12:15:27 +0100
-message:
- fixed some stack memory leaks
-------------------------------------------------------------
-revno: 48
-committer: Carsten Haubold
-timestamp: Tue 2008-12-30 11:01:35 +0100
-message:
- The GL matrix stacks now work as expected - matrix multiplication was the wrong way round
-------------------------------------------------------------
-revno: 47
-committer: Carsten Haubold
-timestamp: Tue 2008-12-30 10:52:28 +0100
-message:
- Debug output
-------------------------------------------------------------
-revno: 46
-committer: Carsten Haubold
-timestamp: Mon 2008-12-29 18:32:13 +0100
-message:
- Fixed some compiler errors
-------------------------------------------------------------
-revno: 45
-committer: Luke
-timestamp: Wed 2008-11-19 08:36:47 +0000
-message:
- Added kmGLTranslatef, kmGLScalef and kmGLRotatef
-------------------------------------------------------------
-revno: 44
-committer: Luke
-timestamp: Tue 2008-11-04 20:57:30 +0000
-message:
- Fixed up kazmathxx
-------------------------------------------------------------
-revno: 43
-committer: Luke
-timestamp: Wed 2008-10-29 09:24:32 +0000
-message:
- Started implementing C++ operators in kazmathxx.h
-------------------------------------------------------------
-revno: 42
-committer: Luke
-timestamp: Tue 2008-10-28 18:21:16 +0000
-message:
- Added kazmathxx.h for C++ usage
-------------------------------------------------------------
-revno: 41
-committer: Luke
-timestamp: Tue 2008-10-28 11:00:41 +0000
-message:
- Added Doxygen documentation
-------------------------------------------------------------
-revno: 40
-committer: Luke
-timestamp: Tue 2008-10-28 08:46:19 +0000
-message:
- Began documenting the kmPlane functions.
- Changed some assert(0)s to include a not implemented message
-------------------------------------------------------------
-revno: 39
-committer: Luke
-timestamp: Tue 2008-10-28 08:42:24 +0000
-message:
- - Wrote stubs for the AABB functions which raise assertions if used.
- - Documented the AABB functions
- - Changed the definition of kmAABBPointInBox so that it actually makes sense
-------------------------------------------------------------
-revno: 38
-committer: Luke
-timestamp: Tue 2008-10-28 08:38:48 +0000
-message:
- - Documented utility.c
-------------------------------------------------------------
-revno: 37
-committer: Luke
-timestamp: Tue 2008-10-28 08:36:30 +0000
-message:
- - Documented vec3.c in detail.
- - Fixed up a not-implemented assertion.
- - Changed existing doc strings to C style - /** */
-------------------------------------------------------------
-revno: 36
-committer: Luke
-timestamp: Tue 2008-10-28 08:30:00 +0000
-message:
- Removed uneccessary files from git
-------------------------------------------------------------
-revno: 35
-committer: Luke
-timestamp: Tue 2008-10-28 08:28:49 +0000
-message:
- - Documented all the functions in mat4.c
- - Fixed up all asserts in mat4.c to include a message
- - Tidied up the code. Mat4.c is now done.
-------------------------------------------------------------
-revno: 34
-committer: Luke
-timestamp: Mon 2008-10-27 21:52:33 +0000
-message:
- Added potential 0.1 release binary
-------------------------------------------------------------
-revno: 33
-committer: Luke Benstead
-timestamp: Mon 2008-10-27 21:46:55 +0000
-message:
- Changed the README to include the BSD license
-------------------------------------------------------------
-revno: 32
-committer: Luke Benstead
-timestamp: Mon 2008-10-27 21:45:51 +0000
-message:
- Added the modified BSD license to all source files
-------------------------------------------------------------
-revno: 31
-committer: Luke Benstead
-timestamp: Mon 2008-10-27 21:11:51 +0000
-message:
- Fixed the installation of header files in CMake
-------------------------------------------------------------
-revno: 30
-committer: Luke
-timestamp: Mon 2008-10-27 21:05:51 +0000
-message:
- Added kazmath project files
-------------------------------------------------------------
-revno: 29 [merge]
-committer: Luke
-timestamp: Mon 2008-10-27 21:03:22 +0000
-message:
- Merge branch 'master' of git@github.com:Kazade/kazmath
-------------------------------------------------------------
-revno: 28
-committer: Luke
-timestamp: Mon 2008-10-27 21:02:04 +0000
-message:
- Finally got kazmath compiling on VC++, man that compiler sucks! Have MS not heard of C99?
-------------------------------------------------------------
-revno: 27
-committer: Luke Benstead
-timestamp: Sun 2008-10-26 21:35:24 +0000
-message:
- Changed the readme slightly, we need to change the license everywhere
-------------------------------------------------------------
-revno: 26
-committer: Luke Benstead
-timestamp: Sun 2008-10-26 21:21:47 +0000
-message:
- Implemented the stacks test, fixed the undefined references I was getting
-------------------------------------------------------------
-revno: 25
-committer: Luke Benstead
-timestamp: Sun 2008-10-26 20:59:34 +0000
-message:
- Removed the old matrix stack stuff
-------------------------------------------------------------
-revno: 24
-committer: Luke Benstead
-timestamp: Sun 2008-10-26 20:11:58 +0000
-message:
- Started implementing the matrix stack tests
-------------------------------------------------------------
-revno: 23
-committer: Luke Benstead
-timestamp: Sun 2008-10-26 10:56:51 +0000
-message:
- Started new implementation of the GL matrix stack
-------------------------------------------------------------
-revno: 22
-committer: Carsten Haubold
-timestamp: Thu 2008-08-28 12:37:41 +0200
-message:
- Added kmGLRotation
-------------------------------------------------------------
-revno: 21
-committer: Luke Benstead
-timestamp: Thu 2008-08-28 09:24:00 +0100
-message:
- We now have a working matrix stack
-------------------------------------------------------------
-revno: 20
-committer: Luke Benstead
-timestamp: Wed 2008-08-27 13:34:49 +0100
-message:
- Fixed the stack memory constants
-------------------------------------------------------------
-revno: 19
-committer: Luke Benstead
-timestamp: Wed 2008-08-27 13:33:12 +0100
-message:
- Added the initial gl_utils implementation for replacing the matrix functionality deprecated in OpenGL 3.0
-------------------------------------------------------------
-revno: 18
-committer: Carsten Haubold
-timestamp: Mon 2008-08-25 12:46:16 +0200
-message:
- Fixed a bug in kmMat4LookAt
-------------------------------------------------------------
-revno: 17 [merge]
-committer: Carsten Haubold
-timestamp: Sun 2008-08-24 22:07:49 +0200
-message:
- Merge branch 'master' of git@github.com:Kazade/kazmath
-------------------------------------------------------------
-revno: 16
-committer: Carsten Haubold
-timestamp: Sun 2008-08-24 22:06:45 +0200
-message:
- Added kmMat4LookAt
-------------------------------------------------------------
-revno: 15
-committer: Carsten Haubold
-timestamp: Wed 2008-08-20 11:18:10 +0200
-message:
- Added Fill methods for all Vec and Mat structs
-------------------------------------------------------------
-revno: 14
-committer: Carsten Haubold
-timestamp: Tue 2008-08-19 22:31:55 +0200
-message:
- Added UnitTests, changed bool to int and fixed some minor bugs
-------------------------------------------------------------
-revno: 13
-committer: Carsten Haubold
-timestamp: Sun 2008-08-17 23:19:21 +0200
-message:
- removed .svn entries which did not belong here
-------------------------------------------------------------
-revno: 12
-committer: Carsten Haubold
-timestamp: Sun 2008-08-17 23:17:07 +0200
-message:
- some tweaks on matrices and first test-app, PerspectiveProjection is correct !
-------------------------------------------------------------
-revno: 11
-committer: Carsten Haubold
-timestamp: Sun 2008-08-17 16:04:09 +0200
-message:
- Renamed cotangent to cotangens
-------------------------------------------------------------
-revno: 10
-committer: Luke Benstead
-timestamp: Sat 2008-08-16 21:51:22 +0100
-message:
- Added kmMat4PerspectiveProjection and kmMat4OrthographicProjection
-------------------------------------------------------------
-revno: 9
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 21:15:45 +0100
-message:
- Added the aabb struct
-------------------------------------------------------------
-revno: 8
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 17:57:43 +0100
-message:
- Added the kmAABB structure
-------------------------------------------------------------
-revno: 7
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 14:32:24 +0100
-message:
- Fixed broken kmMat3Transpose
-------------------------------------------------------------
-revno: 6
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 14:21:04 +0100
-message:
- Fixed broken kmMat4Translation, w component was not set
-------------------------------------------------------------
-revno: 5
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 14:01:47 +0100
-message:
- Added mat3.c and mat3.h to the cmake file
-------------------------------------------------------------
-revno: 4
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 13:56:26 +0100
-message:
- Added the authors section to the readme
-------------------------------------------------------------
-revno: 3
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 13:55:41 +0100
-message:
- Updated the readme file
-------------------------------------------------------------
-revno: 2
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 13:53:26 +0100
-message:
- Added kazmath to git
-------------------------------------------------------------
-revno: 1
-committer: Luke Benstead
-timestamp: Thu 2008-08-14 13:47:51 +0100
-message:
- First commit
-------------------------------------------------------------
-Use --include-merges or -n0 to see merged revisions.
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/mat4stack.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/mat4stack.c
deleted file mode 100644
index da89c50..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/mat4stack.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include
-#include
-#include
-#include
-
-#define INITIAL_SIZE 30
-#define INCREMENT 50
-
-#include "kazmath/GL/mat4stack.h"
-
-void km_mat4_stack_initialize(km_mat4_stack* stack) {
- stack->stack = (kmMat4*) malloc(sizeof(kmMat4) * INITIAL_SIZE); //allocate the memory
- stack->capacity = INITIAL_SIZE; //Set the capacity to 10
- stack->top = NULL; //Set the top to NULL
- stack->item_count = 0;
-};
-
-void km_mat4_stack_push(km_mat4_stack* stack, const kmMat4* item)
-{
- stack->top = &stack->stack[stack->item_count];
- kmMat4Assign(stack->top, item);
- stack->item_count++;
-
- if(stack->item_count >= stack->capacity)
- {
- kmMat4* temp = NULL;
- stack->capacity += INCREMENT;
- temp = stack->stack;
- stack->stack = (kmMat4*) malloc(stack->capacity*sizeof(kmMat4));
- memcpy(stack->stack, temp, sizeof(kmMat4)*(stack->capacity - INCREMENT));
- free(temp);
- stack->top = &stack->stack[stack->item_count - 1];
- }
-}
-
-void km_mat4_stack_pop(km_mat4_stack* stack, kmMat4* pOut)
-{
- assert(stack->item_count && "Cannot pop an empty stack");
-
- stack->item_count--;
- stack->top = &stack->stack[stack->item_count - 1];
-}
-
-void km_mat4_stack_release(km_mat4_stack* stack) {
- free(stack->stack);
- stack->top = NULL;
- stack->item_count = 0;
- stack->capacity = 0;
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/matrix.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/matrix.c
deleted file mode 100644
index dfd8a87..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/GL/matrix.c
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include
-#include
-
-#include "kazmath/GL/matrix.h"
-#include "kazmath/GL/mat4stack.h"
-
-km_mat4_stack modelview_matrix_stack;
-km_mat4_stack projection_matrix_stack;
-km_mat4_stack texture_matrix_stack;
-
-km_mat4_stack* current_stack = NULL;
-
-static unsigned char initialized = 0;
-
-void lazyInitialize()
-{
-
- if (!initialized) {
- kmMat4 identity; //Temporary identity matrix
-
- //Initialize all 3 stacks
- //modelview_matrix_stack = (km_mat4_stack*) malloc(sizeof(km_mat4_stack));
- km_mat4_stack_initialize(&modelview_matrix_stack);
-
- //projection_matrix_stack = (km_mat4_stack*) malloc(sizeof(km_mat4_stack));
- km_mat4_stack_initialize(&projection_matrix_stack);
-
- //texture_matrix_stack = (km_mat4_stack*) malloc(sizeof(km_mat4_stack));
- km_mat4_stack_initialize(&texture_matrix_stack);
-
- current_stack = &modelview_matrix_stack;
- initialized = 1;
-
- kmMat4Identity(&identity);
-
- //Make sure that each stack has the identity matrix
- km_mat4_stack_push(&modelview_matrix_stack, &identity);
- km_mat4_stack_push(&projection_matrix_stack, &identity);
- km_mat4_stack_push(&texture_matrix_stack, &identity);
- }
-}
-
-void kmGLMatrixMode(kmGLEnum mode)
-{
- lazyInitialize();
-
- switch(mode)
- {
- case KM_GL_MODELVIEW:
- current_stack = &modelview_matrix_stack;
- break;
- case KM_GL_PROJECTION:
- current_stack = &projection_matrix_stack;
- break;
- case KM_GL_TEXTURE:
- current_stack = &texture_matrix_stack;
- break;
- default:
- assert(0 && "Invalid matrix mode specified"); //TODO: Proper error handling
- break;
- }
-}
-
-void kmGLPushMatrix(void)
-{
- kmMat4 top;
-
- lazyInitialize(); //Initialize the stacks if they haven't been already
-
- //Duplicate the top of the stack (i.e the current matrix)
- kmMat4Assign(&top, current_stack->top);
- km_mat4_stack_push(current_stack, &top);
-}
-
-void kmGLPopMatrix(void)
-{
- assert(initialized && "Cannot Pop empty matrix stack");
- //No need to lazy initialize, you shouldn't be popping first anyway!
- km_mat4_stack_pop(current_stack, NULL);
-}
-
-void kmGLLoadIdentity()
-{
- lazyInitialize();
-
- kmMat4Identity(current_stack->top); //Replace the top matrix with the identity matrix
-}
-
-void kmGLFreeAll()
-{
- //Clear the matrix stacks
- km_mat4_stack_release(&modelview_matrix_stack);
- km_mat4_stack_release(&projection_matrix_stack);
- km_mat4_stack_release(&texture_matrix_stack);
-
- //Delete the matrices
- initialized = 0; //Set to uninitialized
-
- current_stack = NULL; //Set the current stack to point nowhere
-}
-
-void kmGLMultMatrix(const kmMat4* pIn)
-{
- lazyInitialize();
- kmMat4Multiply(current_stack->top, current_stack->top, pIn);
-}
-
-void kmGLLoadMatrix(const kmMat4* pIn)
-{
- lazyInitialize();
- kmMat4Assign(current_stack->top, pIn);
-}
-
-void kmGLGetMatrix(kmGLEnum mode, kmMat4* pOut)
-{
- lazyInitialize();
-
- switch(mode)
- {
- case KM_GL_MODELVIEW:
- kmMat4Assign(pOut, modelview_matrix_stack.top);
- break;
- case KM_GL_PROJECTION:
- kmMat4Assign(pOut, projection_matrix_stack.top);
- break;
- case KM_GL_TEXTURE:
- kmMat4Assign(pOut, texture_matrix_stack.top);
- break;
- default:
- assert(1 && "Invalid matrix mode specified"); //TODO: Proper error handling
- break;
- }
-}
-
-void kmGLTranslatef(float x, float y, float z)
-{
- kmMat4 translation;
-
- //Create a rotation matrix using the axis and the angle
- kmMat4Translation(&translation,x,y,z);
-
- //Multiply the rotation matrix by the current matrix
- kmMat4Multiply(current_stack->top, current_stack->top, &translation);
-}
-
-void kmGLRotatef(float angle, float x, float y, float z)
-{
- kmVec3 axis;
- kmMat4 rotation;
-
- //Create an axis vector
- kmVec3Fill(&axis, x, y, z);
-
- //Create a rotation matrix using the axis and the angle
- kmMat4RotationAxisAngle(&rotation, &axis, kmDegreesToRadians(angle));
-
- //Multiply the rotation matrix by the current matrix
- kmMat4Multiply(current_stack->top, current_stack->top, &rotation);
-}
-
-void kmGLScalef(float x, float y, float z)
-{
- kmMat4 scaling;
- kmMat4Scaling(&scaling, x, y, z);
- kmMat4Multiply(current_stack->top, current_stack->top, &scaling);
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/aabb.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/aabb.c
deleted file mode 100644
index 83b3748..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/aabb.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include "kazmath/aabb.h"
-
-/**
- * Returns KM_TRUE if point is in the specified AABB, returns
- * KM_FALSE otherwise.
- */
-const int kmAABBContainsPoint(const kmVec3* pPoint, const kmAABB* pBox)
-{
- if(pPoint->x >= pBox->min.x && pPoint->x <= pBox->max.x &&
- pPoint->y >= pBox->min.y && pPoint->y <= pBox->max.y &&
- pPoint->z >= pBox->min.z && pPoint->z <= pBox->max.z) {
- return KM_TRUE;
- }
-
- return KM_FALSE;
-}
-
-/**
- * Assigns pIn to pOut, returns pOut.
- */
-kmAABB* const kmAABBAssign(kmAABB* pOut, const kmAABB* pIn)
-{
- kmVec3Assign(&pOut->min, &pIn->min);
- kmVec3Assign(&pOut->max, &pIn->max);
- return pOut;
-}
-
-/**
- * Scales pIn by s, stores the resulting AABB in pOut. Returns pOut
- */
-kmAABB* const kmAABBScale(kmAABB* pOut, const kmAABB* pIn, kmScalar s)
-{
- assert(0 && "Not implemented");
- return 0;
-}
-
-
-
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/mat3.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/mat3.c
deleted file mode 100644
index 6654d06..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/mat3.c
+++ /dev/null
@@ -1,372 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include
-#include
-#include
-
-#include "kazmath/utility.h"
-#include "kazmath/vec3.h"
-#include "kazmath/mat3.h"
-#include "kazmath/quaternion.h"
-
-kmMat3* const kmMat3Fill(kmMat3* pOut, const kmScalar* pMat)
-{
- memcpy(pOut->mat, pMat, sizeof(kmScalar) * 9);
- return pOut;
-}
-
-/** Sets pOut to an identity matrix returns pOut*/
-kmMat3* const kmMat3Identity(kmMat3* pOut)
-{
- memset(pOut->mat, 0, sizeof(float) * 9);
- pOut->mat[0] = pOut->mat[4] = pOut->mat[8] = 1.0f;
- return pOut;
-}
-
-const kmScalar kmMat3Determinant(const kmMat3* pIn)
-{
- kmScalar output;
- /*
- calculating the determinant following the rule of sarus,
- | 0 3 6 | 0 3 |
- m = | 1 4 7 | 1 4 |
- | 2 5 8 | 2 5 |
- now sum up the products of the diagonals going to the right (i.e. 0,4,8)
- and subtract the products of the other diagonals (i.e. 2,4,6)
- */
-
- output = pIn->mat[0] * pIn->mat[4] * pIn->mat[8] + pIn->mat[1] * pIn->mat[5] * pIn->mat[6] + pIn->mat[2] * pIn->mat[3] * pIn->mat[7];
- output -= pIn->mat[2] * pIn->mat[4] * pIn->mat[6] + pIn->mat[0] * pIn->mat[5] * pIn->mat[7] + pIn->mat[1] * pIn->mat[3] * pIn->mat[8];
-
- return output;
-}
-
-
-kmMat3* const kmMat3Adjugate(kmMat3* pOut, const kmMat3* pIn)
-{
- pOut->mat[0] = pIn->mat[4] * pIn->mat[8] - pIn->mat[5] * pIn->mat[7];
- pOut->mat[1] = pIn->mat[2] * pIn->mat[7] - pIn->mat[1] * pIn->mat[8];
- pOut->mat[2] = pIn->mat[1] * pIn->mat[5] - pIn->mat[2] * pIn->mat[4];
- pOut->mat[3] = pIn->mat[5] * pIn->mat[6] - pIn->mat[3] * pIn->mat[8];
- pOut->mat[4] = pIn->mat[0] * pIn->mat[8] - pIn->mat[2] * pIn->mat[6];
- pOut->mat[5] = pIn->mat[2] * pIn->mat[3] - pIn->mat[0] * pIn->mat[5];
- pOut->mat[6] = pIn->mat[3] * pIn->mat[7] - pIn->mat[4] * pIn->mat[6];
-
- // XXX: pIn->mat[9] is invalid!
-// pOut->mat[7] = pIn->mat[1] * pIn->mat[6] - pIn->mat[9] * pIn->mat[7];
- pOut->mat[8] = pIn->mat[0] * pIn->mat[4] - pIn->mat[1] * pIn->mat[3];
-
- return pOut;
-}
-
-kmMat3* const kmMat3Inverse(kmMat3* pOut, const kmScalar pDeterminate, const kmMat3* pM)
-{
- kmScalar detInv;
- kmMat3 adjugate;
-
- if(pDeterminate == 0.0)
- {
- return NULL;
- }
-
- detInv = 1.0f / pDeterminate;
-
- kmMat3Adjugate(&adjugate, pM);
- kmMat3ScalarMultiply(pOut, &adjugate, detInv);
-
- return pOut;
-}
-
-/** Returns true if pIn is an identity matrix */
-const int kmMat3IsIdentity(const kmMat3* pIn)
-{
- static const float identity [] = { 1.0f, 0.0f, 0.0f,
- 0.0f, 1.0f, 0.0f,
- 0.0f, 0.0f, 1.0f};
-
- return (memcmp(identity, pIn->mat, sizeof(float) * 9) == 0);
-}
-
-/** Sets pOut to the transpose of pIn, returns pOut */
-kmMat3* const kmMat3Transpose(kmMat3* pOut, const kmMat3* pIn)
-{
- int z, x;
- for (z = 0; z < 3; ++z) {
- for (x = 0; x < 3; ++x) {
- pOut->mat[(z * 3) + x] = pIn->mat[(x * 3) + z];
- }
- }
-
- return pOut;
-}
-
-/* Multiplies pM1 with pM2, stores the result in pOut, returns pOut */
-kmMat3* const kmMat3Multiply(kmMat3* pOut, const kmMat3* pM1, const kmMat3* pM2)
-{
- float mat[9];
-
- const float *m1 = pM1->mat, *m2 = pM2->mat;
-
- mat[0] = m1[0] * m2[0] + m1[3] * m2[1] + m1[6] * m2[2];
- mat[1] = m1[1] * m2[0] + m1[4] * m2[1] + m1[7] * m2[2];
- mat[2] = m1[2] * m2[0] + m1[5] * m2[1] + m1[8] * m2[2];
-
- mat[3] = m1[0] * m2[3] + m1[3] * m2[4] + m1[6] * m2[5];
- mat[4] = m1[1] * m2[3] + m1[4] * m2[4] + m1[7] * m2[5];
- mat[5] = m1[2] * m2[3] + m1[5] * m2[4] + m1[8] * m2[5];
-
- mat[6] = m1[0] * m2[6] + m1[3] * m2[7] + m1[6] * m2[8];
- mat[7] = m1[1] * m2[6] + m1[4] * m2[7] + m1[7] * m2[8];
- mat[8] = m1[2] * m2[6] + m1[5] * m2[7] + m1[8] * m2[8];
-
- memcpy(pOut->mat, mat, sizeof(float)*9);
-
- return pOut;
-}
-
-kmMat3* const kmMat3ScalarMultiply(kmMat3* pOut, const kmMat3* pM, const kmScalar pFactor)
-{
- float mat[9];
- int i;
-
- for(i = 0; i < 9; i++)
- {
- mat[i] = pM->mat[i] * pFactor;
- }
-
- memcpy(pOut->mat, mat, sizeof(float)*9);
-
- return pOut;
-}
-
-/** Assigns the value of pIn to pOut */
-kmMat3* const kmMat3Assign(kmMat3* pOut, const kmMat3* pIn)
-{
- assert(pOut != pIn); //You have tried to self-assign!!
-
- memcpy(pOut->mat, pIn->mat, sizeof(float)*9);
-
- return pOut;
-}
-
-/** Returns true if the 2 matrices are equal (approximately) */
-const int kmMat3AreEqual(const kmMat3* pMat1, const kmMat3* pMat2)
-{
- int i;
- if (pMat1 == pMat2) {
- return KM_TRUE;
- }
-
- for (i = 0; i < 9; ++i) {
- if (!(pMat1->mat[i] + kmEpsilon > pMat2->mat[i] &&
- pMat1->mat[i] - kmEpsilon < pMat2->mat[i])) {
- return KM_FALSE;
- }
- }
-
- return KM_TRUE;
-}
-
-/* Rotation around the z axis so everything stays planar in XY */
-kmMat3* const kmMat3Rotation(kmMat3* pOut, const float radians)
-{
- /*
- | cos(A) -sin(A) 0 |
- M = | sin(A) cos(A) 0 |
- | 0 0 1 |
- */
-
- pOut->mat[0] = cosf(radians);
- pOut->mat[1] = sinf(radians);
- pOut->mat[2] = 0.0f;
-
- pOut->mat[3] = -sinf(radians);;
- pOut->mat[4] = cosf(radians);
- pOut->mat[5] = 0.0f;
-
- pOut->mat[6] = 0.0f;
- pOut->mat[7] = 0.0f;
- pOut->mat[8] = 1.0f;
-
- return pOut;
-}
-
-/** Builds a scaling matrix */
-kmMat3* const kmMat3Scaling(kmMat3* pOut, const kmScalar x, const kmScalar y)
-{
-// memset(pOut->mat, 0, sizeof(float) * 9);
- kmMat3Identity(pOut);
- pOut->mat[0] = x;
- pOut->mat[4] = y;
-
- return pOut;
-}
-
-kmMat3* const kmMat3Translation(kmMat3* pOut, const kmScalar x, const kmScalar y)
-{
-// memset(pOut->mat, 0, sizeof(float) * 9);
- kmMat3Identity(pOut);
- pOut->mat[6] = x;
- pOut->mat[7] = y;
-// pOut->mat[8] = 1.0;
-
- return pOut;
-}
-
-
-kmMat3* const kmMat3RotationQuaternion(kmMat3* pOut, const kmQuaternion* pIn)
-{
- if (!pIn || !pOut) {
- return NULL;
- }
-
- // First row
- pOut->mat[0] = 1.0f - 2.0f * (pIn->y * pIn->y + pIn->z * pIn->z);
- pOut->mat[1] = 2.0f * (pIn->x * pIn->y - pIn->w * pIn->z);
- pOut->mat[2] = 2.0f * (pIn->x * pIn->z + pIn->w * pIn->y);
-
- // Second row
- pOut->mat[3] = 2.0f * (pIn->x * pIn->y + pIn->w * pIn->z);
- pOut->mat[4] = 1.0f - 2.0f * (pIn->x * pIn->x + pIn->z * pIn->z);
- pOut->mat[5] = 2.0f * (pIn->y * pIn->z - pIn->w * pIn->x);
-
- // Third row
- pOut->mat[6] = 2.0f * (pIn->x * pIn->z - pIn->w * pIn->y);
- pOut->mat[7] = 2.0f * (pIn->y * pIn->z + pIn->w * pIn->x);
- pOut->mat[8] = 1.0f - 2.0f * (pIn->x * pIn->x + pIn->y * pIn->y);
-
- return pOut;
-}
-
-kmMat3* const kmMat3RotationAxisAngle(kmMat3* pOut, const struct kmVec3* axis, kmScalar radians)
-{
- float rcos = cosf(radians);
- float rsin = sinf(radians);
-
- pOut->mat[0] = rcos + axis->x * axis->x * (1 - rcos);
- pOut->mat[1] = axis->z * rsin + axis->y * axis->x * (1 - rcos);
- pOut->mat[2] = -axis->y * rsin + axis->z * axis->x * (1 - rcos);
-
- pOut->mat[3] = -axis->z * rsin + axis->x * axis->y * (1 - rcos);
- pOut->mat[4] = rcos + axis->y * axis->y * (1 - rcos);
- pOut->mat[5] = axis->x * rsin + axis->z * axis->y * (1 - rcos);
-
- pOut->mat[6] = axis->y * rsin + axis->x * axis->z * (1 - rcos);
- pOut->mat[7] = -axis->x * rsin + axis->y * axis->z * (1 - rcos);
- pOut->mat[8] = rcos + axis->z * axis->z * (1 - rcos);
-
- return pOut;
-}
-
-kmVec3* const kmMat3RotationToAxisAngle(kmVec3* pAxis, kmScalar* radians, const kmMat3* pIn)
-{
- /*Surely not this easy?*/
- kmQuaternion temp;
- kmQuaternionRotationMatrix(&temp, pIn);
- kmQuaternionToAxisAngle(&temp, pAxis, radians);
- return pAxis;
-}
-
-/**
- * Builds an X-axis rotation matrix and stores it in pOut, returns pOut
- */
-kmMat3* const kmMat3RotationX(kmMat3* pOut, const float radians)
-{
- /*
- | 1 0 0 |
- M = | 0 cos(A) -sin(A) |
- | 0 sin(A) cos(A) |
-
- */
-
- pOut->mat[0] = 1.0f;
- pOut->mat[1] = 0.0f;
- pOut->mat[2] = 0.0f;
-
- pOut->mat[3] = 0.0f;
- pOut->mat[4] = cosf(radians);
- pOut->mat[5] = sinf(radians);
-
- pOut->mat[6] = 0.0f;
- pOut->mat[7] = -sinf(radians);
- pOut->mat[8] = cosf(radians);
-
- return pOut;
-}
-
-/**
- * Builds a rotation matrix using the rotation around the Y-axis
- * The result is stored in pOut, pOut is returned.
- */
-kmMat3* const kmMat3RotationY(kmMat3* pOut, const float radians)
-{
- /*
- | cos(A) 0 sin(A) |
- M = | 0 1 0 |
- | -sin(A) 0 cos(A) |
- */
-
- pOut->mat[0] = cosf(radians);
- pOut->mat[1] = 0.0f;
- pOut->mat[2] = -sinf(radians);
-
- pOut->mat[3] = 0.0f;
- pOut->mat[4] = 1.0f;
- pOut->mat[5] = 0.0f;
-
- pOut->mat[6] = sinf(radians);
- pOut->mat[7] = 0.0f;
- pOut->mat[8] = cosf(radians);
-
- return pOut;
-}
-
-/**
- * Builds a rotation matrix around the Z-axis. The resulting
- * matrix is stored in pOut. pOut is returned.
- */
-kmMat3* const kmMat3RotationZ(kmMat3* pOut, const float radians)
-{
- /*
- | cos(A) -sin(A) 0 |
- M = | sin(A) cos(A) 0 |
- | 0 0 1 |
- */
-
- pOut->mat[0] = cosf(radians);
- pOut->mat[1] =-sinf(radians);
- pOut->mat[2] = 0.0f;
-
- pOut->mat[3] = sinf(radians);;
- pOut->mat[4] = cosf(radians);
- pOut->mat[5] = 0.0f;
-
- pOut->mat[6] = 0.0f;
- pOut->mat[7] = 0.0f;
- pOut->mat[8] = 1.0f;
-
- return pOut;
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/mat4.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/mat4.c
deleted file mode 100644
index 33fe83e..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/mat4.c
+++ /dev/null
@@ -1,790 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/**
- * @file mat4.c
- */
-#include
-#include
-#include
-
-#include "kazmath/utility.h"
-#include "kazmath/vec3.h"
-#include "kazmath/mat4.h"
-#include "kazmath/mat3.h"
-#include "kazmath/quaternion.h"
-#include "kazmath/plane.h"
-
-#include "kazmath/neon_matrix_impl.h"
-
-/**
- * Fills a kmMat4 structure with the values from a 16
- * element array of floats
- * @Params pOut - A pointer to the destination matrix
- * pMat - A 16 element array of floats
- * @Return Returns pOut so that the call can be nested
- */
-kmMat4* const kmMat4Fill(kmMat4* pOut, const kmScalar* pMat)
-{
- memcpy(pOut->mat, pMat, sizeof(kmScalar) * 16);
- return pOut;
-}
-
-/**
- * Sets pOut to an identity matrix returns pOut
- * @Params pOut - A pointer to the matrix to set to identity
- * @Return Returns pOut so that the call can be nested
- */
-kmMat4* const kmMat4Identity(kmMat4* pOut)
-{
- memset(pOut->mat, 0, sizeof(float) * 16);
- pOut->mat[0] = pOut->mat[5] = pOut->mat[10] = pOut->mat[15] = 1.0f;
- return pOut;
-}
-
-
-float get(const kmMat4 * pIn, int row, int col)
-{
- return pIn->mat[row + 4*col];
-}
-
-void set(kmMat4 * pIn, int row, int col, float value)
-{
- pIn->mat[row + 4*col] = value;
-}
-
-void swap(kmMat4 * pIn, int r1, int c1, int r2, int c2)
-{
- float tmp = get(pIn,r1,c1);
- set(pIn,r1,c1,get(pIn,r2,c2));
- set(pIn,r2,c2, tmp);
-}
-
-//Returns an upper and a lower triangular matrix which are L and R in the Gauss algorithm
-int gaussj(kmMat4 *a, kmMat4 *b)
-{
- int i, icol = 0, irow = 0, j, k, l, ll, n = 4, m = 4;
- float big, dum, pivinv;
- int indxc[4] = {0};
- int indxr[4] = {0};
- int ipiv[4] = {0};
-
- for (j = 0; j < n; j++) {
- ipiv[j] = 0;
- }
-
- for (i = 0; i < n; i++) {
- big = 0.0f;
- for (j = 0; j < n; j++) {
- if (ipiv[j] != 1) {
- for (k = 0; k < n; k++) {
- if (ipiv[k] == 0) {
- if (abs(get(a,j, k)) >= big) {
- big = abs(get(a,j, k));
- irow = j;
- icol = k;
- }
- }
- }
- }
- }
- ++(ipiv[icol]);
- if (irow != icol) {
- for (l = 0; l < n; l++) {
- swap(a,irow, l, icol, l);
- }
- for (l = 0; l < m; l++) {
- swap(b,irow, l, icol, l);
- }
- }
- indxr[i] = irow;
- indxc[i] = icol;
- if (get(a,icol, icol) == 0.0) {
- return KM_FALSE;
- }
- pivinv = 1.0f / get(a,icol, icol);
- set(a,icol, icol, 1.0f);
- for (l = 0; l < n; l++) {
- set(a,icol, l, get(a,icol, l) * pivinv);
- }
- for (l = 0; l < m; l++) {
- set(b,icol, l, get(b,icol, l) * pivinv);
- }
-
- for (ll = 0; ll < n; ll++) {
- if (ll != icol) {
- dum = get(a,ll, icol);
- set(a,ll, icol, 0.0f);
- for (l = 0; l < n; l++) {
- set(a,ll, l, get(a,ll, l) - get(a,icol, l) * dum);
- }
- for (l = 0; l < m; l++) {
- set(b,ll, l, get(a,ll, l) - get(b,icol, l) * dum);
- }
- }
- }
- }
-// This is the end of the main loop over columns of the reduction. It only remains to unscram-
-// ble the solution in view of the column interchanges. We do this by interchanging pairs of
-// columns in the reverse order that the permutation was built up.
- for (l = n - 1; l >= 0; l--) {
- if (indxr[l] != indxc[l]) {
- for (k = 0; k < n; k++) {
- swap(a,k, indxr[l], k, indxc[l]);
- }
- }
- }
- return KM_TRUE;
-}
-
-/**
- * Calculates the inverse of pM and stores the result in
- * pOut.
- * @Return Returns NULL if there is no inverse, else pOut
- */
-kmMat4* const kmMat4Inverse(kmMat4* pOut, const kmMat4* pM)
-{
- kmMat4 inv;
- kmMat4 tmp;
-
- kmMat4Assign(&inv, pM);
-
- kmMat4Identity(&tmp);
-
- if(gaussj(&inv, &tmp) == KM_FALSE) {
- return NULL;
- }
-
- kmMat4Assign(pOut, &inv);
- return pOut;
-}
-/**
- * Returns KM_TRUE if pIn is an identity matrix
- * KM_FALSE otherwise
- */
-const int kmMat4IsIdentity(const kmMat4* pIn)
-{
- static const float identity [] = { 1.0f, 0.0f, 0.0f, 0.0f,
- 0.0f, 1.0f, 0.0f, 0.0f,
- 0.0f, 0.0f, 1.0f, 0.0f,
- 0.0f, 0.0f, 0.0f, 1.0f
- };
-
- return (memcmp(identity, pIn->mat, sizeof(float) * 16) == 0);
-}
-
-/**
- * Sets pOut to the transpose of pIn, returns pOut
- */
-kmMat4* const kmMat4Transpose(kmMat4* pOut, const kmMat4* pIn)
-{
- int x, z;
-
- for (z = 0; z < 4; ++z) {
- for (x = 0; x < 4; ++x) {
- pOut->mat[(z * 4) + x] = pIn->mat[(x * 4) + z];
- }
- }
-
- return pOut;
-}
-
-/**
- * Multiplies pM1 with pM2, stores the result in pOut, returns pOut
- */
-kmMat4* const kmMat4Multiply(kmMat4* pOut, const kmMat4* pM1, const kmMat4* pM2)
-{
-#if defined(__ARM_NEON__)
-
- float mat[16];
-
- // Invert column-order with row-order
- NEON_Matrix4Mul( &pM2->mat[0], &pM1->mat[0], &mat[0] );
-
-#else
- float mat[16];
-
- const float *m1 = pM1->mat, *m2 = pM2->mat;
-
- mat[0] = m1[0] * m2[0] + m1[4] * m2[1] + m1[8] * m2[2] + m1[12] * m2[3];
- mat[1] = m1[1] * m2[0] + m1[5] * m2[1] + m1[9] * m2[2] + m1[13] * m2[3];
- mat[2] = m1[2] * m2[0] + m1[6] * m2[1] + m1[10] * m2[2] + m1[14] * m2[3];
- mat[3] = m1[3] * m2[0] + m1[7] * m2[1] + m1[11] * m2[2] + m1[15] * m2[3];
-
- mat[4] = m1[0] * m2[4] + m1[4] * m2[5] + m1[8] * m2[6] + m1[12] * m2[7];
- mat[5] = m1[1] * m2[4] + m1[5] * m2[5] + m1[9] * m2[6] + m1[13] * m2[7];
- mat[6] = m1[2] * m2[4] + m1[6] * m2[5] + m1[10] * m2[6] + m1[14] * m2[7];
- mat[7] = m1[3] * m2[4] + m1[7] * m2[5] + m1[11] * m2[6] + m1[15] * m2[7];
-
- mat[8] = m1[0] * m2[8] + m1[4] * m2[9] + m1[8] * m2[10] + m1[12] * m2[11];
- mat[9] = m1[1] * m2[8] + m1[5] * m2[9] + m1[9] * m2[10] + m1[13] * m2[11];
- mat[10] = m1[2] * m2[8] + m1[6] * m2[9] + m1[10] * m2[10] + m1[14] * m2[11];
- mat[11] = m1[3] * m2[8] + m1[7] * m2[9] + m1[11] * m2[10] + m1[15] * m2[11];
-
- mat[12] = m1[0] * m2[12] + m1[4] * m2[13] + m1[8] * m2[14] + m1[12] * m2[15];
- mat[13] = m1[1] * m2[12] + m1[5] * m2[13] + m1[9] * m2[14] + m1[13] * m2[15];
- mat[14] = m1[2] * m2[12] + m1[6] * m2[13] + m1[10] * m2[14] + m1[14] * m2[15];
- mat[15] = m1[3] * m2[12] + m1[7] * m2[13] + m1[11] * m2[14] + m1[15] * m2[15];
-
-#endif
-
- memcpy(pOut->mat, mat, sizeof(float)*16);
-
- return pOut;
-}
-
-/**
- * Assigns the value of pIn to pOut
- */
-kmMat4* const kmMat4Assign(kmMat4* pOut, const kmMat4* pIn)
-{
- assert(pOut != pIn && "You have tried to self-assign!!");
-
- memcpy(pOut->mat, pIn->mat, sizeof(float)*16);
-
- return pOut;
-}
-
-/**
- * Returns KM_TRUE if the 2 matrices are equal (approximately)
- */
-const int kmMat4AreEqual(const kmMat4* pMat1, const kmMat4* pMat2)
-{
- int i = 0;
-
- assert(pMat1 != pMat2 && "You are comparing the same thing!");
-
- for (i = 0; i < 16; ++i)
- {
- if (!(pMat1->mat[i] + kmEpsilon > pMat2->mat[i] &&
- pMat1->mat[i] - kmEpsilon < pMat2->mat[i])) {
- return KM_FALSE;
- }
- }
-
- return KM_TRUE;
-}
-
-/**
- * Build a rotation matrix from an axis and an angle. Result is stored in pOut.
- * pOut is returned.
- */
-kmMat4* const kmMat4RotationAxisAngle(kmMat4* pOut, const kmVec3* axis, kmScalar radians)
-{
- float rcos = cosf(radians);
- float rsin = sinf(radians);
-
- kmVec3 normalizedAxis;
- kmVec3Normalize(&normalizedAxis, axis);
-
- pOut->mat[0] = rcos + normalizedAxis.x * normalizedAxis.x * (1 - rcos);
- pOut->mat[1] = normalizedAxis.z * rsin + normalizedAxis.y * normalizedAxis.x * (1 - rcos);
- pOut->mat[2] = -normalizedAxis.y * rsin + normalizedAxis.z * normalizedAxis.x * (1 - rcos);
- pOut->mat[3] = 0.0f;
-
- pOut->mat[4] = -normalizedAxis.z * rsin + normalizedAxis.x * normalizedAxis.y * (1 - rcos);
- pOut->mat[5] = rcos + normalizedAxis.y * normalizedAxis.y * (1 - rcos);
- pOut->mat[6] = normalizedAxis.x * rsin + normalizedAxis.z * normalizedAxis.y * (1 - rcos);
- pOut->mat[7] = 0.0f;
-
- pOut->mat[8] = normalizedAxis.y * rsin + normalizedAxis.x * normalizedAxis.z * (1 - rcos);
- pOut->mat[9] = -normalizedAxis.x * rsin + normalizedAxis.y * normalizedAxis.z * (1 - rcos);
- pOut->mat[10] = rcos + normalizedAxis.z * normalizedAxis.z * (1 - rcos);
- pOut->mat[11] = 0.0f;
-
- pOut->mat[12] = 0.0f;
- pOut->mat[13] = 0.0f;
- pOut->mat[14] = 0.0f;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-/**
- * Builds an X-axis rotation matrix and stores it in pOut, returns pOut
- */
-kmMat4* const kmMat4RotationX(kmMat4* pOut, const float radians)
-{
- /*
- | 1 0 0 0 |
- M = | 0 cos(A) -sin(A) 0 |
- | 0 sin(A) cos(A) 0 |
- | 0 0 0 1 |
-
- */
-
- pOut->mat[0] = 1.0f;
- pOut->mat[1] = 0.0f;
- pOut->mat[2] = 0.0f;
- pOut->mat[3] = 0.0f;
-
- pOut->mat[4] = 0.0f;
- pOut->mat[5] = cosf(radians);
- pOut->mat[6] = sinf(radians);
- pOut->mat[7] = 0.0f;
-
- pOut->mat[8] = 0.0f;
- pOut->mat[9] = -sinf(radians);
- pOut->mat[10] = cosf(radians);
- pOut->mat[11] = 0.0f;
-
- pOut->mat[12] = 0.0f;
- pOut->mat[13] = 0.0f;
- pOut->mat[14] = 0.0f;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-/**
- * Builds a rotation matrix using the rotation around the Y-axis
- * The result is stored in pOut, pOut is returned.
- */
-kmMat4* const kmMat4RotationY(kmMat4* pOut, const float radians)
-{
- /*
- | cos(A) 0 sin(A) 0 |
- M = | 0 1 0 0 |
- | -sin(A) 0 cos(A) 0 |
- | 0 0 0 1 |
- */
-
- pOut->mat[0] = cosf(radians);
- pOut->mat[1] = 0.0f;
- pOut->mat[2] = -sinf(radians);
- pOut->mat[3] = 0.0f;
-
- pOut->mat[4] = 0.0f;
- pOut->mat[5] = 1.0f;
- pOut->mat[6] = 0.0f;
- pOut->mat[7] = 0.0f;
-
- pOut->mat[8] = sinf(radians);
- pOut->mat[9] = 0.0f;
- pOut->mat[10] = cosf(radians);
- pOut->mat[11] = 0.0f;
-
- pOut->mat[12] = 0.0f;
- pOut->mat[13] = 0.0f;
- pOut->mat[14] = 0.0f;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-/**
- * Builds a rotation matrix around the Z-axis. The resulting
- * matrix is stored in pOut. pOut is returned.
- */
-kmMat4* const kmMat4RotationZ(kmMat4* pOut, const float radians)
-{
- /*
- | cos(A) -sin(A) 0 0 |
- M = | sin(A) cos(A) 0 0 |
- | 0 0 1 0 |
- | 0 0 0 1 |
- */
-
- pOut->mat[0] = cosf(radians);
- pOut->mat[1] = sinf(radians);
- pOut->mat[2] = 0.0f;
- pOut->mat[3] = 0.0f;
-
- pOut->mat[4] = -sinf(radians);;
- pOut->mat[5] = cosf(radians);
- pOut->mat[6] = 0.0f;
- pOut->mat[7] = 0.0f;
-
- pOut->mat[8] = 0.0f;
- pOut->mat[9] = 0.0f;
- pOut->mat[10] = 1.0f;
- pOut->mat[11] = 0.0f;
-
- pOut->mat[12] = 0.0f;
- pOut->mat[13] = 0.0f;
- pOut->mat[14] = 0.0f;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-/**
- * Builds a rotation matrix from pitch, yaw and roll. The resulting
- * matrix is stored in pOut and pOut is returned
- */
-kmMat4* const kmMat4RotationPitchYawRoll(kmMat4* pOut, const kmScalar pitch, const kmScalar yaw, const kmScalar roll)
-{
- double cr = cos(pitch);
- double sr = sin(pitch);
- double cp = cos(yaw);
- double sp = sin(yaw);
- double cy = cos(roll);
- double sy = sin(roll);
- double srsp = sr * sp;
- double crsp = cr * sp;
-
- pOut->mat[0] = (kmScalar) cp * cy;
- pOut->mat[4] = (kmScalar) cp * sy;
- pOut->mat[8] = (kmScalar) - sp;
-
- pOut->mat[1] = (kmScalar) srsp * cy - cr * sy;
- pOut->mat[5] = (kmScalar) srsp * sy + cr * cy;
- pOut->mat[9] = (kmScalar) sr * cp;
-
- pOut->mat[2] = (kmScalar) crsp * cy + sr * sy;
- pOut->mat[6] = (kmScalar) crsp * sy - sr * cy;
- pOut->mat[10] = (kmScalar) cr * cp;
-
- pOut->mat[3] = pOut->mat[7] = pOut->mat[11] = 0.0;
- pOut->mat[15] = 1.0;
-
- return pOut;
-}
-
-/** Converts a quaternion to a rotation matrix,
- * the result is stored in pOut, returns pOut
- */
-kmMat4* const kmMat4RotationQuaternion(kmMat4* pOut, const kmQuaternion* pQ)
-{
- pOut->mat[0] = 1.0f - 2.0f * (pQ->y * pQ->y + pQ->z * pQ->z );
- pOut->mat[1] = 2.0f * (pQ->x * pQ->y + pQ->z * pQ->w);
- pOut->mat[2] = 2.0f * (pQ->x * pQ->z - pQ->y * pQ->w);
- pOut->mat[3] = 0.0f;
-
- // Second row
- pOut->mat[4] = 2.0f * ( pQ->x * pQ->y - pQ->z * pQ->w );
- pOut->mat[5] = 1.0f - 2.0f * ( pQ->x * pQ->x + pQ->z * pQ->z );
- pOut->mat[6] = 2.0f * (pQ->z * pQ->y + pQ->x * pQ->w );
- pOut->mat[7] = 0.0f;
-
- // Third row
- pOut->mat[8] = 2.0f * ( pQ->x * pQ->z + pQ->y * pQ->w );
- pOut->mat[9] = 2.0f * ( pQ->y * pQ->z - pQ->x * pQ->w );
- pOut->mat[10] = 1.0f - 2.0f * ( pQ->x * pQ->x + pQ->y * pQ->y );
- pOut->mat[11] = 0.0f;
-
- // Fourth row
- pOut->mat[12] = 0;
- pOut->mat[13] = 0;
- pOut->mat[14] = 0;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-/** Builds a scaling matrix */
-kmMat4* const kmMat4Scaling(kmMat4* pOut, const kmScalar x, const kmScalar y,
- const kmScalar z)
-{
- memset(pOut->mat, 0, sizeof(float) * 16);
- pOut->mat[0] = x;
- pOut->mat[5] = y;
- pOut->mat[10] = z;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-/**
- * Builds a translation matrix. All other elements in the matrix
- * will be set to zero except for the diagonal which is set to 1.0
- */
-kmMat4* const kmMat4Translation(kmMat4* pOut, const kmScalar x,
- const kmScalar y, const kmScalar z)
-{
- //FIXME: Write a test for this
- memset(pOut->mat, 0, sizeof(float) * 16);
-
- pOut->mat[0] = 1.0f;
- pOut->mat[5] = 1.0f;
- pOut->mat[10] = 1.0f;
-
- pOut->mat[12] = x;
- pOut->mat[13] = y;
- pOut->mat[14] = z;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-/**
- * Get the up vector from a matrix. pIn is the matrix you
- * wish to extract the vector from. pOut is a pointer to the
- * kmVec3 structure that should hold the resulting vector
- */
-kmVec3* const kmMat4GetUpVec3(kmVec3* pOut, const kmMat4* pIn)
-{
- pOut->x = pIn->mat[4];
- pOut->y = pIn->mat[5];
- pOut->z = pIn->mat[6];
-
- kmVec3Normalize(pOut, pOut);
-
- return pOut;
-}
-
-/** Extract the right vector from a 4x4 matrix. The result is
- * stored in pOut. Returns pOut.
- */
-kmVec3* const kmMat4GetRightVec3(kmVec3* pOut, const kmMat4* pIn)
-{
- pOut->x = pIn->mat[0];
- pOut->y = pIn->mat[1];
- pOut->z = pIn->mat[2];
-
- kmVec3Normalize(pOut, pOut);
-
- return pOut;
-}
-
-/**
- * Extract the forward vector from a 4x4 matrix. The result is
- * stored in pOut. Returns pOut.
- */
-kmVec3* const kmMat4GetForwardVec3(kmVec3* pOut, const kmMat4* pIn)
-{
- pOut->x = pIn->mat[8];
- pOut->y = pIn->mat[9];
- pOut->z = pIn->mat[10];
-
- kmVec3Normalize(pOut, pOut);
-
- return pOut;
-}
-
-/**
- * Creates a perspective projection matrix in the
- * same way as gluPerspective
- */
-kmMat4* const kmMat4PerspectiveProjection(kmMat4* pOut, kmScalar fovY,
- kmScalar aspect, kmScalar zNear,
- kmScalar zFar)
-{
- kmScalar r = kmDegreesToRadians(fovY / 2);
- kmScalar deltaZ = zFar - zNear;
- kmScalar s = sin(r);
- kmScalar cotangent = 0;
-
- if (deltaZ == 0 || s == 0 || aspect == 0) {
- return NULL;
- }
-
- //cos(r) / sin(r) = cot(r)
- cotangent = cos(r) / s;
-
- kmMat4Identity(pOut);
- pOut->mat[0] = cotangent / aspect;
- pOut->mat[5] = cotangent;
- pOut->mat[10] = -(zFar + zNear) / deltaZ;
- pOut->mat[11] = -1;
- pOut->mat[14] = -2 * zNear * zFar / deltaZ;
- pOut->mat[15] = 0;
-
- return pOut;
-}
-
-/** Creates an orthographic projection matrix like glOrtho */
-kmMat4* const kmMat4OrthographicProjection(kmMat4* pOut, kmScalar left,
- kmScalar right, kmScalar bottom,
- kmScalar top, kmScalar nearVal,
- kmScalar farVal)
-{
- kmScalar tx = -((right + left) / (right - left));
- kmScalar ty = -((top + bottom) / (top - bottom));
- kmScalar tz = -((farVal + nearVal) / (farVal - nearVal));
-
- kmMat4Identity(pOut);
- pOut->mat[0] = 2 / (right - left);
- pOut->mat[5] = 2 / (top - bottom);
- pOut->mat[10] = -2 / (farVal - nearVal);
- pOut->mat[12] = tx;
- pOut->mat[13] = ty;
- pOut->mat[14] = tz;
-
- return pOut;
-}
-
-/**
- * Builds a translation matrix in the same way as gluLookAt()
- * the resulting matrix is stored in pOut. pOut is returned.
- */
-kmMat4* const kmMat4LookAt(kmMat4* pOut, const kmVec3* pEye,
- const kmVec3* pCenter, const kmVec3* pUp)
-{
- kmVec3 f, up, s, u;
- kmMat4 translate;
-
- kmVec3Subtract(&f, pCenter, pEye);
- kmVec3Normalize(&f, &f);
-
- kmVec3Assign(&up, pUp);
- kmVec3Normalize(&up, &up);
-
- kmVec3Cross(&s, &f, &up);
- kmVec3Normalize(&s, &s);
-
- kmVec3Cross(&u, &s, &f);
- kmVec3Normalize(&s, &s);
-
- kmMat4Identity(pOut);
-
- pOut->mat[0] = s.x;
- pOut->mat[4] = s.y;
- pOut->mat[8] = s.z;
-
- pOut->mat[1] = u.x;
- pOut->mat[5] = u.y;
- pOut->mat[9] = u.z;
-
- pOut->mat[2] = -f.x;
- pOut->mat[6] = -f.y;
- pOut->mat[10] = -f.z;
-
- kmMat4Translation(&translate, -pEye->x, -pEye->y, -pEye->z);
- kmMat4Multiply(pOut, pOut, &translate);
-
- return pOut;
-}
-
-/**
- * Extract a 3x3 rotation matrix from the input 4x4 transformation.
- * Stores the result in pOut, returns pOut
- */
-kmMat3* const kmMat4ExtractRotation(kmMat3* pOut, const kmMat4* pIn)
-{
- pOut->mat[0] = pIn->mat[0];
- pOut->mat[1] = pIn->mat[1];
- pOut->mat[2] = pIn->mat[2];
-
- pOut->mat[3] = pIn->mat[4];
- pOut->mat[4] = pIn->mat[5];
- pOut->mat[5] = pIn->mat[6];
-
- pOut->mat[6] = pIn->mat[8];
- pOut->mat[7] = pIn->mat[9];
- pOut->mat[8] = pIn->mat[10];
-
- return pOut;
-}
-
-/**
- * Take the rotation from a 4x4 transformation matrix, and return it as an axis and an angle (in radians)
- * returns the output axis.
- */
-kmVec3* const kmMat4RotationToAxisAngle(kmVec3* pAxis, kmScalar* radians, const kmMat4* pIn)
-{
- /*Surely not this easy?*/
- kmQuaternion temp;
- kmMat3 rotation;
- kmMat4ExtractRotation(&rotation, pIn);
- kmQuaternionRotationMatrix(&temp, &rotation);
- kmQuaternionToAxisAngle(&temp, pAxis, radians);
- return pAxis;
-}
-
-/** Build a 4x4 OpenGL transformation matrix using a 3x3 rotation matrix,
- * and a 3d vector representing a translation. Assign the result to pOut,
- * pOut is also returned.
- */
-kmMat4* const kmMat4RotationTranslation(kmMat4* pOut, const kmMat3* rotation, const kmVec3* translation)
-{
- pOut->mat[0] = rotation->mat[0];
- pOut->mat[1] = rotation->mat[1];
- pOut->mat[2] = rotation->mat[2];
- pOut->mat[3] = 0.0f;
-
- pOut->mat[4] = rotation->mat[3];
- pOut->mat[5] = rotation->mat[4];
- pOut->mat[6] = rotation->mat[5];
- pOut->mat[7] = 0.0f;
-
- pOut->mat[8] = rotation->mat[6];
- pOut->mat[9] = rotation->mat[7];
- pOut->mat[10] = rotation->mat[8];
- pOut->mat[11] = 0.0f;
-
- pOut->mat[12] = translation->x;
- pOut->mat[13] = translation->y;
- pOut->mat[14] = translation->z;
- pOut->mat[15] = 1.0f;
-
- return pOut;
-}
-
-kmPlane* const kmMat4ExtractPlane(kmPlane* pOut, const kmMat4* pIn, const kmEnum plane)
-{
- float t = 1.0f;
-
- switch(plane) {
- case KM_PLANE_RIGHT:
- pOut->a = pIn->mat[3] - pIn->mat[0];
- pOut->b = pIn->mat[7] - pIn->mat[4];
- pOut->c = pIn->mat[11] - pIn->mat[8];
- pOut->d = pIn->mat[15] - pIn->mat[12];
- break;
- case KM_PLANE_LEFT:
- pOut->a = pIn->mat[3] + pIn->mat[0];
- pOut->b = pIn->mat[7] + pIn->mat[4];
- pOut->c = pIn->mat[11] + pIn->mat[8];
- pOut->d = pIn->mat[15] + pIn->mat[12];
- break;
- case KM_PLANE_BOTTOM:
- pOut->a = pIn->mat[3] + pIn->mat[1];
- pOut->b = pIn->mat[7] + pIn->mat[5];
- pOut->c = pIn->mat[11] + pIn->mat[9];
- pOut->d = pIn->mat[15] + pIn->mat[13];
- break;
- case KM_PLANE_TOP:
- pOut->a = pIn->mat[3] - pIn->mat[1];
- pOut->b = pIn->mat[7] - pIn->mat[5];
- pOut->c = pIn->mat[11] - pIn->mat[9];
- pOut->d = pIn->mat[15] - pIn->mat[13];
- break;
- case KM_PLANE_FAR:
- pOut->a = pIn->mat[3] - pIn->mat[2];
- pOut->b = pIn->mat[7] - pIn->mat[6];
- pOut->c = pIn->mat[11] - pIn->mat[10];
- pOut->d = pIn->mat[15] - pIn->mat[14];
- break;
- case KM_PLANE_NEAR:
- pOut->a = pIn->mat[3] + pIn->mat[2];
- pOut->b = pIn->mat[7] + pIn->mat[6];
- pOut->c = pIn->mat[11] + pIn->mat[10];
- pOut->d = pIn->mat[15] + pIn->mat[14];
- break;
- default:
- assert(0 && "Invalid plane index");
- }
-
- t = sqrtf(pOut->a * pOut->a +
- pOut->b * pOut->b +
- pOut->c * pOut->c);
- pOut->a /= t;
- pOut->b /= t;
- pOut->c /= t;
- pOut->d /= t;
-
- return pOut;
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/neon_matrix_impl.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/neon_matrix_impl.c
deleted file mode 100644
index 9790b73..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/neon_matrix_impl.c
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- NEON math library for the iPhone / iPod touch
-
- Copyright (c) 2009 Justin Saunders
-
- This software is provided 'as-is', without any express or implied warranty.
- In no event will the authors be held liable for any damages arising
- from the use of this software.
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications, and to alter it and redistribute it freely,
- subject to the following restrictions:
-
- 1. The origin of this software must not be misrepresented; you must
- not claim that you wrote the original software. If you use this
- software in a product, an acknowledgment in the product documentation
- would be appreciated but is not required.
-
- 2. Altered source versions must be plainly marked as such, and must
- not be misrepresented as being the original software.
-
- 3. This notice may not be removed or altered from any source distribution.
-*/
-
-#include "kazmath/neon_matrix_impl.h"
-
-#if defined(__ARM_NEON__)
-
-void NEON_Matrix4Mul(const float* a, const float* b, float* output )
-{
- __asm__ volatile
- (
- // Store A & B leaving room for q4-q7, which should be preserved
- "vldmia %1, { q0-q3 } \n\t"
- "vldmia %2, { q8-q11 }\n\t"
-
- // result = first column of B x first row of A
- "vmul.f32 q12, q8, d0[0]\n\t"
- "vmul.f32 q13, q8, d2[0]\n\t"
- "vmul.f32 q14, q8, d4[0]\n\t"
- "vmul.f32 q15, q8, d6[0]\n\t"
-
- // result += second column of B x second row of A
- "vmla.f32 q12, q9, d0[1]\n\t"
- "vmla.f32 q13, q9, d2[1]\n\t"
- "vmla.f32 q14, q9, d4[1]\n\t"
- "vmla.f32 q15, q9, d6[1]\n\t"
-
- // result += third column of B x third row of A
- "vmla.f32 q12, q10, d1[0]\n\t"
- "vmla.f32 q13, q10, d3[0]\n\t"
- "vmla.f32 q14, q10, d5[0]\n\t"
- "vmla.f32 q15, q10, d7[0]\n\t"
-
- // result += last column of B x last row of A
- "vmla.f32 q12, q11, d1[1]\n\t"
- "vmla.f32 q13, q11, d3[1]\n\t"
- "vmla.f32 q14, q11, d5[1]\n\t"
- "vmla.f32 q15, q11, d7[1]\n\t"
-
- // output = result registers
- "vstmia %0, { q12-q15 }"
- : // no output
- : "r" (output), "r" (a), "r" (b) // input - note *value* of pointer doesn't change
- : "memory", "q0", "q1", "q2", "q3", "q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15" //clobber
- );
-}
-
-void NEON_Matrix4Vector4Mul(const float* m, const float* v, float* output)
-{
- __asm__ volatile
- (
- // Store m & v - avoiding q4-q7 which need to be preserved - q0 = result
- "vldmia %1, { q8-q11 } \n\t" // q8-q11 = m
- "vldmia %2, { q1 } \n\t" // q1 = v
-
- // result = first column of A x V.x
- "vmul.f32 q0, q8, d2[0]\n\t"
-
- // result += second column of A x V.y
- "vmla.f32 q0, q9, d2[1]\n\t"
-
- // result += third column of A x V.z
- "vmla.f32 q0, q10, d3[0]\n\t"
-
- // result += last column of A x V.w
- "vmla.f32 q0, q11, d3[1]\n\t"
-
- // output = result registers
- "vstmia %0, { q0 }"
-
- : // no output
- : "r" (output), "r" (m), "r" (v) // input - note *value* of pointer doesn't change
- : "memory", "q0", "q1", "q8", "q9", "q10", "q11" //clobber
- );
-}
-
-#endif
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/plane.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/plane.c
deleted file mode 100644
index 91a7ff7..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/plane.c
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include
-#include
-
-#include "kazmath/vec3.h"
-#include "kazmath/vec4.h"
-#include "kazmath/plane.h"
-
-const kmScalar kmPlaneDot(const kmPlane* pP, const kmVec4* pV)
-{
- //a*x + b*y + c*z + d*w
-
- return (pP->a * pV->x +
- pP->b * pV->y +
- pP->c * pV->z +
- pP->d * pV->w);
-}
-
-const kmScalar kmPlaneDotCoord(const kmPlane* pP, const kmVec3* pV)
-{
- return (pP->a * pV->x +
- pP->b * pV->y +
- pP->c * pV->z + pP->d);
-}
-
-const kmScalar kmPlaneDotNormal(const kmPlane* pP, const kmVec3* pV)
-{
- return (pP->a * pV->x +
- pP->b * pV->y +
- pP->c * pV->z);
-}
-
-kmPlane* const kmPlaneFromPointNormal(kmPlane* pOut, const kmVec3* pPoint, const kmVec3* pNormal)
-{
- /*
- Planea = Nx
- Planeb = Ny
- Planec = Nz
- Planed = −N⋅P
- */
-
-
- pOut->a = pNormal->x;
- pOut->b = pNormal->y;
- pOut->c = pNormal->z;
- pOut->d = -kmVec3Dot(pNormal, pPoint);
-
- return pOut;
-}
-
-/**
- * Creates a plane from 3 points. The result is stored in pOut.
- * pOut is returned.
- */
-kmPlane* const kmPlaneFromPoints(kmPlane* pOut, const kmVec3* p1, const kmVec3* p2, const kmVec3* p3)
-{
- /*
- v = (B − A) × (C − A)
- n = 1â„|v| v
- Outa = nx
- Outb = ny
- Outc = nz
- Outd = −n⋅A
- */
-
- kmVec3 n, v1, v2;
- kmVec3Subtract(&v1, p2, p1); //Create the vectors for the 2 sides of the triangle
- kmVec3Subtract(&v2, p3, p1);
- kmVec3Cross(&n, &v1, &v2); //Use the cross product to get the normal
-
- kmVec3Normalize(&n, &n); //Normalize it and assign to pOut->m_N
-
- pOut->a = n.x;
- pOut->b = n.y;
- pOut->c = n.z;
- pOut->d = kmVec3Dot(kmVec3Scale(&n, &n, -1.0), p1);
-
- return pOut;
-}
-
-kmVec3* const kmPlaneIntersectLine(kmVec3* pOut, const kmPlane* pP, const kmVec3* pV1, const kmVec3* pV2)
-{
- /*
- n = (Planea, Planeb, Planec)
- d = V − U
- Out = U − dâ‹…(Pd + nâ‹…U)â„(dâ‹…n) [iff dâ‹…n ≠0]
- */
- kmVec3 d;
- assert(0 && "Not implemented");
-
-
- kmVec3Subtract(&d, pV2, pV1); //Get the direction vector
-
-
- //TODO: Continue here!
- /*if (fabs(kmVec3Dot(&pP->m_N, &d)) > kmEpsilon)
- {
- //If we get here then the plane and line are parallel (i.e. no intersection)
- pOut = nullptr; //Set to nullptr
-
- return pOut;
- } */
-
- return NULL;
-}
-
-kmPlane* const kmPlaneNormalize(kmPlane* pOut, const kmPlane* pP)
-{
- kmVec3 n;
- kmScalar l = 0;
-
- n.x = pP->a;
- n.y = pP->b;
- n.z = pP->c;
-
- l = 1.0f / kmVec3Length(&n); //Get 1/length
- kmVec3Normalize(&n, &n); //Normalize the vector and assign to pOut
-
- pOut->a = n.x;
- pOut->b = n.y;
- pOut->c = n.z;
-
- pOut->d = pP->d * l; //Scale the D value and assign to pOut
-
- return pOut;
-}
-
-kmPlane* const kmPlaneScale(kmPlane* pOut, const kmPlane* pP, kmScalar s)
-{
- assert(0 && "Not implemented");
- return NULL;
-}
-
-/**
- * Returns POINT_INFRONT_OF_PLANE if pP is infront of pIn. Returns
- * POINT_BEHIND_PLANE if it is behind. Returns POINT_ON_PLANE otherwise
- */
-const POINT_CLASSIFICATION kmPlaneClassifyPoint(const kmPlane* pIn, const kmVec3* pP)
-{
- // This function will determine if a point is on, in front of, or behind
- // the plane. First we store the dot product of the plane and the point.
- float distance = pIn->a * pP->x + pIn->b * pP->y + pIn->c * pP->z + pIn->d;
-
- // Simply put if the dot product is greater than 0 then it is infront of it.
- // If it is less than 0 then it is behind it. And if it is 0 then it is on it.
- if(distance > 0.001) return POINT_INFRONT_OF_PLANE;
- if(distance < -0.001) return POINT_BEHIND_PLANE;
-
- return POINT_ON_PLANE;
-}
-
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/quaternion.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/quaternion.c
deleted file mode 100644
index f901cf1..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/quaternion.c
+++ /dev/null
@@ -1,586 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-
-#include
-#include
-
-#include "kazmath/utility.h"
-#include "kazmath/mat3.h"
-#include "kazmath/vec3.h"
-#include "kazmath/quaternion.h"
-
-#ifndef NULL
-#define NULL ((void *)0)
-#endif
-
-///< Returns pOut, sets pOut to the conjugate of pIn
-kmQuaternion* const kmQuaternionConjugate(kmQuaternion* pOut, const kmQuaternion* pIn)
-{
- pOut->x = -pIn->x;
- pOut->y = -pIn->y;
- pOut->z = -pIn->z;
- pOut->w = pIn->w;
-
- return pOut;
-}
-
-///< Returns the dot product of the 2 quaternions
-const kmScalar kmQuaternionDot(const kmQuaternion* q1, const kmQuaternion* q2)
-{
- // A dot B = B dot A = AtBt + AxBx + AyBy + AzBz
-
- return (q1->w * q2->w +
- q1->x * q2->x +
- q1->y * q2->y +
- q1->z * q2->z);
-}
-
-///< Returns the exponential of the quaternion
-kmQuaternion* kmQuaternionExp(kmQuaternion* pOut, const kmQuaternion* pIn)
-{
- assert(0);
-
- return pOut;
-}
-
-///< Makes the passed quaternion an identity quaternion
-kmQuaternion* kmQuaternionIdentity(kmQuaternion* pOut)
-{
- pOut->x = 0.0;
- pOut->y = 0.0;
- pOut->z = 0.0;
- pOut->w = 1.0;
-
- return pOut;
-}
-
-///< Returns the inverse of the passed Quaternion
-kmQuaternion* kmQuaternionInverse(kmQuaternion* pOut,
- const kmQuaternion* pIn)
-{
- kmScalar l = kmQuaternionLength(pIn);
- kmQuaternion tmp;
-
- if (fabs(l) > kmEpsilon)
- {
- pOut->x = 0.0;
- pOut->y = 0.0;
- pOut->z = 0.0;
- pOut->w = 0.0;
-
- return pOut;
- }
-
-
-
- ///Get the conjugute and divide by the length
- kmQuaternionScale(pOut,
- kmQuaternionConjugate(&tmp, pIn), 1.0f / l);
-
- return pOut;
-}
-
-///< Returns true if the quaternion is an identity quaternion
-int kmQuaternionIsIdentity(const kmQuaternion* pIn)
-{
- return (pIn->x == 0.0 && pIn->y == 0.0 && pIn->z == 0.0 &&
- pIn->w == 1.0);
-}
-
-///< Returns the length of the quaternion
-kmScalar kmQuaternionLength(const kmQuaternion* pIn)
-{
- return sqrtf(kmQuaternionLengthSq(pIn));
-}
-
-///< Returns the length of the quaternion squared (prevents a sqrt)
-kmScalar kmQuaternionLengthSq(const kmQuaternion* pIn)
-{
- return pIn->x * pIn->x + pIn->y * pIn->y +
- pIn->z * pIn->z + pIn->w * pIn->w;
-}
-
-///< Returns the natural logarithm
-kmQuaternion* kmQuaternionLn(kmQuaternion* pOut,
- const kmQuaternion* pIn)
-{
- /*
- A unit quaternion, is defined by:
- Q == (cos(theta), sin(theta) * v) where |v| = 1
- The natural logarithm of Q is, ln(Q) = (0, theta * v)
- */
-
- assert(0);
-
- return pOut;
-}
-
-///< Multiplies 2 quaternions together
-extern
-kmQuaternion* kmQuaternionMultiply(kmQuaternion* pOut,
- const kmQuaternion* q1,
- const kmQuaternion* q2)
-{
- pOut->w = q1->w * q2->w - q1->x * q2->x - q1->y * q2->y - q1->z * q2->z;
- pOut->x = q1->w * q2->x + q1->x * q2->w + q1->y * q2->z - q1->z * q2->y;
- pOut->y = q1->w * q2->y + q1->y * q2->w + q1->z * q2->x - q1->x * q2->z;
- pOut->z = q1->w * q2->z + q1->z * q2->w + q1->x * q2->y - q1->y * q2->x;
-
- return pOut;
-}
-
-///< Normalizes a quaternion
-kmQuaternion* kmQuaternionNormalize(kmQuaternion* pOut,
- const kmQuaternion* pIn)
-{
- kmScalar length = kmQuaternionLength(pIn);
- assert(fabs(length) > kmEpsilon);
- kmQuaternionScale(pOut, pIn, 1.0f / length);
-
- return pOut;
-}
-
-///< Rotates a quaternion around an axis
-kmQuaternion* kmQuaternionRotationAxis(kmQuaternion* pOut,
- const kmVec3* pV,
- kmScalar angle)
-{
- kmScalar rad = angle * 0.5f;
- kmScalar scale = sinf(rad);
-
- pOut->w = cosf(rad);
- pOut->x = pV->x * scale;
- pOut->y = pV->y * scale;
- pOut->z = pV->z * scale;
-
- return pOut;
-}
-
-///< Creates a quaternion from a rotation matrix
-kmQuaternion* kmQuaternionRotationMatrix(kmQuaternion* pOut,
- const kmMat3* pIn)
-{
-/*
-Note: The OpenGL matrices are transposed from the description below
-taken from the Matrix and Quaternion FAQ
-
- if ( mat[0] > mat[5] && mat[0] > mat[10] ) { // Column 0:
- S = sqrt( 1.0 + mat[0] - mat[5] - mat[10] ) * 2;
- X = 0.25 * S;
- Y = (mat[4] + mat[1] ) / S;
- Z = (mat[2] + mat[8] ) / S;
- W = (mat[9] - mat[6] ) / S;
- } else if ( mat[5] > mat[10] ) { // Column 1:
- S = sqrt( 1.0 + mat[5] - mat[0] - mat[10] ) * 2;
- X = (mat[4] + mat[1] ) / S;
- Y = 0.25 * S;
- Z = (mat[9] + mat[6] ) / S;
- W = (mat[2] - mat[8] ) / S;
- } else { // Column 2:
- S = sqrt( 1.0 + mat[10] - mat[0] - mat[5] ) * 2;
- X = (mat[2] + mat[8] ) / S;
- Y = (mat[9] + mat[6] ) / S;
- Z = 0.25 * S;
- W = (mat[4] - mat[1] ) / S;
- }
-*/
-
- float x, y, z, w;
- float *pMatrix = NULL;
- float m4x4[16] = {0};
- float scale = 0.0f;
- float diagonal = 0.0f;
-
- if(!pIn) {
- return NULL;
- }
-
-/* 0 3 6
- 1 4 7
- 2 5 8
-
- 0 1 2 3
- 4 5 6 7
- 8 9 10 11
- 12 13 14 15*/
-
- m4x4[0] = pIn->mat[0];
- m4x4[1] = pIn->mat[3];
- m4x4[2] = pIn->mat[6];
- m4x4[4] = pIn->mat[1];
- m4x4[5] = pIn->mat[4];
- m4x4[6] = pIn->mat[7];
- m4x4[8] = pIn->mat[2];
- m4x4[9] = pIn->mat[5];
- m4x4[10] = pIn->mat[8];
- m4x4[15] = 1;
- pMatrix = &m4x4[0];
-
- diagonal = pMatrix[0] + pMatrix[5] + pMatrix[10] + 1;
-
- if(diagonal > kmEpsilon) {
- // Calculate the scale of the diagonal
- scale = (float)sqrt(diagonal ) * 2;
-
- // Calculate the x, y, x and w of the quaternion through the respective equation
- x = ( pMatrix[9] - pMatrix[6] ) / scale;
- y = ( pMatrix[2] - pMatrix[8] ) / scale;
- z = ( pMatrix[4] - pMatrix[1] ) / scale;
- w = 0.25f * scale;
- }
- else
- {
- // If the first element of the diagonal is the greatest value
- if ( pMatrix[0] > pMatrix[5] && pMatrix[0] > pMatrix[10] )
- {
- // Find the scale according to the first element, and double that value
- scale = (float)sqrt( 1.0f + pMatrix[0] - pMatrix[5] - pMatrix[10] ) * 2.0f;
-
- // Calculate the x, y, x and w of the quaternion through the respective equation
- x = 0.25f * scale;
- y = (pMatrix[4] + pMatrix[1] ) / scale;
- z = (pMatrix[2] + pMatrix[8] ) / scale;
- w = (pMatrix[9] - pMatrix[6] ) / scale;
- }
- // Else if the second element of the diagonal is the greatest value
- else if (pMatrix[5] > pMatrix[10])
- {
- // Find the scale according to the second element, and double that value
- scale = (float)sqrt( 1.0f + pMatrix[5] - pMatrix[0] - pMatrix[10] ) * 2.0f;
-
- // Calculate the x, y, x and w of the quaternion through the respective equation
- x = (pMatrix[4] + pMatrix[1] ) / scale;
- y = 0.25f * scale;
- z = (pMatrix[9] + pMatrix[6] ) / scale;
- w = (pMatrix[2] - pMatrix[8] ) / scale;
- }
- // Else the third element of the diagonal is the greatest value
- else
- {
- // Find the scale according to the third element, and double that value
- scale = (float)sqrt( 1.0f + pMatrix[10] - pMatrix[0] - pMatrix[5] ) * 2.0f;
-
- // Calculate the x, y, x and w of the quaternion through the respective equation
- x = (pMatrix[2] + pMatrix[8] ) / scale;
- y = (pMatrix[9] + pMatrix[6] ) / scale;
- z = 0.25f * scale;
- w = (pMatrix[4] - pMatrix[1] ) / scale;
- }
- }
-
- pOut->x = x;
- pOut->y = y;
- pOut->z = z;
- pOut->w = w;
-
- return pOut;
-
-#if 0
- kmScalar T = pIn->mat[0] + pIn->mat[5] + pIn->mat[10];
-
- if (T > kmEpsilon) {
- //If the trace is greater than zero we always use this calculation:
- /* S = sqrt(T) * 2;
- X = ( mat[9] - mat[6] ) / S;
- Y = ( mat[2] - mat[8] ) / S;
- Z = ( mat[4] - mat[1] ) / S;
- W = 0.25 * S;*/
-
-/* kmScalar s = sqrtf(T) * 2;
- pOut->x = (pIn->mat[9] - pIn->mat[6]) / s;
- pOut->y = (pIn->mat[8] - pIn->mat[2]) / s;
- pOut->z = (pIn->mat[1] - pIn->mat[4]) / s;
- pOut->w = 0.25f * s;
-
- kmQuaternionNormalize(pOut, pOut);
- return pOut;
- }
-
- //Otherwise the calculation depends on which major diagonal element has the greatest value.
-
- if (pIn->mat[0] > pIn->mat[5] && pIn->mat[0] > pIn->mat[10]) {
- kmScalar s = sqrtf(1 + pIn->mat[0] - pIn->mat[5] - pIn->mat[10]) * 2;
- pOut->x = 0.25f * s;
- pOut->y = (pIn->mat[1] + pIn->mat[4]) / s;
- pOut->z = (pIn->mat[8] + pIn->mat[2]) / s;
- pOut->w = (pIn->mat[9] - pIn->mat[6]) / s;
- }
- else if (pIn->mat[5] > pIn->mat[10]) {
- kmScalar s = sqrtf(1 + pIn->mat[5] - pIn->mat[0] - pIn->mat[10]) * 2;
- pOut->x = (pIn->mat[1] + pIn->mat[4]) / s;
- pOut->y = 0.25f * s;
- pOut->z = (pIn->mat[9] + pIn->mat[6]) / s;
- pOut->w = (pIn->mat[8] - pIn->mat[2]) / s;
- }
- else {
- kmScalar s = sqrt(1.0f + pIn->mat[10] - pIn->mat[0] - pIn->mat[5]) * 2.0f;
- pOut->x = (pIn->mat[8] + pIn->mat[2] ) / s;
- pOut->y = (pIn->mat[6] + pIn->mat[9] ) / s;
- pOut->z = 0.25f * s;
- pOut->w = (pIn->mat[1] - pIn->mat[4] ) / s;
- }
-
- kmQuaternionNormalize(pOut, pOut);
- return pOut;*/
-#endif // 0
-}
-
-///< Create a quaternion from yaw, pitch and roll
-kmQuaternion* kmQuaternionRotationYawPitchRoll(kmQuaternion* pOut,
- kmScalar yaw,
- kmScalar pitch,
- kmScalar roll)
-{
- kmScalar ex, ey, ez; // temp half euler angles
- kmScalar cr, cp, cy, sr, sp, sy, cpcy, spsy; // temp vars in roll,pitch yaw
-
- ex = kmDegreesToRadians(pitch) / 2.0f; // convert to rads and half them
- ey = kmDegreesToRadians(yaw) / 2.0f;
- ez = kmDegreesToRadians(roll) / 2.0f;
-
- cr = cosf(ex);
- cp = cosf(ey);
- cy = cosf(ez);
-
- sr = sinf(ex);
- sp = sinf(ey);
- sy = sinf(ez);
-
- cpcy = cp * cy;
- spsy = sp * sy;
-
- pOut->w = cr * cpcy + sr * spsy;
-
- pOut->x = sr * cpcy - cr * spsy;
- pOut->y = cr * sp * cy + sr * cp * sy;
- pOut->z = cr * cp * sy - sr * sp * cy;
-
- kmQuaternionNormalize(pOut, pOut);
-
- return pOut;
-}
-
-///< Interpolate between 2 quaternions
-kmQuaternion* kmQuaternionSlerp(kmQuaternion* pOut,
- const kmQuaternion* q1,
- const kmQuaternion* q2,
- kmScalar t)
-{
-
- /*float CosTheta = Q0.DotProd(Q1);
- float Theta = acosf(CosTheta);
- float SinTheta = sqrtf(1.0f-CosTheta*CosTheta);
-
- float Sin_T_Theta = sinf(T*Theta)/SinTheta;
- float Sin_OneMinusT_Theta = sinf((1.0f-T)*Theta)/SinTheta;
-
- Quaternion Result = Q0*Sin_OneMinusT_Theta;
- Result += (Q1*Sin_T_Theta);
-
- return Result;*/
-
- if (q1->x == q2->x &&
- q1->y == q2->y &&
- q1->z == q2->z &&
- q1->w == q2->w) {
-
- pOut->x = q1->x;
- pOut->y = q1->y;
- pOut->z = q1->z;
- pOut->w = q1->w;
-
- return pOut;
- }
- {
- kmScalar ct = kmQuaternionDot(q1, q2);
- kmScalar theta = acosf(ct);
- kmScalar st = sqrtf(1.0 - kmSQR(ct));
-
- kmScalar stt = sinf(t * theta) / st;
- kmScalar somt = sinf((1.0 - t) * theta) / st;
-
- kmQuaternion temp, temp2;
- kmQuaternionScale(&temp, q1, somt);
- kmQuaternionScale(&temp2, q2, stt);
- kmQuaternionAdd(pOut, &temp, &temp2);
- }
- return pOut;
-}
-
-///< Get the axis and angle of rotation from a quaternion
-void kmQuaternionToAxisAngle(const kmQuaternion* pIn,
- kmVec3* pAxis,
- kmScalar* pAngle)
-{
- kmScalar tempAngle; // temp angle
- kmScalar scale; // temp vars
-
- tempAngle = acosf(pIn->w);
- scale = sqrtf(kmSQR(pIn->x) + kmSQR(pIn->y) + kmSQR(pIn->z));
-
- if (((scale > -kmEpsilon) && scale < kmEpsilon)
- || (scale < 2*kmPI + kmEpsilon && scale > 2*kmPI - kmEpsilon)) // angle is 0 or 360 so just simply set axis to 0,0,1 with angle 0
- {
- *pAngle = 0.0f;
-
- pAxis->x = 0.0f;
- pAxis->y = 0.0f;
- pAxis->z = 1.0f;
- }
- else
- {
- *pAngle = tempAngle * 2.0f; // angle in radians
-
- pAxis->x = pIn->x / scale;
- pAxis->y = pIn->y / scale;
- pAxis->z = pIn->z / scale;
- kmVec3Normalize(pAxis, pAxis);
- }
-}
-
-kmQuaternion* kmQuaternionScale(kmQuaternion* pOut,
- const kmQuaternion* pIn,
- kmScalar s)
-{
- pOut->x = pIn->x * s;
- pOut->y = pIn->y * s;
- pOut->z = pIn->z * s;
- pOut->w = pIn->w * s;
-
- return pOut;
-}
-
-kmQuaternion* kmQuaternionAssign(kmQuaternion* pOut, const kmQuaternion* pIn)
-{
- memcpy(pOut, pIn, sizeof(float) * 4);
-
- return pOut;
-}
-
-kmQuaternion* kmQuaternionAdd(kmQuaternion* pOut, const kmQuaternion* pQ1, const kmQuaternion* pQ2)
-{
- pOut->x = pQ1->x + pQ2->x;
- pOut->y = pQ1->y + pQ2->y;
- pOut->z = pQ1->z + pQ2->z;
- pOut->w = pQ1->w + pQ2->w;
-
- return pOut;
-}
-
-/** Adapted from the OGRE engine!
-
- Gets the shortest arc quaternion to rotate this vector to the destination
- vector.
-@remarks
- If you call this with a dest vector that is close to the inverse
- of this vector, we will rotate 180 degrees around the 'fallbackAxis'
- (if specified, or a generated axis if not) since in this case
- ANY axis of rotation is valid.
-*/
-
-kmQuaternion* kmQuaternionRotationBetweenVec3(kmQuaternion* pOut, const kmVec3* vec1, const kmVec3* vec2, const kmVec3* fallback) {
-
- kmVec3 v1, v2;
- kmScalar a;
-
- kmVec3Assign(&v1, vec1);
- kmVec3Assign(&v2, vec2);
-
- kmVec3Normalize(&v1, &v1);
- kmVec3Normalize(&v2, &v2);
-
- a = kmVec3Dot(&v1, &v2);
-
- if (a >= 1.0) {
- kmQuaternionIdentity(pOut);
- return pOut;
- }
-
- if (a < (1e-6f - 1.0f)) {
- if (fabs(kmVec3LengthSq(fallback)) < kmEpsilon) {
- kmQuaternionRotationAxis(pOut, fallback, kmPI);
- } else {
- kmVec3 axis;
- kmVec3 X;
- X.x = 1.0;
- X.y = 0.0;
- X.z = 0.0;
-
-
- kmVec3Cross(&axis, &X, vec1);
-
- //If axis is zero
- if (fabs(kmVec3LengthSq(&axis)) < kmEpsilon) {
- kmVec3 Y;
- Y.x = 0.0;
- Y.y = 1.0;
- Y.z = 0.0;
-
- kmVec3Cross(&axis, &Y, vec1);
- }
-
- kmVec3Normalize(&axis, &axis);
-
- kmQuaternionRotationAxis(pOut, &axis, kmPI);
- }
- } else {
- kmScalar s = sqrtf((1+a) * 2);
- kmScalar invs = 1 / s;
-
- kmVec3 c;
- kmVec3Cross(&c, &v1, &v2);
-
- pOut->x = c.x * invs;
- pOut->y = c.y * invs;
- pOut->z = c.z * invs;
- pOut->w = s * 0.5f;
-
- kmQuaternionNormalize(pOut, pOut);
- }
-
- return pOut;
-
-}
-
-kmVec3* kmQuaternionMultiplyVec3(kmVec3* pOut, const kmQuaternion* q, const kmVec3* v) {
- kmVec3 uv, uuv, qvec;
-
- qvec.x = q->x;
- qvec.y = q->y;
- qvec.z = q->z;
-
- kmVec3Cross(&uv, &qvec, v);
- kmVec3Cross(&uuv, &qvec, &uv);
-
- kmVec3Scale(&uv, &uv, (2.0f * q->w));
- kmVec3Scale(&uuv, &uuv, 2.0f);
-
- kmVec3Add(pOut, v, &uv);
- kmVec3Add(pOut, pOut, &uuv);
-
- return pOut;
-}
-
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/ray2.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/ray2.c
deleted file mode 100644
index 8f3b430..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/ray2.c
+++ /dev/null
@@ -1,186 +0,0 @@
-#include
-#include
-#include "kazmath/ray2.h"
-
-void kmRay2Fill(kmRay2* ray, kmScalar px, kmScalar py, kmScalar vx, kmScalar vy) {
- ray->start.x = px;
- ray->start.y = py;
- ray->dir.x = vx;
- ray->dir.y = vy;
-}
-
-kmBool kmRay2IntersectLineSegment(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, kmVec2* intersection) {
-
- float x1 = ray->start.x;
- float y1 = ray->start.y;
- float x2 = ray->start.x + ray->dir.x;
- float y2 = ray->start.y + ray->dir.y;
- float x3 = p1->x;
- float y3 = p1->y;
- float x4 = p2->x;
- float y4 = p2->y;
-
- float denom = (y4 -y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);
- float ua, x, y;
- //If denom is zero, the lines are parallel
- if(denom > -kmEpsilon && denom < kmEpsilon) {
- return KM_FALSE;
- }
-
- ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denom;
-// float ub = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / denom;
-
- x = x1 + ua * (x2 - x1);
- y = y1 + ua * (y2 - y1);
-
- if(x < kmMin(p1->x, p2->x) - kmEpsilon ||
- x > kmMax(p1->x, p2->x) + kmEpsilon ||
- y < kmMin(p1->y, p2->y) - kmEpsilon ||
- y > kmMax(p1->y, p2->y) + kmEpsilon) {
- //Outside of line
- //printf("Outside of line, %f %f (%f %f)(%f, %f)\n", x, y, p1->x, p1->y, p2->x, p2->y);
- return KM_FALSE;
- }
-
- if(x < kmMin(x1, x2) - kmEpsilon ||
- x > kmMax(x1, x2) + kmEpsilon ||
- y < kmMin(y1, y2) - kmEpsilon ||
- y > kmMax(y1, y2) + kmEpsilon) {
- //printf("Outside of ray, %f %f (%f %f)(%f, %f)\n", x, y, x1, y1, x2, y2);
- return KM_FALSE;
- }
-
- intersection->x = x;
- intersection->y = y;
-
- return KM_TRUE;
-
-
-/*
- kmScalar A1, B1, C1;
- kmScalar A2, B2, C2;
-
- A1 = ray->dir.y;
- B1 = ray->dir.x;
- C1 = A1 * ray->start.x + B1 * ray->start.y;
-
- A2 = p2->y - p1->y;
- B2 = p2->x - p1->x;
- C2 = A2 * p1->x + B2 * p1->y;
-
- double det = (A1 * B2) - (A2 * B1);
- if(det == 0) {
- printf("Parallel\n");
- return KM_FALSE;
- }
-
- double x = (B2*C1 - B1*C2) / det;
- double y = (A1*C2 - A2*C1) / det;
-
- if(x < min(p1->x, p2->x) - kmEpsilon ||
- x > max(p1->x, p2->x) + kmEpsilon ||
- y < min(p1->y, p2->y) - kmEpsilon ||
- y > max(p1->y, p2->y) + kmEpsilon) {
- //Outside of line
- printf("Outside of line, %f %f (%f %f)(%f, %f)\n", x, y, p1->x, p1->y, p2->x, p2->y);
- return KM_FALSE;
- }
-
- kmScalar x1 = ray->start.x;
- kmScalar x2 = ray->start.x + ray->dir.x;
-
- kmScalar y1 = ray->start.y;
- kmScalar y2 = ray->start.y + ray->dir.y;
-
- if(x < min(x1, x2) - kmEpsilon ||
- x > max(x1, x2) + kmEpsilon ||
- y < min(y1, y2) - kmEpsilon ||
- y > max(y1, y2) + kmEpsilon) {
- printf("Outside of ray, %f %f (%f %f)(%f, %f)\n", x, y, x1, y1, x2, y2);
- return KM_FALSE;
- }
-
- intersection->x = x;
- intersection->y = y;
-
- return KM_TRUE;*/
-}
-
-void calculate_line_normal(kmVec2 p1, kmVec2 p2, kmVec2* normal_out) {
- kmVec2 tmp;
- kmVec2Subtract(&tmp, &p2, &p1); //Get direction vector
-
- normal_out->x = -tmp.y;
- normal_out->y = tmp.x;
- kmVec2Normalize(normal_out, normal_out);
-
- //TODO: should check that the normal is pointing out of the triangle
-}
-
-kmBool kmRay2IntersectTriangle(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, const kmVec2* p3, kmVec2* intersection, kmVec2* normal_out) {
- kmVec2 intersect;
- kmVec2 final_intersect = {0., 0.}, normal = {0., 0.}; // Silencing LLVM SA.
- kmScalar distance = 10000.0f;
- kmBool intersected = KM_FALSE;
-
- if(kmRay2IntersectLineSegment(ray, p1, p2, &intersect)) {
- kmVec2 tmp;
- kmScalar this_distance;
-
- intersected = KM_TRUE;
- this_distance = kmVec2Length(kmVec2Subtract(&tmp, &intersect, &ray->start));
- if(this_distance < distance) {
- final_intersect.x = intersect.x;
- final_intersect.y = intersect.y;
- distance = this_distance;
-
- calculate_line_normal(*p1, *p2, &normal);
- }
- }
-
- if(kmRay2IntersectLineSegment(ray, p2, p3, &intersect)) {
- kmVec2 tmp;
- kmScalar this_distance;
- intersected = KM_TRUE;
-
- this_distance = kmVec2Length(kmVec2Subtract(&tmp, &intersect, &ray->start));
- if(this_distance < distance) {
- final_intersect.x = intersect.x;
- final_intersect.y = intersect.y;
- distance = this_distance;
-
- calculate_line_normal(*p2, *p3, &normal);
- }
- }
-
- if(kmRay2IntersectLineSegment(ray, p3, p1, &intersect)) {
- kmVec2 tmp;
- kmScalar this_distance;
- intersected = KM_TRUE;
-
- this_distance = kmVec2Length(kmVec2Subtract(&tmp, &intersect, &ray->start));
- if(this_distance < distance) {
- final_intersect.x = intersect.x;
- final_intersect.y = intersect.y;
- //distance = this_distance;
-
- calculate_line_normal(*p3, *p1, &normal);
- }
- }
-
- if(intersected) {
- intersection->x = final_intersect.x;
- intersection->y = final_intersect.y;
- if(normal_out) {
- normal_out->x = normal.x;
- normal_out->y = normal.y;
- }
- }
-
- return intersected;
-}
-
-kmBool kmRay2IntersectCircle(const kmRay2* ray, const kmVec2 centre, const kmScalar radius, kmVec2* intersection) {
- assert(0 && "Not implemented");
- return 0;
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/utility.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/utility.c
deleted file mode 100644
index 067f40d..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/utility.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include "kazmath/utility.h"
-
-/**
- * Returns the square of s (e.g. s*s)
- */
-kmScalar kmSQR(kmScalar s) {
- return s*s;
-}
-
-/**
- * Returns degrees as radians.
- */
-kmScalar kmDegreesToRadians(kmScalar degrees) {
- return degrees * kmPIOver180;
-}
-
-/**
- * Returns radians as degrees
- */
-kmScalar kmRadiansToDegrees(kmScalar radians) {
- return radians * kmPIUnder180;
-}
-
-kmScalar kmMin(kmScalar lhs, kmScalar rhs) {
- return (lhs < rhs)? lhs : rhs;
-}
-
-kmScalar kmMax(kmScalar lhs, kmScalar rhs) {
- return (lhs > rhs)? lhs : rhs;
-}
-
-kmBool kmAlmostEqual(kmScalar lhs, kmScalar rhs) {
- return (lhs + kmEpsilon > rhs && lhs - kmEpsilon < rhs);
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec2.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec2.c
deleted file mode 100644
index 2ff18f5..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec2.c
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-#include
-#include
-
-#include "kazmath/mat3.h"
-#include "kazmath/vec2.h"
-#include "kazmath/utility.h"
-
-kmVec2* kmVec2Fill(kmVec2* pOut, kmScalar x, kmScalar y)
-{
- pOut->x = x;
- pOut->y = y;
- return pOut;
-}
-
-kmScalar kmVec2Length(const kmVec2* pIn)
-{
- return sqrtf(kmSQR(pIn->x) + kmSQR(pIn->y));
-}
-
-kmScalar kmVec2LengthSq(const kmVec2* pIn)
-{
- return kmSQR(pIn->x) + kmSQR(pIn->y);
-}
-
-kmVec2* kmVec2Normalize(kmVec2* pOut, const kmVec2* pIn)
-{
- kmScalar l = 1.0f / kmVec2Length(pIn);
-
- kmVec2 v;
- v.x = pIn->x * l;
- v.y = pIn->y * l;
-
- pOut->x = v.x;
- pOut->y = v.y;
-
- return pOut;
-}
-
-kmVec2* kmVec2Add(kmVec2* pOut, const kmVec2* pV1, const kmVec2* pV2)
-{
- pOut->x = pV1->x + pV2->x;
- pOut->y = pV1->y + pV2->y;
-
- return pOut;
-}
-
-kmScalar kmVec2Dot(const kmVec2* pV1, const kmVec2* pV2)
-{
- return pV1->x * pV2->x + pV1->y * pV2->y;
-}
-
-kmVec2* kmVec2Subtract(kmVec2* pOut, const kmVec2* pV1, const kmVec2* pV2)
-{
- pOut->x = pV1->x - pV2->x;
- pOut->y = pV1->y - pV2->y;
-
- return pOut;
-}
-
-kmVec2* kmVec2Transform(kmVec2* pOut, const kmVec2* pV, const kmMat3* pM)
-{
- kmVec2 v;
-
- v.x = pV->x * pM->mat[0] + pV->y * pM->mat[3] + pM->mat[6];
- v.y = pV->x * pM->mat[1] + pV->y * pM->mat[4] + pM->mat[7];
-
- pOut->x = v.x;
- pOut->y = v.y;
-
- return pOut;
-}
-
-kmVec2* kmVec2TransformCoord(kmVec2* pOut, const kmVec2* pV, const kmMat3* pM)
-{
- assert(0);
- return NULL;
-}
-
-kmVec2* kmVec2Scale(kmVec2* pOut, const kmVec2* pIn, const kmScalar s)
-{
- pOut->x = pIn->x * s;
- pOut->y = pIn->y * s;
-
- return pOut;
-}
-
-int kmVec2AreEqual(const kmVec2* p1, const kmVec2* p2)
-{
- return (
- (p1->x < p2->x + kmEpsilon && p1->x > p2->x - kmEpsilon) &&
- (p1->y < p2->y + kmEpsilon && p1->y > p2->y - kmEpsilon)
- );
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec3.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec3.c
deleted file mode 100644
index 93075a0..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec3.c
+++ /dev/null
@@ -1,310 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/**
- * @file vec3.c
- */
-
-#include
-#include
-
-#include "kazmath/utility.h"
-#include "kazmath/vec4.h"
-#include "kazmath/mat4.h"
-#include "kazmath/vec3.h"
-
-/**
- * Fill a kmVec3 structure using 3 floating point values
- * The result is store in pOut, returns pOut
- */
-kmVec3* kmVec3Fill(kmVec3* pOut, kmScalar x, kmScalar y, kmScalar z)
-{
- pOut->x = x;
- pOut->y = y;
- pOut->z = z;
- return pOut;
-}
-
-
-/**
- * Returns the length of the vector
- */
-kmScalar kmVec3Length(const kmVec3* pIn)
-{
- return sqrtf(kmSQR(pIn->x) + kmSQR(pIn->y) + kmSQR(pIn->z));
-}
-
-/**
- * Returns the square of the length of the vector
- */
-kmScalar kmVec3LengthSq(const kmVec3* pIn)
-{
- return kmSQR(pIn->x) + kmSQR(pIn->y) + kmSQR(pIn->z);
-}
-
- /**
- * Returns the vector passed in set to unit length
- * the result is stored in pOut.
- */
-kmVec3* kmVec3Normalize(kmVec3* pOut, const kmVec3* pIn)
-{
- kmScalar l = 1.0f / kmVec3Length(pIn);
-
- kmVec3 v;
- v.x = pIn->x * l;
- v.y = pIn->y * l;
- v.z = pIn->z * l;
-
- pOut->x = v.x;
- pOut->y = v.y;
- pOut->z = v.z;
-
- return pOut;
-}
-
-/**
- * Returns a vector perpendicular to 2 other vectors.
- * The result is stored in pOut.
- */
-kmVec3* kmVec3Cross(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2)
-{
-
- kmVec3 v;
-
- v.x = (pV1->y * pV2->z) - (pV1->z * pV2->y);
- v.y = (pV1->z * pV2->x) - (pV1->x * pV2->z);
- v.z = (pV1->x * pV2->y) - (pV1->y * pV2->x);
-
- pOut->x = v.x;
- pOut->y = v.y;
- pOut->z = v.z;
-
- return pOut;
-}
-
-/**
- * Returns the cosine of the angle between 2 vectors
- */
-kmScalar kmVec3Dot(const kmVec3* pV1, const kmVec3* pV2)
-{
- return ( pV1->x * pV2->x
- + pV1->y * pV2->y
- + pV1->z * pV2->z );
-}
-
-/**
- * Adds 2 vectors and returns the result. The resulting
- * vector is stored in pOut.
- */
-kmVec3* kmVec3Add(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2)
-{
- kmVec3 v;
-
- v.x = pV1->x + pV2->x;
- v.y = pV1->y + pV2->y;
- v.z = pV1->z + pV2->z;
-
- pOut->x = v.x;
- pOut->y = v.y;
- pOut->z = v.z;
-
- return pOut;
-}
-
- /**
- * Subtracts 2 vectors and returns the result. The result is stored in
- * pOut.
- */
-kmVec3* kmVec3Subtract(kmVec3* pOut, const kmVec3* pV1, const kmVec3* pV2)
-{
- kmVec3 v;
-
- v.x = pV1->x - pV2->x;
- v.y = pV1->y - pV2->y;
- v.z = pV1->z - pV2->z;
-
- pOut->x = v.x;
- pOut->y = v.y;
- pOut->z = v.z;
-
- return pOut;
-}
-
- /**
- * Transforms vector (x, y, z, 1) by a given matrix. The result
- * is stored in pOut. pOut is returned.
- */
-kmVec3* kmVec3Transform(kmVec3* pOut, const kmVec3* pV, const kmMat4* pM)
-{
- /*
- a = (Vx, Vy, Vz, 1)
- b = (a×M)T
- Out = (bx, by, bz)
- */
-
- kmVec3 v;
-
- v.x = pV->x * pM->mat[0] + pV->y * pM->mat[4] + pV->z * pM->mat[8] + pM->mat[12];
- v.y = pV->x * pM->mat[1] + pV->y * pM->mat[5] + pV->z * pM->mat[9] + pM->mat[13];
- v.z = pV->x * pM->mat[2] + pV->y * pM->mat[6] + pV->z * pM->mat[10] + pM->mat[14];
-
- pOut->x = v.x;
- pOut->y = v.y;
- pOut->z = v.z;
-
- return pOut;
-}
-
-kmVec3* kmVec3InverseTransform(kmVec3* pOut, const kmVec3* pVect, const kmMat4* pM)
-{
- kmVec3 v1, v2;
-
- v1.x = pVect->x - pM->mat[12];
- v1.y = pVect->y - pM->mat[13];
- v1.z = pVect->z - pM->mat[14];
-
- v2.x = v1.x * pM->mat[0] + v1.y * pM->mat[1] + v1.z * pM->mat[2];
- v2.y = v1.x * pM->mat[4] + v1.y * pM->mat[5] + v1.z * pM->mat[6];
- v2.z = v1.x * pM->mat[8] + v1.y * pM->mat[9] + v1.z * pM->mat[10];
-
- pOut->x = v2.x;
- pOut->y = v2.y;
- pOut->z = v2.z;
-
- return pOut;
-}
-
-kmVec3* kmVec3InverseTransformNormal(kmVec3* pOut, const kmVec3* pVect, const kmMat4* pM)
-{
- kmVec3 v;
-
- v.x = pVect->x * pM->mat[0] + pVect->y * pM->mat[1] + pVect->z * pM->mat[2];
- v.y = pVect->x * pM->mat[4] + pVect->y * pM->mat[5] + pVect->z * pM->mat[6];
- v.z = pVect->x * pM->mat[8] + pVect->y * pM->mat[9] + pVect->z * pM->mat[10];
-
- pOut->x = v.x;
- pOut->y = v.y;
- pOut->z = v.z;
-
- return pOut;
-}
-
-
-kmVec3* kmVec3TransformCoord(kmVec3* pOut, const kmVec3* pV, const kmMat4* pM)
-{
- /*
- a = (Vx, Vy, Vz, 1)
- b = (a×M)T
- Out = 1â„bw(bx, by, bz)
- */
-
- kmVec4 v;
- kmVec4 inV;
- kmVec4Fill(&inV, pV->x, pV->y, pV->z, 1.0);
-
- kmVec4Transform(&v, &inV,pM);
-
- pOut->x = v.x / v.w;
- pOut->y = v.y / v.w;
- pOut->z = v.z / v.w;
-
- return pOut;
-}
-
-kmVec3* kmVec3TransformNormal(kmVec3* pOut, const kmVec3* pV, const kmMat4* pM)
-{
-/*
- a = (Vx, Vy, Vz, 0)
- b = (a×M)T
- Out = (bx, by, bz)
-*/
- //Omits the translation, only scaling + rotating
- kmVec3 v;
-
- v.x = pV->x * pM->mat[0] + pV->y * pM->mat[4] + pV->z * pM->mat[8];
- v.y = pV->x * pM->mat[1] + pV->y * pM->mat[5] + pV->z * pM->mat[9];
- v.z = pV->x * pM->mat[2] + pV->y * pM->mat[6] + pV->z * pM->mat[10];
-
- pOut->x = v.x;
- pOut->y = v.y;
- pOut->z = v.z;
-
- return pOut;
-
-}
-
-/**
- * Scales a vector to length s. Does not normalize first,
- * you should do that!
- */
-kmVec3* kmVec3Scale(kmVec3* pOut, const kmVec3* pIn, const kmScalar s)
-{
- pOut->x = pIn->x * s;
- pOut->y = pIn->y * s;
- pOut->z = pIn->z * s;
-
- return pOut;
-}
-
-/**
- * Returns KM_TRUE if the 2 vectors are approximately equal
- */
-int kmVec3AreEqual(const kmVec3* p1, const kmVec3* p2)
-{
- if ((p1->x < (p2->x + kmEpsilon) && p1->x > (p2->x - kmEpsilon)) &&
- (p1->y < (p2->y + kmEpsilon) && p1->y > (p2->y - kmEpsilon)) &&
- (p1->z < (p2->z + kmEpsilon) && p1->z > (p2->z - kmEpsilon))) {
- return 1;
- }
-
- return 0;
-}
-
-/**
- * Assigns pIn to pOut. Returns pOut. If pIn and pOut are the same
- * then nothing happens but pOut is still returned
- */
-kmVec3* kmVec3Assign(kmVec3* pOut, const kmVec3* pIn) {
- if (pOut == pIn) {
- return pOut;
- }
-
- pOut->x = pIn->x;
- pOut->y = pIn->y;
- pOut->z = pIn->z;
-
- return pOut;
-}
-
-/**
- * Sets all the elements of pOut to zero. Returns pOut.
- */
-kmVec3* kmVec3Zero(kmVec3* pOut) {
- pOut->x = 0.0f;
- pOut->y = 0.0f;
- pOut->z = 0.0f;
-
- return pOut;
-}
diff --git a/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec4.c b/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec4.c
deleted file mode 100644
index bfe0414..0000000
--- a/cappuccino-sdk/incl/cocos2dx/kazmath/src/vec4.c
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
-Copyright (c) 2008, Luke Benstead.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-
-#include
-#include
-
-#include "kazmath/utility.h"
-#include "kazmath/vec4.h"
-#include "kazmath/mat4.h"
-
-
-kmVec4* kmVec4Fill(kmVec4* pOut, kmScalar x, kmScalar y, kmScalar z, kmScalar w)
-{
- pOut->x = x;
- pOut->y = y;
- pOut->z = z;
- pOut->w = w;
- return pOut;
-}
-
-
-/// Adds 2 4D vectors together. The result is store in pOut, the function returns
-/// pOut so that it can be nested in another function.
-kmVec4* kmVec4Add(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2) {
- pOut->x = pV1->x + pV2->x;
- pOut->y = pV1->y + pV2->y;
- pOut->z = pV1->z + pV2->z;
- pOut->w = pV1->w + pV2->w;
-
- return pOut;
-}
-
-/// Returns the dot product of 2 4D vectors
-kmScalar kmVec4Dot(const kmVec4* pV1, const kmVec4* pV2) {
- return ( pV1->x * pV2->x
- + pV1->y * pV2->y
- + pV1->z * pV2->z
- + pV1->w * pV2->w );
-}
-
-/// Returns the length of a 4D vector, this uses a sqrt so if the squared length will do use
-/// kmVec4LengthSq
-kmScalar kmVec4Length(const kmVec4* pIn) {
- return sqrtf(kmSQR(pIn->x) + kmSQR(pIn->y) + kmSQR(pIn->z) + kmSQR(pIn->w));
-}
-
-/// Returns the length of the 4D vector squared.
-kmScalar kmVec4LengthSq(const kmVec4* pIn) {
- return kmSQR(pIn->x) + kmSQR(pIn->y) + kmSQR(pIn->z) + kmSQR(pIn->w);
-}
-
-/// Returns the interpolation of 2 4D vectors based on t. Currently not implemented!
-kmVec4* kmVec4Lerp(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2, kmScalar t) {
- assert(0);
- return pOut;
-}
-
-/// Normalizes a 4D vector. The result is stored in pOut. pOut is returned
-kmVec4* kmVec4Normalize(kmVec4* pOut, const kmVec4* pIn) {
- kmScalar l = 1.0f / kmVec4Length(pIn);
-
- pOut->x *= l;
- pOut->y *= l;
- pOut->z *= l;
- pOut->w *= l;
-
- return pOut;
-}
-
-/// Scales a vector to the required length. This performs a Normalize before multiplying by S.
-kmVec4* kmVec4Scale(kmVec4* pOut, const kmVec4* pIn, const kmScalar s) {
- kmVec4Normalize(pOut, pIn);
-
- pOut->x *= s;
- pOut->y *= s;
- pOut->z *= s;
- pOut->w *= s;
- return pOut;
-}
-
-/// Subtracts one 4D pV2 from pV1. The result is stored in pOut. pOut is returned
-kmVec4* kmVec4Subtract(kmVec4* pOut, const kmVec4* pV1, const kmVec4* pV2) {
- pOut->x = pV1->x - pV2->x;
- pOut->y = pV1->y - pV2->y;
- pOut->z = pV1->z - pV2->z;
- pOut->w = pV1->w - pV2->w;
-
- return pOut;
-}
-
-/// Transforms a 4D vector by a matrix, the result is stored in pOut, and pOut is returned.
-kmVec4* kmVec4Transform(kmVec4* pOut, const kmVec4* pV, const kmMat4* pM) {
- pOut->x = pV->x * pM->mat[0] + pV->y * pM->mat[4] + pV->z * pM->mat[8] + pV->w * pM->mat[12];
- pOut->y = pV->x * pM->mat[1] + pV->y * pM->mat[5] + pV->z * pM->mat[9] + pV->w * pM->mat[13];
- pOut->z = pV->x * pM->mat[2] + pV->y * pM->mat[6] + pV->z * pM->mat[10] + pV->w * pM->mat[14];
- pOut->w = pV->x * pM->mat[3] + pV->y * pM->mat[7] + pV->z * pM->mat[11] + pV->w * pM->mat[15];
- return pOut;
-}
-
-/// Loops through an input array transforming each vec4 by the matrix.
-kmVec4* kmVec4TransformArray(kmVec4* pOut, unsigned int outStride,
- const kmVec4* pV, unsigned int vStride, const kmMat4* pM, unsigned int count) {
- unsigned int i = 0;
- //Go through all of the vectors
- while (i < count) {
- const kmVec4* in = pV + (i * vStride); //Get a pointer to the current input
- kmVec4* out = pOut + (i * outStride); //and the current output
- kmVec4Transform(out, in, pM); //Perform transform on it
- ++i;
- }
-
- return pOut;
-}
-
-int kmVec4AreEqual(const kmVec4* p1, const kmVec4* p2) {
- return (
- (p1->x < p2->x + kmEpsilon && p1->x > p2->x - kmEpsilon) &&
- (p1->y < p2->y + kmEpsilon && p1->y > p2->y - kmEpsilon) &&
- (p1->z < p2->z + kmEpsilon && p1->z > p2->z - kmEpsilon) &&
- (p1->w < p2->w + kmEpsilon && p1->w > p2->w - kmEpsilon)
- );
-}
-
-kmVec4* kmVec4Assign(kmVec4* pOut, const kmVec4* pIn) {
- assert(pOut != pIn);
-
- memcpy(pOut, pIn, sizeof(float) * 4);
-
- return pOut;
-}
-
diff --git a/cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDelegate.h b/cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDelegate.h
deleted file mode 100644
index 5a92eb1..0000000
--- a/cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDelegate.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCKEYPAD_DELEGATE_H__
-#define __CCKEYPAD_DELEGATE_H__
-
-
-#include "cocoa/CCObject.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup input
- * @{
- * @js NA
- * @lua NA
- */
-
-class CC_DLL CCKeypadDelegate
-{
-public:
- // The back key clicked
- virtual void keyBackClicked() {}
-
- // The menu key clicked. only available on wophone & android
- virtual void keyMenuClicked() {};
-};
-
-/**
- * @brief
- * CCKeypadHandler
- * Object than contains the CCKeypadDelegate.
- * @js NA
- * @lua NA
- */
-class CC_DLL CCKeypadHandler : public CCObject
-{
-public:
- virtual ~CCKeypadHandler(void);
-
- /** delegate */
- CCKeypadDelegate* getDelegate();
- void setDelegate(CCKeypadDelegate *pDelegate);
-
- /** initializes a CCKeypadHandler with a delegate */
- virtual bool initWithDelegate(CCKeypadDelegate *pDelegate);
-
-public:
- /** allocates a CCKeypadHandler with a delegate */
- static CCKeypadHandler* handlerWithDelegate(CCKeypadDelegate *pDelegate);
-
-protected:
- CCKeypadDelegate* m_pDelegate;
-};
-
-// end of input group
-/// @}
-
-NS_CC_END
-
-#endif // __CCKEYPAD_DELEGATE_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDispatcher.h b/cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDispatcher.h
deleted file mode 100644
index 87d321c..0000000
--- a/cappuccino-sdk/incl/cocos2dx/keypad_dispatcher/CCKeypadDispatcher.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-
-#ifndef __CCKEYPAD_DISPATCHER_H__
-#define __CCKEYPAD_DISPATCHER_H__
-
-#include "CCKeypadDelegate.h"
-#include "cocoa/CCArray.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup input
- * @{
- */
-
-typedef enum {
- // the back key clicked msg
- kTypeBackClicked = 1,
- kTypeMenuClicked,
-} ccKeypadMSGType;
-
-struct _ccCArray;
-/**
-@class CCKeypadDispatcher
-@brief Dispatch the keypad message from the phone
-@js NA
-@lua NA
-*/
-class CC_DLL CCKeypadDispatcher : public CCObject
-{
-public:
- CCKeypadDispatcher();
- ~CCKeypadDispatcher();
-
- /**
- @brief add delegate to concern keypad msg
- */
- void addDelegate(CCKeypadDelegate* pDelegate);
-
- /**
- @brief remove the delegate from the delegates who concern keypad msg
- */
- void removeDelegate(CCKeypadDelegate* pDelegate);
-
- /**
- @brief force add the delegate
- */
- void forceAddDelegate(CCKeypadDelegate* pDelegate);
-
- /**
- @brief force remove the delegate
- */
- void forceRemoveDelegate(CCKeypadDelegate* pDelegate);
-
- /**
- @brief dispatch the key pad msg
- */
- bool dispatchKeypadMSG(ccKeypadMSGType nMsgType);
-
-protected:
-
- CCArray* m_pDelegates;
- bool m_bLocked;
- bool m_bToAdd;
- bool m_bToRemove;
-
- struct _ccCArray *m_pHandlersToAdd;
- struct _ccCArray *m_pHandlersToRemove;
-};
-
-// end of input group
-/// @}
-
-NS_CC_END
-
-#endif //__CCKEYPAD_DISPATCHER_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelAtlas.h b/cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelAtlas.h
deleted file mode 100644
index 600a6d4..0000000
--- a/cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelAtlas.h
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-****************************************************************************/
-#ifndef __CCLABEL_ATLAS_H__
-#define __CCLABEL_ATLAS_H__
-
-#include "base_nodes/CCAtlasNode.h"
-
-NS_CC_BEGIN
-
-/**
- * @addtogroup GUI
- * @{
- * @addtogroup label
- * @{
- */
-
-/** @brief CCLabelAtlas is a subclass of CCAtlasNode.
-
-It can be as a replacement of CCLabel since it is MUCH faster.
-
-CCLabelAtlas versus CCLabel:
-- CCLabelAtlas is MUCH faster than CCLabel
-- CCLabelAtlas "characters" have a fixed height and width
-- CCLabelAtlas "characters" can be anything you want since they are taken from an image file
-
-A more flexible class is CCLabelBMFont. It supports variable width characters and it also has a nice editor.
-*/
-class CC_DLL CCLabelAtlas : public CCAtlasNode, public CCLabelProtocol
-{
-public:
- /**
- * @js ctor
- * @lua NA
- */
- CCLabelAtlas()
- :m_sString("")
- {}
- /**
- * @js NA
- * @lua NA
- */
- virtual ~CCLabelAtlas()
- {
- m_sString.clear();
- }
-
- /** creates the CCLabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas */
- static CCLabelAtlas * create(const char *string, const char *charMapFile, unsigned int itemWidth, unsigned int itemHeight, unsigned int startCharMap);
-
- /** creates the CCLabelAtlas with a string and a configuration file
- @since v2.0
- @js _create
- */
- static CCLabelAtlas* create(const char *string, const char *fntFile);
-
- /** initializes the CCLabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas */
- bool initWithString(const char *string, const char *charMapFile, unsigned int itemWidth, unsigned int itemHeight, unsigned int startCharMap);
-
- /** initializes the CCLabelAtlas with a string and a configuration file
- @since v2.0
- */
- bool initWithString(const char *string, const char *fntFile);
-
- /** initializes the CCLabelAtlas with a string, a texture, the width and height in points of each element and the starting char of the atlas */
- bool initWithString(const char* string, CCTexture2D* texture, unsigned int itemWidth, unsigned int itemHeight, unsigned int startCharMap);
-
- // super methods
- virtual void updateAtlasValues();
- virtual void setString(const char *label);
- virtual const char* getString(void);
-
-#if CC_LABELATLAS_DEBUG_DRAW
- virtual void draw();
-#endif
-
-protected:
- // string to render
- std::string m_sString;
- // the first char in the charmap
- unsigned int m_uMapStartChar;
-};
-
-// end of GUI group
-/// @}
-/// @}
-
-
-NS_CC_END
-
-#endif //__CCLABEL_ATLAS_H__
diff --git a/cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelBMFont.h b/cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelBMFont.h
deleted file mode 100644
index 017fac6..0000000
--- a/cappuccino-sdk/incl/cocos2dx/label_nodes/CCLabelBMFont.h
+++ /dev/null
@@ -1,344 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-Copyright (c) 2008-2010 Ricardo Quesada
-Copyright (c) 2011 Zynga Inc.
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-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.
-
-Use any of these editors to generate BMFonts:
- http://glyphdesigner.71squared.com/ (Commercial, Mac OS X)
- http://www.n4te.com/hiero/hiero.jnlp (Free, Java)
- http://slick.cokeandcode.com/demos/hiero.jnlp (Free, Java)
- http://www.angelcode.com/products/bmfont/ (Free, Windows only)
-
-****************************************************************************/
-#ifndef __CCBITMAP_FONT_ATLAS_H__
-#define __CCBITMAP_FONT_ATLAS_H__
-
-#include "sprite_nodes/CCSpriteBatchNode.h"
-#include "support/data_support/uthash.h"
-#include