├── .gitattributes ├── .gitignore ├── DialogBox.sln ├── DialogBox ├── Dialog.cpp ├── Dialog.h ├── DialogBox.vcxproj ├── DialogBox.vcxproj.filters ├── DialogHandler.cpp ├── DialogHandler.h ├── DialogObject.h ├── MinHook.h ├── dllmain.cpp └── libMinHook-x86-v141-mtd.lib ├── README.md └── cappuccino-sdk ├── incl ├── cocos2dx │ ├── Android.mk │ ├── CCCamera.h │ ├── CCConfiguration.h │ ├── CCDirector.h │ ├── CCScheduler.h │ ├── actions │ │ ├── CCAction.h │ │ ├── CCActionCamera.h │ │ ├── CCActionCatmullRom.h │ │ ├── CCActionEase.h │ │ ├── CCActionGrid.h │ │ ├── CCActionGrid3D.h │ │ ├── CCActionInstant.h │ │ ├── CCActionInterval.h │ │ ├── CCActionManager.h │ │ ├── CCActionPageTurn3D.h │ │ ├── CCActionProgressTimer.h │ │ ├── CCActionTiledGrid.h │ │ └── CCActionTween.h │ ├── base_nodes │ │ ├── CCAtlasNode.h │ │ ├── CCGLBufferedNode.h │ │ └── CCNode.h │ ├── ccFPSImages.c │ ├── ccFPSImages.h │ ├── cocoa │ │ ├── CCAffineTransform.h │ │ ├── CCArray.h │ │ ├── CCAutoreleasePool.h │ │ ├── CCBool.h │ │ ├── CCDataVisitor.h │ │ ├── CCDictionary.h │ │ ├── CCDouble.h │ │ ├── CCFloat.h │ │ ├── CCGeometry.h │ │ ├── CCInteger.h │ │ ├── CCNS.h │ │ ├── CCObject.h │ │ ├── CCSet.h │ │ ├── CCString.h │ │ └── CCZone.h │ ├── custom │ │ ├── Delegates │ │ │ ├── CCKeyboardDelegate.h │ │ │ └── CCMouseDelegate.h │ │ └── Sprites │ │ │ ├── CCMenuItemSpriteExtra │ │ │ ├── CCMenuItemSpriteExtra.cpp │ │ │ └── CCMenuItemSpriteExtra.h │ │ │ └── CCSpriteExtra │ │ │ └── CCSpriteExtra.h │ ├── draw_nodes │ │ ├── CCDrawNode.h │ │ └── CCDrawingPrimitives.h │ ├── effects │ │ ├── CCGrabber.h │ │ └── CCGrid.h │ ├── include │ │ ├── CCEventType.h │ │ ├── CCProtocols.h │ │ ├── ccConfig.h │ │ ├── ccMacros.h │ │ ├── ccTypeInfo.h │ │ ├── ccTypes.h │ │ └── cocos2d.h │ ├── kazmath │ │ ├── include │ │ │ └── kazmath │ │ │ │ ├── GL │ │ │ │ ├── mat4stack.h │ │ │ │ └── matrix.h │ │ │ │ ├── aabb.h │ │ │ │ ├── kazmath.h │ │ │ │ ├── mat3.h │ │ │ │ ├── mat4.h │ │ │ │ ├── neon_matrix_impl.h │ │ │ │ ├── plane.h │ │ │ │ ├── quaternion.h │ │ │ │ ├── ray2.h │ │ │ │ ├── utility.h │ │ │ │ ├── vec2.h │ │ │ │ ├── vec3.h │ │ │ │ └── vec4.h │ │ └── src │ │ │ ├── CMakeLists.txt │ │ │ ├── ChangeLog │ │ │ ├── GL │ │ │ ├── mat4stack.c │ │ │ └── matrix.c │ │ │ ├── aabb.c │ │ │ ├── mat3.c │ │ │ ├── mat4.c │ │ │ ├── neon_matrix_impl.c │ │ │ ├── plane.c │ │ │ ├── quaternion.c │ │ │ ├── ray2.c │ │ │ ├── utility.c │ │ │ ├── vec2.c │ │ │ ├── vec3.c │ │ │ └── vec4.c │ ├── keypad_dispatcher │ │ ├── CCKeypadDelegate.h │ │ └── CCKeypadDispatcher.h │ ├── label_nodes │ │ ├── CCLabelAtlas.h │ │ ├── CCLabelBMFont.h │ │ └── CCLabelTTF.h │ ├── layers_scenes_transitions_nodes │ │ ├── CCLayer.h │ │ ├── CCScene.h │ │ ├── CCTransition.h │ │ ├── CCTransitionPageTurn.h │ │ └── CCTransitionProgress.h │ ├── menu_nodes │ │ ├── CCMenu.h │ │ └── CCMenuItem.h │ ├── misc_nodes │ │ ├── CCClippingNode.h │ │ ├── CCMotionStreak.h │ │ ├── CCProgressTimer.h │ │ └── CCRenderTexture.h │ ├── particle_nodes │ │ ├── CCParticleBatchNode.h │ │ ├── CCParticleExamples.h │ │ ├── CCParticleSystem.h │ │ ├── CCParticleSystemQuad.h │ │ └── firePngData.h │ ├── platform │ │ ├── CCAccelerometerDelegate.h │ │ ├── CCApplicationProtocol.h │ │ ├── CCCommon.h │ │ ├── CCDevice.h │ │ ├── CCEGLViewProtocol.h │ │ ├── CCFileUtils.h │ │ ├── CCImage.h │ │ ├── CCImageCommon_cpp.h │ │ ├── CCPlatformConfig.h │ │ ├── CCPlatformMacros.h │ │ ├── CCSAXParser.h │ │ ├── CCThread.h │ │ ├── platform.h │ │ ├── third_party │ │ │ └── win32 │ │ │ │ ├── OGLES │ │ │ │ └── GL │ │ │ │ │ ├── glew.h │ │ │ │ │ ├── glew.h.REMOVED.git-id │ │ │ │ │ ├── glxew.h │ │ │ │ │ └── wglew.h │ │ │ │ ├── curl │ │ │ │ ├── curl.h │ │ │ │ ├── curlbuild.h │ │ │ │ ├── curlrules.h │ │ │ │ ├── curlver.h │ │ │ │ ├── easy.h │ │ │ │ ├── mprintf.h │ │ │ │ ├── multi.h │ │ │ │ ├── stdcheaders.h │ │ │ │ └── typecheck-gcc.h │ │ │ │ ├── iconv │ │ │ │ └── iconv.h │ │ │ │ ├── libjpeg │ │ │ │ ├── jconfig.h │ │ │ │ ├── jconfig_linux.h │ │ │ │ ├── jconfig_win.h │ │ │ │ ├── jerror.h │ │ │ │ ├── jmorecfg.h │ │ │ │ └── jpeglib.h │ │ │ │ ├── libpng │ │ │ │ ├── png.h │ │ │ │ ├── png.h.REMOVED.git-id │ │ │ │ └── pngconf.h │ │ │ │ ├── libraries │ │ │ │ ├── glew32.dll.REMOVED.git-id │ │ │ │ ├── glew32.lib.REMOVED.git-id │ │ │ │ ├── iconv.dll.REMOVED.git-id │ │ │ │ ├── libcurl.dll.REMOVED.git-id │ │ │ │ ├── libjpeg.lib.REMOVED.git-id │ │ │ │ ├── libpng.lib.REMOVED.git-id │ │ │ │ ├── libtiff.dll.REMOVED.git-id │ │ │ │ └── libwebp.lib.REMOVED.git-id │ │ │ │ ├── libtiff │ │ │ │ ├── tiff.h │ │ │ │ ├── tiffconf.h │ │ │ │ ├── tiffio.h │ │ │ │ └── tiffvers.h │ │ │ │ ├── libwebp │ │ │ │ ├── decode.h │ │ │ │ ├── encode.h │ │ │ │ └── types.h │ │ │ │ ├── pthread │ │ │ │ ├── pthread.h │ │ │ │ ├── sched.h │ │ │ │ └── semaphore.h │ │ │ │ ├── third_party_versions.txt │ │ │ │ └── zlib │ │ │ │ ├── zconf.h │ │ │ │ └── zlib.h │ │ └── win32 │ │ │ ├── CCAccelerometer.h │ │ │ ├── CCApplication.h │ │ │ ├── CCEGLView.h │ │ │ ├── CCFileUtilsWin32.h │ │ │ ├── CCGL.h │ │ │ ├── CCPlatformDefine.h │ │ │ ├── CCStdC.h │ │ │ └── compat │ │ │ └── stdint.h │ ├── proj.win32 │ │ ├── cocos2d.vcxproj │ │ └── cocos2d.vcxproj.filters │ ├── script_support │ │ └── CCScriptSupport.h │ ├── shaders │ │ ├── CCGLProgram.h │ │ ├── CCShaderCache.h │ │ ├── ccGLStateCache.h │ │ ├── ccShaderEx_SwitchMask_frag.h │ │ ├── ccShader_PositionColorLengthTexture_frag.h │ │ ├── ccShader_PositionColorLengthTexture_vert.h │ │ ├── ccShader_PositionColor_frag.h │ │ ├── ccShader_PositionColor_vert.h │ │ ├── ccShader_PositionTextureA8Color_frag.h │ │ ├── ccShader_PositionTextureA8Color_vert.h │ │ ├── ccShader_PositionTextureColorAlphaTest_frag.h │ │ ├── ccShader_PositionTextureColor_frag.h │ │ ├── ccShader_PositionTextureColor_vert.h │ │ ├── ccShader_PositionTexture_frag.h │ │ ├── ccShader_PositionTexture_uColor_frag.h │ │ ├── ccShader_PositionTexture_uColor_vert.h │ │ ├── ccShader_PositionTexture_vert.h │ │ ├── ccShader_Position_uColor_frag.h │ │ ├── ccShader_Position_uColor_vert.h │ │ ├── ccShaders.h │ │ └── precompiled │ │ │ ├── winrt │ │ │ └── precompiledshaders.h.REMOVED.git-id │ │ │ └── wp8 │ │ │ └── precompiledshaders.h.REMOVED.git-id │ ├── sprite_nodes │ │ ├── CCAnimation.h │ │ ├── CCAnimationCache.h │ │ ├── CCSprite.h │ │ ├── CCSpriteBatchNode.h │ │ ├── CCSpriteFrame.h │ │ └── CCSpriteFrameCache.h │ ├── support │ │ ├── CCNotificationCenter.h │ │ ├── CCPointExtension.h │ │ ├── CCProfiling.h │ │ ├── CCVertex.h │ │ ├── TransformUtils.h │ │ ├── base64.h │ │ ├── ccUTF8.h │ │ ├── ccUtils.h │ │ ├── component │ │ │ ├── CCComponent.h │ │ │ └── CCComponentContainer.h │ │ ├── data_support │ │ │ ├── ccCArray.h │ │ │ ├── uthash.h │ │ │ └── utlist.h │ │ ├── image_support │ │ │ └── TGAlib.h │ │ ├── tinyxml2 │ │ │ └── tinyxml2.h │ │ ├── user_default │ │ │ ├── CCUserDefault.h │ │ │ └── CCUserDefault.mm │ │ └── zip_support │ │ │ ├── ZipUtils.h │ │ │ ├── ioapi.h │ │ │ └── unzip.h │ ├── text_input_node │ │ ├── CCIMEDelegate.h │ │ ├── CCIMEDispatcher.h │ │ └── CCTextFieldTTF.h │ ├── textures │ │ ├── CCTexture2D.h │ │ ├── CCTextureAtlas.h │ │ ├── CCTextureCache.h │ │ ├── CCTextureETC.h │ │ └── CCTexturePVR.h │ ├── tilemap_parallax_nodes │ │ ├── CCParallaxNode.h │ │ ├── CCTMXLayer.h │ │ ├── CCTMXObjectGroup.h │ │ ├── CCTMXTiledMap.h │ │ ├── CCTMXXMLParser.h │ │ └── CCTileMapAtlas.h │ └── touch_dispatcher │ │ ├── CCTouch.h │ │ ├── CCTouchDelegateProtocol.h │ │ ├── CCTouchDispatcher.h │ │ └── CCTouchHandler.h └── extensions │ ├── AssetsManager │ └── AssetsManager.h │ ├── CCBReader │ ├── CCBAnimationManager.h │ ├── CCBFileLoader.h │ ├── CCBKeyframe.h │ ├── CCBMemberVariableAssigner.h │ ├── CCBReader.h │ ├── CCBSelectorResolver.h │ ├── CCBSequence.h │ ├── CCBSequenceProperty.h │ ├── CCBValue.h │ ├── CCControlButtonLoader.h │ ├── CCControlLoader.h │ ├── CCData.h │ ├── CCLabelBMFontLoader.h │ ├── CCLabelTTFLoader.h │ ├── CCLayerColorLoader.h │ ├── CCLayerGradientLoader.h │ ├── CCLayerLoader.h │ ├── CCMenuItemImageLoader.h │ ├── CCMenuItemLoader.h │ ├── CCMenuLoader.h │ ├── CCNode+CCBRelativePositioning.h │ ├── CCNodeLoader.h │ ├── CCNodeLoaderLibrary.h │ ├── CCNodeLoaderListener.h │ ├── CCParticleSystemQuadLoader.h │ ├── CCScale9SpriteLoader.h │ ├── CCScrollViewLoader.h │ └── CCSpriteLoader.h │ ├── CocoStudio │ ├── Action │ │ ├── CCActionEaseEx.h │ │ ├── CCActionFrame.h │ │ ├── CCActionFrameEasing.h │ │ ├── CCActionManager.h │ │ ├── CCActionNode.h │ │ └── CCActionObject.h │ ├── Armature │ │ ├── CCArmature.h │ │ ├── CCBone.h │ │ ├── animation │ │ │ ├── CCArmatureAnimation.h │ │ │ ├── CCProcessBase.h │ │ │ └── CCTween.h │ │ ├── datas │ │ │ └── CCDatas.h │ │ ├── display │ │ │ ├── CCBatchNode.h │ │ │ ├── CCDecorativeDisplay.h │ │ │ ├── CCDisplayFactory.h │ │ │ ├── CCDisplayManager.h │ │ │ └── CCSkin.h │ │ ├── external_tool │ │ │ └── sigslot.h │ │ ├── physics │ │ │ └── CCColliderDetector.h │ │ └── utils │ │ │ ├── CCArmatureDataManager.h │ │ │ ├── CCArmatureDefine.h │ │ │ ├── CCDataReaderHelper.h │ │ │ ├── CCSpriteFrameCacheHelper.h │ │ │ ├── CCTransformHelp.h │ │ │ ├── CCTweenFunction.h │ │ │ └── CCUtilMath.h │ ├── Components │ │ ├── CCComAttribute.h │ │ ├── CCComAudio.h │ │ ├── CCComBase.h │ │ ├── CCComController.h │ │ ├── CCComRender.h │ │ └── CCInputDelegate.h │ ├── GUI │ │ ├── BaseClasses │ │ │ └── UIWidget.h │ │ ├── Layouts │ │ │ ├── UILayout.h │ │ │ ├── UILayoutDefine.h │ │ │ └── UILayoutParameter.h │ │ ├── System │ │ │ ├── CocosGUI.h │ │ │ ├── GUIDefine.h │ │ │ ├── UIHelper.h │ │ │ └── UITouchGroup.h │ │ └── UIWidgets │ │ │ ├── Compatible │ │ │ └── CompatibleClasses.h │ │ │ ├── ScrollWidget │ │ │ ├── UIListView.h │ │ │ ├── UIPageView.h │ │ │ ├── UIScrollInterface.h │ │ │ └── UIScrollView.h │ │ │ ├── UIButton.h │ │ │ ├── UICheckBox.h │ │ │ ├── UIImageView.h │ │ │ ├── UILabel.h │ │ │ ├── UILabelAtlas.h │ │ │ ├── UILabelBMFont.h │ │ │ ├── UILoadingBar.h │ │ │ ├── UIRichText.h │ │ │ ├── UISlider.h │ │ │ └── UITextField.h │ ├── Json │ │ ├── DictionaryHelper.h │ │ └── rapidjson │ │ │ ├── document.h │ │ │ ├── filestream.h │ │ │ ├── internal │ │ │ ├── pow10.h │ │ │ ├── stack.h │ │ │ └── strfunc.h │ │ │ ├── prettywriter.h │ │ │ ├── rapidjson.h │ │ │ ├── reader.h │ │ │ ├── stringbuffer.h │ │ │ └── writer.h │ ├── Reader │ │ ├── GUIReader.h │ │ ├── SceneReader.h │ │ └── WidgetReader │ │ │ ├── ButtonReader │ │ │ └── ButtonReader.h │ │ │ ├── CheckBoxReader │ │ │ └── CheckBoxReader.h │ │ │ ├── ImageViewReader │ │ │ └── ImageViewReader.h │ │ │ ├── LabelAtlasReader │ │ │ └── LabelAtlasReader.h │ │ │ ├── LabelBMFontReader │ │ │ └── LabelBMFontReader.h │ │ │ ├── LabelReader │ │ │ └── LabelReader.h │ │ │ ├── LayoutReader │ │ │ └── LayoutReader.h │ │ │ ├── ListViewReader │ │ │ └── ListViewReader.h │ │ │ ├── LoadingBarReader │ │ │ └── LoadingBarReader.h │ │ │ ├── PageViewReader │ │ │ └── PageViewReader.h │ │ │ ├── ScrollViewReader │ │ │ └── ScrollViewReader.h │ │ │ ├── SliderReader │ │ │ └── SliderReader.h │ │ │ ├── TextFieldReader │ │ │ └── TextFieldReader.h │ │ │ ├── WidgetReader.h │ │ │ └── WidgetReaderProtocol.h │ └── Trigger │ │ ├── ObjectFactory.h │ │ ├── TriggerBase.h │ │ ├── TriggerMng.h │ │ └── TriggerObj.h │ ├── ExtensionMacros.h │ ├── GUI │ ├── CCControlExtension │ │ ├── CCControl.h │ │ ├── CCControlButton.h │ │ ├── CCControlColourPicker.h │ │ ├── CCControlExtensions.h │ │ ├── CCControlHuePicker.h │ │ ├── CCControlPotentiometer.h │ │ ├── CCControlSaturationBrightnessPicker.h │ │ ├── CCControlSlider.h │ │ ├── CCControlStepper.h │ │ ├── CCControlSwitch.h │ │ ├── CCControlUtils.h │ │ ├── CCInvocation.h │ │ └── CCScale9Sprite.h │ ├── CCEditBox │ │ ├── CCEditBox.h │ │ ├── CCEditBoxImpl.h │ │ ├── CCEditBoxImplAndroid.h │ │ ├── CCEditBoxImplIOS.h │ │ ├── CCEditBoxImplIOS.mm │ │ ├── CCEditBoxImplMac.h │ │ ├── CCEditBoxImplMac.mm │ │ ├── CCEditBoxImplTizen.h │ │ ├── CCEditBoxImplWin.h │ │ └── CCEditBoxImplWp8.h │ └── CCScrollView │ │ ├── CCScrollView.h │ │ ├── CCSorting.h │ │ ├── CCTableView.h │ │ └── CCTableViewCell.h │ ├── LocalStorage │ └── LocalStorage.h │ ├── cocos-ext.h │ ├── network │ ├── HttpClient.h │ ├── HttpRequest.h │ ├── HttpResponse.h │ └── WebSocket.h │ ├── physics_nodes │ ├── CCPhysicsDebugNode.h │ └── CCPhysicsSprite.h │ └── spine │ ├── Animation.h │ ├── AnimationState.h │ ├── AnimationStateData.h │ ├── Atlas.h │ ├── AtlasAttachmentLoader.h │ ├── Attachment.h │ ├── AttachmentLoader.h │ ├── Bone.h │ ├── BoneData.h │ ├── CCSkeleton.h │ ├── CCSkeletonAnimation.h │ ├── Json.h │ ├── RegionAttachment.h │ ├── Skeleton.h │ ├── SkeletonData.h │ ├── SkeletonJson.h │ ├── Skin.h │ ├── Slot.h │ ├── SlotData.h │ ├── extension.h │ ├── spine-cocos2dx.h │ └── spine.h └── lib ├── cappuccino.lib └── libExtensions.lib /DialogBox.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30804.86 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DialogBox", "DialogBox\DialogBox.vcxproj", "{3E19C490-F84B-44FF-8058-E55C4D521E76}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Debug|x64.ActiveCfg = Debug|x64 17 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Debug|x64.Build.0 = Debug|x64 18 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Debug|x86.ActiveCfg = Debug|Win32 19 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Debug|x86.Build.0 = Debug|Win32 20 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Release|x64.ActiveCfg = Release|x64 21 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Release|x64.Build.0 = Release|x64 22 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Release|x86.ActiveCfg = Release|Win32 23 | {3E19C490-F84B-44FF-8058-E55C4D521E76}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {77285168-1610-411D-AF35-02939776F266} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /DialogBox/Dialog.cpp: -------------------------------------------------------------------------------- 1 | #include "Dialog.h" 2 | 3 | void DialogObject::mem_init() { 4 | uintptr_t base = (uintptr_t)GetModuleHandle(0); 5 | DialogObject::init = reinterpret_cast(base + 0x6D2E0); 6 | } 7 | 8 | void DialogLayer::mem_init() { 9 | uintptr_t base = (uintptr_t)GetModuleHandle(0); 10 | DialogLayer::create = reinterpret_cast(base + 0x6D470); 11 | DialogLayer::animateIn = reinterpret_cast(base + 0x6E130); 12 | } 13 | 14 | std::string GetPlayerName() { 15 | size_t base = reinterpret_cast(GetModuleHandle(0)); 16 | uintptr_t AccountManager = *reinterpret_cast(base + 0x3222D8); 17 | 18 | auto name = *reinterpret_cast(AccountManager + 0x108); 19 | 20 | return name; 21 | } 22 | 23 | 24 | CCDialogObject* DialogObject::create(std::string title, std::string text, int type, float text_scale, bool is_unskippable, _ccColor3B color) { 25 | CCDialogObject* obj = new CCDialogObject(); 26 | 27 | int index; 28 | int pos = 0; 29 | std::string username; 30 | 31 | while ((index = text.find("{user}", pos)) != std::string::npos) { 32 | if (username.empty()) { 33 | username = GetPlayerName(); 34 | } 35 | text.replace(index, 6, username); 36 | 37 | pos = index + 1; 38 | } 39 | 40 | 41 | while ((index = title.find("{user}", pos)) != std::string::npos) { 42 | if (username.empty()) { 43 | username = GetPlayerName(); 44 | } 45 | title.replace(index, 6, username); 46 | 47 | pos = index + 1; 48 | } 49 | 50 | init(obj, title, text, type, text_scale, is_unskippable, color); 51 | obj->autorelease(); 52 | 53 | return obj; 54 | } -------------------------------------------------------------------------------- /DialogBox/Dialog.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class CCDialogObject : public cocos2d::CCObject { 6 | protected: 7 | char pad[0x60]; 8 | }; 9 | 10 | using namespace cocos2d; 11 | namespace DialogObject { 12 | inline bool(__thiscall* init)(CCDialogObject* self, std::string title, std::string text, int type, float unknown, bool also_unknown, _ccColor3B textColor); 13 | 14 | CCDialogObject* create(std::string title, std::string text, int type, float text_scale, bool is_unskippable, _ccColor3B color); 15 | 16 | void mem_init(); 17 | } 18 | 19 | namespace DialogLayer { 20 | inline CCLayerColor* (__fastcall* create)(CCObject*, CCArray*, int); 21 | inline CCAction* (__thiscall* animateIn)(CCLayerColor*, int); 22 | void mem_init(); 23 | } 24 | -------------------------------------------------------------------------------- /DialogBox/DialogHandler.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | using namespace cocos2d; 5 | namespace DialogHandler { 6 | void displayFromFile(int); 7 | 8 | void __fastcall hkSchUpdate(cocos2d::CCScheduler* self, void*, float delta); 9 | inline void(__thiscall* schUpdate)(cocos2d::CCScheduler* self, float delta); 10 | 11 | void mem_init(); 12 | } -------------------------------------------------------------------------------- /DialogBox/DialogObject.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | using namespace cocos2d; 6 | 7 | 8 | class AttemptAtReversingDialogObject : public cocos2d::CCObject { 9 | protected: 10 | char pad_0x00[0x60]; // 0x00 11 | 12 | std::string m_content; // 0x32 13 | std::string m_title; // 0x56 14 | int type; // 0x80 15 | _ccColor3B color; // 9x84 16 | char pad_0x87[0x01]; // 0x87 17 | float m_unknown; // 0x88 18 | char pad_0x92[0x04]; // 0x92 19 | bool m_unknown_2; // 0x96 20 | 21 | public: 22 | bool init(std::string title, std::string text, int type, float unknown, bool also_unknown, _ccColor3B textColor) { 23 | uintptr_t base = (uintptr_t)GetModuleHandle(0); 24 | 25 | return reinterpret_cast 26 | (base + 0x6D2E0)(this, title, text, type, unknown, also_unknown, textColor); 27 | } 28 | 29 | static AttemptAtReversingDialogObject* create(std::string title, std::string text, int type, float text_scale, bool is_unskippable, _ccColor3B textColor) { 30 | AttemptAtReversingDialogObject* obj = new AttemptAtReversingDialogObject; 31 | 32 | obj->init(title, text, type, text_scale, is_unskippable, textColor); 33 | obj->autorelease(); 34 | 35 | return obj; 36 | } 37 | }; -------------------------------------------------------------------------------- /DialogBox/dllmain.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "DialogHandler.h" 3 | #include "Dialog.h" 4 | #include "Minhook.h" 5 | 6 | DWORD WINAPI MainThread(LPVOID lpParam) 7 | { 8 | MH_Initialize(); 9 | DialogLayer::mem_init(); 10 | DialogObject::mem_init(); 11 | DialogHandler::mem_init(); 12 | MH_EnableHook(MH_ALL_HOOKS); 13 | 14 | return 1; 15 | } 16 | 17 | BOOL APIENTRY DllMain( HMODULE hModule, 18 | DWORD ul_reason_for_call, 19 | LPVOID lpReserved 20 | ) 21 | { 22 | switch (ul_reason_for_call) 23 | { 24 | case DLL_PROCESS_ATTACH: 25 | CreateThread(nullptr, 0, MainThread, hModule, 0, nullptr); 26 | break; 27 | case DLL_THREAD_ATTACH: 28 | case DLL_THREAD_DETACH: 29 | case DLL_PROCESS_DETACH: 30 | break; 31 | } 32 | return TRUE; 33 | } 34 | 35 | -------------------------------------------------------------------------------- /DialogBox/libMinHook-x86-v141-mtd.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FigmentBoy/DialogHandler/745e70f75576c207d5f7c5a717d7963536435d54/DialogBox/libMinHook-x86-v141-mtd.lib -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DialogHandler 2 | Makes dialog boxes on numpad inputs! Make a dialogs folder in your Geometry Dash folder, then put the number as the title of a json file (`1.json`, `2.json`, etc.). Then, when you press that number on the **numpad** the dialog box will show up! 3 | 4 | ### JSON Syntax 5 | ```json 6 | { 7 | "color": 2, 8 | "lines": [ 9 | { 10 | "portrait": 12, 11 | "title": "Rick", 12 | "message": "We're no strangers to love, {user}!" 13 | }, 14 | { 15 | "portrait": 13, 16 | "title": "Rick", 17 | "message": "You know the rules, and so do I!" 18 | }, 19 | ] 20 | } 21 | ``` 22 | 23 | ### Enums 24 | The portrait enum is based on png files in your Geometry Dash Resources folder. Look for `dialogIcon_001` through `dialogIcon_025` in that folder. The enum corresponds to the number at the end of the png name. 25 | 26 | The color enum is as follows 27 | | Key | Value | 28 | |-----|--------------| 29 | | 1 | Orange/Brown | 30 | | 2 | Blue | 31 | | 3 | Green | 32 | | 4 | Purple | 33 | | 5 | Grey/Black | 34 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/actions/CCActionPageTurn3D.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | Copyright (c) 2009 Sindesso Pty Ltd http://www.sindesso.com/ 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | #ifndef __ACTION_CCPAGETURN3D_ACTION_H__ 26 | #define __ACTION_CCPAGETURN3D_ACTION_H__ 27 | 28 | #include "CCActionGrid3D.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | /** 33 | * @addtogroup actions 34 | * @{ 35 | */ 36 | 37 | /** 38 | @brief This action simulates a page turn from the bottom right hand corner of the screen. 39 | It's not much use by itself but is used by the PageTurnTransition. 40 | 41 | Based on an original paper by L Hong et al. 42 | http://www.parc.com/publication/1638/turning-pages-of-3d-electronic-books.html 43 | 44 | @since v0.8.2 45 | */ 46 | class CC_DLL CCPageTurn3D : public CCGrid3DAction 47 | { 48 | public: 49 | virtual void update(float time); 50 | 51 | public: 52 | 53 | /** create the action */ 54 | static CCPageTurn3D* create(float duration, const CCSize& gridSize); 55 | }; 56 | 57 | // end of actions group 58 | /// @} 59 | 60 | NS_CC_END 61 | 62 | #endif // __ACTION_CCPAGETURN3D_ACTION_H__ 63 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/base_nodes/CCGLBufferedNode.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 Zynga Inc. 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | #ifndef __CC_GL_BUFFERED_NODE__ 25 | #define __CC_GL_BUFFERED_NODE__ 26 | 27 | #include 28 | 29 | class CCGLBufferedNode 30 | { 31 | public: 32 | CCGLBufferedNode(void); 33 | 34 | /** 35 | * Load the given data into this CCNode's GL Buffer. Needed for WebGL, as it does not support client-side arrays. 36 | */ 37 | void setGLBufferData(void *buf, GLuint bufSize, int slot); 38 | void setGLIndexData(void *buf, GLuint bufSize, int slot); 39 | 40 | // We allocate 4 buffer objs per node, and index into them as slots. 41 | #define BUFFER_SLOTS 4 42 | GLuint m_bufferObject[BUFFER_SLOTS]; 43 | GLuint m_bufferSize[BUFFER_SLOTS]; 44 | 45 | GLuint m_indexBufferObject[BUFFER_SLOTS]; 46 | GLuint m_indexBufferSize[BUFFER_SLOTS]; 47 | }; 48 | #endif // __CC_GL_BUFFERED_NODE__ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/ccFPSImages.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2012 Zynga Inc. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | extern unsigned char cc_fps_images_png[]; 30 | unsigned int cc_fps_images_len(void); 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/cocoa/CCBool.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCBOOL_H__ 26 | #define __CCBOOL_H__ 27 | 28 | #include "CCObject.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | /** 33 | * @addtogroup data_structures 34 | * @{ 35 | * @js NA 36 | * @lua NA 37 | */ 38 | 39 | class CC_DLL CCBool : public CCObject 40 | { 41 | public: 42 | CCBool(bool v) 43 | : m_bValue(v) {} 44 | bool getValue() const {return m_bValue;} 45 | 46 | static CCBool* create(bool v) 47 | { 48 | CCBool* pRet = new CCBool(v); 49 | if (pRet) 50 | { 51 | pRet->autorelease(); 52 | } 53 | return pRet; 54 | } 55 | 56 | /* override functions */ 57 | virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); } 58 | 59 | private: 60 | bool m_bValue; 61 | }; 62 | 63 | // end of data_structure group 64 | /// @} 65 | 66 | NS_CC_END 67 | 68 | #endif /* __CCBOOL_H__ */ 69 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/cocoa/CCDouble.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCDOUBLE_H__ 26 | #define __CCDOUBLE_H__ 27 | 28 | #include "CCObject.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | /** 33 | * @addtogroup data_structures 34 | * @{ 35 | * @js NA 36 | * @lua NA 37 | */ 38 | 39 | class CC_DLL CCDouble : public CCObject 40 | { 41 | public: 42 | CCDouble(double v) 43 | : m_dValue(v) {} 44 | double getValue() const {return m_dValue;} 45 | 46 | static CCDouble* create(double v) 47 | { 48 | CCDouble* pRet = new CCDouble(v); 49 | if (pRet) 50 | { 51 | pRet->autorelease(); 52 | } 53 | return pRet; 54 | } 55 | 56 | /* override functions */ 57 | virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); } 58 | 59 | private: 60 | double m_dValue; 61 | }; 62 | 63 | // end of data_structure group 64 | /// @} 65 | 66 | NS_CC_END 67 | 68 | #endif /* __CCDOUBLE_H__ */ 69 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/cocoa/CCFloat.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCFLOAT_H__ 26 | #define __CCFLOAT_H__ 27 | 28 | #include "CCObject.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | /** 33 | * @addtogroup data_structures 34 | * @{ 35 | * @js NA 36 | * @lua NA 37 | */ 38 | 39 | class CC_DLL CCFloat : public CCObject 40 | { 41 | public: 42 | CCFloat(float v) 43 | : m_fValue(v) {} 44 | float getValue() const {return m_fValue;} 45 | 46 | static CCFloat* create(float v) 47 | { 48 | CCFloat* pRet = new CCFloat(v); 49 | if (pRet) 50 | { 51 | pRet->autorelease(); 52 | } 53 | return pRet; 54 | } 55 | 56 | /* override functions */ 57 | virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); } 58 | 59 | private: 60 | float m_fValue; 61 | }; 62 | 63 | // end of data_structure group 64 | /// @} 65 | 66 | NS_CC_END 67 | 68 | #endif /* __CCFLOAT_H__ */ 69 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/cocoa/CCInteger.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCINTEGER_H__ 2 | #define __CCINTEGER_H__ 3 | 4 | #include "CCObject.h" 5 | 6 | NS_CC_BEGIN 7 | 8 | /** 9 | * @addtogroup data_structures 10 | * @{ 11 | * @js NA 12 | */ 13 | 14 | class CC_DLL CCInteger : public CCObject 15 | { 16 | public: 17 | CCInteger(int v) 18 | : m_nValue(v) {} 19 | int getValue() const {return m_nValue;} 20 | 21 | static CCInteger* create(int v) 22 | { 23 | CCInteger* pRet = new CCInteger(v); 24 | pRet->autorelease(); 25 | return pRet; 26 | } 27 | 28 | /* override functions 29 | * @lua NA 30 | */ 31 | virtual void acceptVisitor(CCDataVisitor &visitor) { visitor.visit(this); } 32 | 33 | private: 34 | int m_nValue; 35 | }; 36 | 37 | // end of data_structure group 38 | /// @} 39 | 40 | NS_CC_END 41 | 42 | #endif /* __CCINTEGER_H__ */ 43 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/cocoa/CCZone.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CC_ZONE_H__ 26 | #define __CC_ZONE_H__ 27 | 28 | #include "platform/CCPlatformMacros.h" 29 | #include 30 | 31 | NS_CC_BEGIN 32 | 33 | /** 34 | * @addtogroup data_structures 35 | * @{ 36 | */ 37 | 38 | class CCObject; 39 | /** 40 | * @js NA 41 | * @lua NA 42 | */ 43 | class CC_DLL CCZone 44 | { 45 | public: 46 | CCZone(CCObject *pObject = NULL); 47 | 48 | public: 49 | CCObject *m_pCopyObject; 50 | }; 51 | 52 | // end of data_structure group 53 | /// @} 54 | 55 | NS_CC_END 56 | 57 | #endif // __CC_ZONE_H__ 58 | 59 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCKeyboardDelegate.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCKEYBOARD_DELEGATE_H 2 | #define __CCKEYBOARD_DELEGATE_H 3 | 4 | #include 5 | NS_CC_BEGIN 6 | 7 | enum enumKeyCodes; 8 | class CC_DLL CCKeyboardDelegate { 9 | public: 10 | virtual void keyDown(enumKeyCodes); 11 | virtual void keyUp(enumKeyCodes); 12 | }; 13 | 14 | NS_CC_END 15 | #endif -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/custom/Delegates/CCMouseDelegate.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCMOUSE_DELEGATE_H 2 | #define __CCMOUSE_DELEGATE_H 3 | 4 | #include 5 | NS_CC_BEGIN 6 | 7 | class CC_DLL CCMouseDelegate { 8 | public: 9 | virtual void rightKeyDown(void); 10 | virtual void rightKeyUp(void); 11 | virtual void scrollWheel(float, float); 12 | }; 13 | 14 | NS_CC_END 15 | #endif -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.cpp: -------------------------------------------------------------------------------- 1 | #include "CCMenuItemSpriteExtra.h" 2 | 3 | void CCMenuItemSpriteExtra::selected(){ 4 | CCMenuItemSprite::selected(); 5 | auto resize = cocos2d::CCScaleTo::create(0.3, m_sizeMult * m_origScale); 6 | auto bounce = cocos2d::CCEaseBounceOut::create(resize); 7 | this->runAction(bounce); 8 | } 9 | 10 | void CCMenuItemSpriteExtra::unselected(){ 11 | CCMenuItemSprite::unselected(); 12 | auto resize = cocos2d::CCScaleTo::create(0.3, m_origScale); 13 | auto bounce = cocos2d::CCEaseBounceOut::create(resize); 14 | this->runAction(bounce); 15 | } 16 | 17 | void CCMenuItemSpriteExtra::activate () { 18 | CCMenuItemSprite::activate(); 19 | this->stopAllActions(); 20 | this->setScale(m_origScale); 21 | } 22 | 23 | void CCMenuItemSpriteExtra::setScale(float scale) { 24 | CCMenuItemSprite::setScale(scale); 25 | m_origScale = scale; 26 | } 27 | 28 | CCMenuItemSpriteExtra* CCMenuItemSpriteExtra::create(CCNode *normalSprite, CCNode *selectedSprite, CCObject *target, cocos2d::SEL_MenuHandler selector){ 29 | auto spriteItem = new CCMenuItemSpriteExtra; 30 | if (spriteItem && spriteItem->initWithNormalSprite(normalSprite, selectedSprite, nullptr, target, selector)) 31 | spriteItem->autorelease(); 32 | else { 33 | delete spriteItem; 34 | spriteItem = nullptr; 35 | } 36 | return spriteItem; 37 | 38 | } 39 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCMenuItemSpriteExtra/CCMenuItemSpriteExtra.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class CCMenuItemSpriteExtra : public cocos2d::CCMenuItemSprite{ 5 | private: 6 | float m_sizeMult = 1.25; 7 | float m_origScale = 1.f; 8 | public: 9 | virtual void selected() override; 10 | virtual void unselected() override; 11 | virtual void activate() override; 12 | virtual void setScale(float scale) override; 13 | static CCMenuItemSpriteExtra* create(CCNode *normalSprite, CCNode *selectedSprite, CCObject *target, cocos2d::SEL_MenuHandler selector); 14 | void setSizeMult(float multiplier) { m_sizeMult = multiplier; } 15 | }; 16 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/custom/Sprites/CCSpriteExtra/CCSpriteExtra.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCSPRITE_EXTRA_H 2 | #define __CCSPRITE_EXTRA_H 3 | 4 | #include 5 | NS_CC_BEGIN 6 | 7 | class CC_DLL CCSpriteExtra : public CCSprite{ 8 | public: 9 | ROB_CC_SYNTHESIZE(float, m_fXOffset, XOffset); 10 | ROB_CC_SYNTHESIZE(float, m_fYOffset, YOffset); 11 | }; 12 | 13 | NS_CC_END 14 | #endif -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/effects/CCGrabber.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | Copyright (c) 2009 On-Core 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | #ifndef __EFFECTS_CCGRABBER_H__ 26 | #define __EFFECTS_CCGRABBER_H__ 27 | 28 | #include "CCConfiguration.h" 29 | #include "cocoa/CCObject.h" 30 | #include "CCGL.h" 31 | 32 | NS_CC_BEGIN 33 | 34 | class CCTexture2D; 35 | 36 | /** 37 | * @addtogroup effects 38 | * @{ 39 | */ 40 | 41 | /** FBO class that grabs the the contents of the screen 42 | * @js NA 43 | * @lua NA 44 | */ 45 | class CCGrabber : public CCObject 46 | { 47 | public: 48 | CCGrabber(void); 49 | ~CCGrabber(void); 50 | 51 | void grab(CCTexture2D *pTexture); 52 | void beforeRender(CCTexture2D *pTexture); 53 | void afterRender(CCTexture2D *pTexture); 54 | 55 | protected: 56 | GLuint m_FBO; 57 | GLint m_oldFBO; 58 | GLfloat m_oldClearColor[4]; 59 | }; 60 | 61 | // end of effects group 62 | /// @} 63 | 64 | NS_CC_END 65 | 66 | #endif // __EFFECTS_CCGRABBER_H__ 67 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/include/CCEventType.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __CCEVENT_TYPE_H__ 3 | #define __CCEVENT_TYPE_H__ 4 | 5 | /** 6 | * This header is used for defining event types using in CCNotificationCenter 7 | */ 8 | 9 | // The application will come to foreground. 10 | // This message is used for reloading resources before come to foreground on Android. 11 | // This message is posted in main.cpp. 12 | #define EVENT_COME_TO_FOREGROUND "event_come_to_foreground" 13 | 14 | // The application will come to background. 15 | // This message is used for doing something before coming to background, such as save CCRenderTexture. 16 | // This message is posted in cocos2dx/platform/android/jni/MessageJni.cpp. 17 | #define EVENT_COME_TO_BACKGROUND "event_come_to_background" 18 | 19 | #endif // __CCEVENT_TYPE_H__ 20 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/include/ccTypeInfo.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2012 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef cocos2dx_ccTypeInfo_h 26 | #define cocos2dx_ccTypeInfo_h 27 | 28 | #include "platform/CCPlatformMacros.h" 29 | 30 | #include 31 | #include 32 | #include 33 | 34 | NS_CC_BEGIN 35 | 36 | class TypeInfo 37 | { 38 | public: 39 | virtual long getClassTypeInfo() = 0; 40 | }; 41 | 42 | static inline unsigned int getHashCodeByString(const char *key) 43 | { 44 | unsigned int len = strlen(key); 45 | const char *end=key+len; 46 | unsigned int hash; 47 | 48 | for (hash = 0; key < end; key++) 49 | { 50 | hash *= 16777619; 51 | hash ^= (unsigned int) (unsigned char) toupper(*key); 52 | } 53 | return (hash); 54 | } 55 | NS_CC_END 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/GL/mat4stack.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2008, Luke Benstead. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 21 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | */ 25 | 26 | #ifndef C_STACK_H_INCLUDED 27 | #define C_STACK_H_INCLUDED 28 | 29 | #include "../mat4.h" 30 | 31 | typedef struct km_mat4_stack { 32 | int capacity; //The total item capacity 33 | int item_count; //The number of items 34 | kmMat4* top; 35 | kmMat4* stack; 36 | } km_mat4_stack; 37 | 38 | #ifdef __cplusplus 39 | extern "C" { 40 | #endif 41 | 42 | void km_mat4_stack_initialize(km_mat4_stack* stack); 43 | void km_mat4_stack_push(km_mat4_stack* stack, const kmMat4* item); 44 | void km_mat4_stack_pop(km_mat4_stack* stack, kmMat4* pOut); 45 | void km_mat4_stack_release(km_mat4_stack* stack); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif // C_STACK_H_INCLUDED 52 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/aabb.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2008, Luke Benstead. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 21 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | */ 25 | 26 | #ifndef KAZMATH_AABB_H_INCLUDED 27 | #define KAZMATH_AABB_H_INCLUDED 28 | 29 | #include "platform/CCPlatformMacros.h" 30 | #include "vec3.h" 31 | #include "utility.h" 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /** 38 | * A structure that represents an axis-aligned 39 | * bounding box. 40 | */ 41 | typedef struct kmAABB { 42 | kmVec3 min; /** The max corner of the box */ 43 | kmVec3 max; /** The min corner of the box */ 44 | } kmAABB; 45 | 46 | CC_DLL const int kmAABBContainsPoint(const kmVec3* pPoint, const kmAABB* pBox); 47 | CC_DLL kmAABB* const kmAABBAssign(kmAABB* pOut, const kmAABB* pIn); 48 | CC_DLL kmAABB* const kmAABBScale(kmAABB* pOut, const kmAABB* pIn, kmScalar s); 49 | 50 | #ifdef __cplusplus 51 | } 52 | #endif 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/kazmath.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2008, Luke Benstead. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 21 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | */ 25 | 26 | #ifndef KAZMATH_H_INCLUDED 27 | #define KAZMATH_H_INCLUDED 28 | 29 | #include "vec2.h" 30 | #include "vec3.h" 31 | #include "mat3.h" 32 | #include "mat4.h" 33 | #include "utility.h" 34 | #include "quaternion.h" 35 | #include "plane.h" 36 | #include "aabb.h" 37 | #include "ray2.h" 38 | 39 | #endif // KAZMATH_H_INCLUDED 40 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/neon_matrix_impl.h: -------------------------------------------------------------------------------- 1 | /* 2 | NEON math library for the iPhone / iPod touch 3 | 4 | Copyright (c) 2009 Justin Saunders 5 | 6 | This software is provided 'as-is', without any express or implied warranty. 7 | In no event will the authors be held liable for any damages arising 8 | from the use of this software. 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it freely, 11 | subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must 14 | not claim that you wrote the original software. If you use this 15 | software in a product, an acknowledgment in the product documentation 16 | would be appreciated but is not required. 17 | 18 | 2. Altered source versions must be plainly marked as such, and must 19 | not be misrepresented as being the original software. 20 | 21 | 3. This notice may not be removed or altered from any source distribution. 22 | */ 23 | 24 | #ifndef __NEON_MATRIX_IMPL_H__ 25 | #define __NEON_MATRIX_IMPL_H__ 26 | 27 | #ifdef __arm__ 28 | #if defined(__QNX__) || defined(ANDROID) || defined(I3D_ARCH_ARM) || defined(__native_client__) || defined(TIZEN) // MARMALADE CHANGE: Added for Marmalade support 29 | // blackberry and android don't have arm/arch.h but it defines __arm__ 30 | #else 31 | #include "arm/arch.h" 32 | #endif 33 | #endif // __arm__ 34 | 35 | // Matrices are assumed to be stored in column major format according to OpenGL 36 | // specification. 37 | 38 | // Multiplies two 4x4 matrices (a,b) outputting a 4x4 matrix (output) 39 | void NEON_Matrix4Mul(const float* a, const float* b, float* output ); 40 | 41 | // Multiplies a 4x4 matrix (m) with a vector 4 (v), outputting a vector 4 42 | void NEON_Matrix4Vector4Mul(const float* m, const float* v, float* output); 43 | 44 | 45 | #endif // __NEON_MATRIX_IMPL_H__ 46 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/kazmath/include/kazmath/ray2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011, Luke Benstead. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 21 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | */ 25 | 26 | #ifndef RAY_2_H 27 | #define RAY_2_H 28 | 29 | #include "platform/CCPlatformMacros.h" 30 | #include "utility.h" 31 | #include "vec2.h" 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | typedef struct kmRay2 { 38 | kmVec2 start; 39 | kmVec2 dir; 40 | } kmRay2; 41 | 42 | CC_DLL void kmRay2Fill(kmRay2* ray, kmScalar px, kmScalar py, kmScalar vx, kmScalar vy); 43 | CC_DLL kmBool kmRay2IntersectLineSegment(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, kmVec2* intersection); 44 | CC_DLL kmBool kmRay2IntersectTriangle(const kmRay2* ray, const kmVec2* p1, const kmVec2* p2, const kmVec2* p3, kmVec2* intersection, kmVec2* normal_out); 45 | CC_DLL kmBool kmRay2IntersectCircle(const kmRay2* ray, const kmVec2 centre, const kmScalar radius, kmVec2* intersection); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/kazmath/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | #ADD_LIBRARY(Kazmath STATIC ${KAZMATH_SRCS}) 3 | #INSTALL(TARGETS Kazmath ARCHIVE DESTINATION lib) 4 | 5 | INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/include ) 6 | 7 | ADD_LIBRARY(kazmath STATIC ${KAZMATH_SOURCES}) 8 | INSTALL(TARGETS kazmath ARCHIVE DESTINATION lib) 9 | 10 | #ADD_LIBRARY(KazmathGL STATIC ${GL_UTILS_SRCS}) 11 | #INSTALL(TARGETS KazmathGL ARCHIVE DESTINATION lib) 12 | 13 | INSTALL(FILES ${KAZMATH_HEADERS} DESTINATION include/kazmath) 14 | INSTALL(FILES ${GL_UTILS_HEADERS} DESTINATION include/kazmath/GL) 15 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/kazmath/src/utility.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2008, Luke Benstead. 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 21 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | */ 25 | 26 | #include "kazmath/utility.h" 27 | 28 | /** 29 | * Returns the square of s (e.g. s*s) 30 | */ 31 | kmScalar kmSQR(kmScalar s) { 32 | return s*s; 33 | } 34 | 35 | /** 36 | * Returns degrees as radians. 37 | */ 38 | kmScalar kmDegreesToRadians(kmScalar degrees) { 39 | return degrees * kmPIOver180; 40 | } 41 | 42 | /** 43 | * Returns radians as degrees 44 | */ 45 | kmScalar kmRadiansToDegrees(kmScalar radians) { 46 | return radians * kmPIUnder180; 47 | } 48 | 49 | kmScalar kmMin(kmScalar lhs, kmScalar rhs) { 50 | return (lhs < rhs)? lhs : rhs; 51 | } 52 | 53 | kmScalar kmMax(kmScalar lhs, kmScalar rhs) { 54 | return (lhs > rhs)? lhs : rhs; 55 | } 56 | 57 | kmBool kmAlmostEqual(kmScalar lhs, kmScalar rhs) { 58 | return (lhs + kmEpsilon > rhs && lhs - kmEpsilon < rhs); 59 | } 60 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/CCAccelerometerDelegate.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCACCELEROMETER_DELEGATE_H__ 26 | #define __CCACCELEROMETER_DELEGATE_H__ 27 | 28 | #include "CCCommon.h" 29 | 30 | NS_CC_BEGIN 31 | /** 32 | @brief The device accelerometer reports values for each axis in units of g-force 33 | */ 34 | class CCAcceleration 35 | { 36 | public: 37 | double x; 38 | double y; 39 | double z; 40 | 41 | double timestamp; 42 | }; 43 | 44 | /** 45 | @brief 46 | The CCAccelerometerDelegate defines a single method for 47 | receiving acceleration-related data from the system. 48 | @js NA 49 | @lua NA 50 | */ 51 | class CC_DLL CCAccelerometerDelegate 52 | { 53 | public: 54 | virtual void didAccelerate(CCAcceleration* pAccelerationValue) {CC_UNUSED_PARAM(pAccelerationValue);} 55 | }; 56 | 57 | NS_CC_END 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/CCDevice.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCDEVICE_H__ 2 | #define __CCDEVICE_H__ 3 | 4 | #include "CCPlatformMacros.h" 5 | 6 | NS_CC_BEGIN 7 | /** 8 | @js NA 9 | @lua NA 10 | */ 11 | class CC_DLL CCDevice 12 | { 13 | private: 14 | CCDevice(); 15 | public: 16 | /** 17 | * Gets the DPI of device 18 | * @return The DPI of device. 19 | */ 20 | static int getDPI(); 21 | }; 22 | 23 | 24 | NS_CC_END 25 | 26 | #endif /* __CCDEVICE_H__ */ 27 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/CCThread.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CC_PLATFORM_THREAD_H__ 26 | #define __CC_PLATFORM_THREAD_H__ 27 | 28 | #include "CCCommon.h" 29 | #include "CCPlatformMacros.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | /** 34 | * @addtogroup platform 35 | * @{ 36 | */ 37 | 38 | /* On iOS, should create autorelease pool when create a new thread 39 | * and release it when the thread end. 40 | * @js NA 41 | * @lua NA 42 | */ 43 | class CC_DLL CCThread 44 | { 45 | public: 46 | CCThread() : m_pAutoreasePool(0) {} 47 | ~CCThread(); 48 | 49 | void createAutoreleasePool(); 50 | 51 | private: 52 | void *m_pAutoreasePool; 53 | }; 54 | 55 | // end of platform group 56 | /// @} 57 | 58 | NS_CC_END 59 | 60 | #endif // __CC_PLATFORM_THREAD_H__ 61 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/platform.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __PLATFORM_H__ 26 | #define __PLATFORM_H__ 27 | 28 | #include "CCThread.h" 29 | #include "CCPlatformMacros.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | /** 34 | * @addtogroup platform 35 | * @{ 36 | */ 37 | 38 | struct CC_DLL cc_timeval 39 | { 40 | #ifdef __native_client__ 41 | time_t tv_sec; // seconds 42 | #else 43 | long tv_sec; // seconds 44 | #endif 45 | int tv_usec; // microSeconds 46 | }; 47 | 48 | class CC_DLL CCTime 49 | { 50 | public: 51 | static int gettimeofdayCocos2d(struct cc_timeval *tp, void *tzp); 52 | static double timersubCocos2d(struct cc_timeval *start, struct cc_timeval *end); 53 | }; 54 | 55 | // end of platform group 56 | /// @} 57 | 58 | NS_CC_END 59 | 60 | #endif // __PLATFORM_H__ 61 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/OGLES/GL/glew.h.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | ecd17c38e19265c7777dcd20993d744992f163a7 -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/curl/stdcheaders.h: -------------------------------------------------------------------------------- 1 | #ifndef __STDC_HEADERS_H 2 | #define __STDC_HEADERS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2010, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | #include 26 | 27 | size_t fread (void *, size_t, size_t, FILE *); 28 | size_t fwrite (const void *, size_t, size_t, FILE *); 29 | 30 | int strcasecmp(const char *, const char *); 31 | int strncasecmp(const char *, const char *, size_t); 32 | 33 | #endif /* __STDC_HEADERS_H */ 34 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libjpeg/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.vc --- jconfig.h for Microsoft Visual C++ on Windows 95 or NT. */ 2 | /* see jconfig.txt for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */ 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | /* Define "boolean" as unsigned char, not int, per Windows custom */ 19 | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ 20 | typedef unsigned char boolean; 21 | #endif 22 | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ 23 | 24 | 25 | #ifdef JPEG_INTERNALS 26 | 27 | #undef RIGHT_SHIFT_IS_UNSIGNED 28 | 29 | #endif /* JPEG_INTERNALS */ 30 | 31 | #ifdef JPEG_CJPEG_DJPEG 32 | 33 | #define BMP_SUPPORTED /* BMP image file format */ 34 | #define GIF_SUPPORTED /* GIF image file format */ 35 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 36 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 37 | #define TARGA_SUPPORTED /* Targa image file format */ 38 | 39 | #define TWO_FILE_COMMANDLINE /* optional */ 40 | #define USE_SETMODE /* Microsoft has setmode() */ 41 | #undef NEED_SIGNAL_CATCHER 42 | #undef DONT_USE_B_MODE 43 | #undef PROGRESS_REPORT /* optional */ 44 | 45 | #endif /* JPEG_CJPEG_DJPEG */ 46 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libjpeg/jconfig_linux.h: -------------------------------------------------------------------------------- 1 | /* jconfig.h. Generated from jconfig.cfg by configure. */ 2 | /* jconfig.cfg --- source file edited by configure script */ 3 | /* see jconfig.txt for explanations */ 4 | #ifndef __JCONFIG_LINUX_H__ 5 | #define __JCONFIG_LINUX_H__ 6 | 7 | #define HAVE_PROTOTYPES 1 8 | #define HAVE_UNSIGNED_CHAR 1 9 | #define HAVE_UNSIGNED_SHORT 1 10 | /* #undef void */ 11 | /* #undef const */ 12 | /* #undef CHAR_IS_UNSIGNED */ 13 | #define HAVE_STDDEF_H 1 14 | #define HAVE_STDLIB_H 1 15 | #define HAVE_LOCALE_H 1 16 | /* #undef NEED_BSD_STRINGS */ 17 | /* #undef NEED_SYS_TYPES_H */ 18 | /* #undef NEED_FAR_POINTERS */ 19 | /* #undef NEED_SHORT_EXTERNAL_NAMES */ 20 | /* Define this if you get warnings about undefined structures. */ 21 | /* #undef INCOMPLETE_TYPES_BROKEN */ 22 | 23 | /* Define "boolean" as unsigned char, not int, on Windows systems. */ 24 | #ifdef _WIN32 25 | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ 26 | typedef unsigned char boolean; 27 | #endif 28 | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ 29 | #endif 30 | 31 | #ifdef JPEG_INTERNALS 32 | 33 | /* #undef RIGHT_SHIFT_IS_UNSIGNED */ 34 | #define INLINE __inline__ 35 | /* These are for configuring the JPEG memory manager. */ 36 | /* #undef DEFAULT_MAX_MEM */ 37 | /* #undef NO_MKTEMP */ 38 | 39 | #endif /* JPEG_INTERNALS */ 40 | 41 | #ifdef JPEG_CJPEG_DJPEG 42 | 43 | #define BMP_SUPPORTED /* BMP image file format */ 44 | #define GIF_SUPPORTED /* GIF image file format */ 45 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 46 | /* #undef RLE_SUPPORTED */ 47 | #define TARGA_SUPPORTED /* Targa image file format */ 48 | 49 | /* #undef TWO_FILE_COMMANDLINE */ 50 | /* #undef NEED_SIGNAL_CATCHER */ 51 | /* #undef DONT_USE_B_MODE */ 52 | 53 | /* Define this if you want percent-done progress reports from cjpeg/djpeg. */ 54 | /* #undef PROGRESS_REPORT */ 55 | 56 | #endif /* JPEG_CJPEG_DJPEG */ 57 | 58 | #endif // __JCONFIG_LINUX_H__ -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libjpeg/jconfig_win.h: -------------------------------------------------------------------------------- 1 | /* jconfig.vc --- jconfig.h for Microsoft Visual C++ on Windows 95 or NT. */ 2 | /* see jconfig.txt for explanations */ 3 | #ifndef __JCONFIG_WIN_H__ 4 | #define __JCONFIG_WIN_H__ 5 | 6 | #define HAVE_PROTOTYPES 7 | #define HAVE_UNSIGNED_CHAR 8 | #define HAVE_UNSIGNED_SHORT 9 | /* #define void char */ 10 | /* #define const */ 11 | #undef CHAR_IS_UNSIGNED 12 | #define HAVE_STDDEF_H 13 | #define HAVE_STDLIB_H 14 | #undef NEED_BSD_STRINGS 15 | #undef NEED_SYS_TYPES_H 16 | #undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */ 17 | #undef NEED_SHORT_EXTERNAL_NAMES 18 | #undef INCOMPLETE_TYPES_BROKEN 19 | 20 | /* Define "boolean" as unsigned char, not int, per Windows custom */ 21 | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ 22 | typedef unsigned char boolean; 23 | #endif 24 | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ 25 | 26 | 27 | #ifdef JPEG_INTERNALS 28 | 29 | #undef RIGHT_SHIFT_IS_UNSIGNED 30 | 31 | #endif /* JPEG_INTERNALS */ 32 | 33 | #ifdef JPEG_CJPEG_DJPEG 34 | 35 | #define BMP_SUPPORTED /* BMP image file format */ 36 | #define GIF_SUPPORTED /* GIF image file format */ 37 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 38 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 39 | #define TARGA_SUPPORTED /* Targa image file format */ 40 | 41 | #define TWO_FILE_COMMANDLINE /* optional */ 42 | #define USE_SETMODE /* Microsoft has setmode() */ 43 | #undef NEED_SIGNAL_CATCHER 44 | #undef DONT_USE_B_MODE 45 | #undef PROGRESS_REPORT /* optional */ 46 | 47 | #endif /* JPEG_CJPEG_DJPEG */ 48 | 49 | #endif // __JCONFIG_WIN_H__ 50 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libpng/png.h.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | 643b7d7658d92033567b857d7e4cee5f1e22ba6a -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/glew32.dll.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | cbce7da7692ddd7eb16880ec7b05e0faa8139c1a -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/glew32.lib.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | 03be6ad746e36147d633ec0e6a55e6bdb30a3a9d -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/iconv.dll.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | df718829fc0141a05d8a2b2dee34b24a0f61bb2c -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/libcurl.dll.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | 9f7be42cbdf2ecadd9209f4c0e1b0b9359bba4c8 -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/libjpeg.lib.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | 8b248b13bee6428a3dd5c23d276c7d67d14a7c29 -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/libpng.lib.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | 3563d99402fdc14accccc23688caa88b545fc439 -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/libtiff.dll.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | b93dbf63b6d3b716e3fa8d261ea7fda90117e4bf -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libraries/libwebp.lib.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | 57782b915d0ed9f5a96dabe430122d7d04dbff36 -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libtiff/tiffvers.h: -------------------------------------------------------------------------------- 1 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.0.1\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc." 2 | /* 3 | * This define can be used in code that requires 4 | * compilation-related definitions specific to a 5 | * version or versions of the library. Runtime 6 | * version checking should be done based on the 7 | * string returned by TIFFGetVersion. 8 | */ 9 | #define TIFFLIB_VERSION 20120218 10 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/libwebp/types.h: -------------------------------------------------------------------------------- 1 | // Copyright 2010 Google Inc. All Rights Reserved. 2 | // 3 | // This code is licensed under the same terms as WebM: 4 | // Software License Agreement: http://www.webmproject.org/license/software/ 5 | // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ 6 | // ----------------------------------------------------------------------------- 7 | // 8 | // Common types 9 | // 10 | // Author: Skal (pascal.massimino@gmail.com) 11 | 12 | #ifndef WEBP_WEBP_TYPES_H_ 13 | #define WEBP_WEBP_TYPES_H_ 14 | 15 | #include // for size_t 16 | 17 | #ifndef _MSC_VER 18 | #include 19 | #ifdef __STRICT_ANSI__ 20 | #define WEBP_INLINE 21 | #else /* __STRICT_ANSI__ */ 22 | #define WEBP_INLINE inline 23 | #endif 24 | #else 25 | typedef signed char int8_t; 26 | typedef unsigned char uint8_t; 27 | typedef signed short int16_t; 28 | typedef unsigned short uint16_t; 29 | typedef signed int int32_t; 30 | typedef unsigned int uint32_t; 31 | typedef unsigned long long int uint64_t; 32 | typedef long long int int64_t; 33 | #define WEBP_INLINE __forceinline 34 | #endif /* _MSC_VER */ 35 | 36 | #ifndef WEBP_EXTERN 37 | // This explicitly marks library functions and allows for changing the 38 | // signature for e.g., Windows DLL builds. 39 | #define WEBP_EXTERN(type) extern type 40 | #endif /* WEBP_EXTERN */ 41 | 42 | // Macro to check ABI compatibility (same major revision number) 43 | #define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8)) 44 | 45 | #endif /* WEBP_WEBP_TYPES_H_ */ 46 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/third_party_versions.txt: -------------------------------------------------------------------------------- 1 | iconv 1.9.2 2 | libjpeg 8b 3 | libpng 1.4.5beta04 4 | libxml2 2.7.7 5 | OGLES 2.08.28.0634 6 | zlib 1.2.5 7 | pthread 2.8.0 8 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/win32/CCAccelerometer.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __PLATFORM_WIN32_UIACCELEROMETER_H__ 26 | #define __PLATFORM_WIN32_UIACCELEROMETER_H__ 27 | 28 | #include "platform/CCAccelerometerDelegate.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | class CC_DLL CCAccelerometer 33 | { 34 | public: 35 | CCAccelerometer(); 36 | ~CCAccelerometer(); 37 | 38 | void setDelegate(CCAccelerometerDelegate* pDelegate); 39 | void setAccelerometerInterval(float interval); 40 | void update( double x,double y,double z,double timestamp ); 41 | private: 42 | CCAcceleration m_obAccelerationValue; 43 | CCAccelerometerDelegate* m_pAccelDelegate; 44 | }; 45 | 46 | NS_CC_END 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/win32/CCApplication.h: -------------------------------------------------------------------------------- 1 | #ifndef __CC_APPLICATION_WIN32_H__ 2 | #define __CC_APPLICATION_WIN32_H__ 3 | 4 | #include "CCStdC.h" 5 | #include "platform/CCCommon.h" 6 | #include "platform/CCApplicationProtocol.h" 7 | #include 8 | 9 | NS_CC_BEGIN 10 | 11 | class CCRect; 12 | 13 | class CC_DLL CCApplication : public CCApplicationProtocol 14 | { 15 | public: 16 | CCApplication(); 17 | virtual ~CCApplication(); 18 | 19 | /** 20 | @brief Run the message loop. 21 | */ 22 | virtual int run(); 23 | 24 | /** 25 | @brief Get current applicaiton instance. 26 | @return Current application instance pointer. 27 | */ 28 | static CCApplication* sharedApplication(); 29 | 30 | /* override functions */ 31 | virtual void setAnimationInterval(double interval); 32 | virtual ccLanguageType getCurrentLanguage(); 33 | 34 | /** 35 | @brief Get target platform 36 | */ 37 | virtual TargetPlatform getTargetPlatform(); 38 | 39 | /** 40 | * Sets the Resource root path. 41 | * @deprecated Please use CCFileUtils::sharedFileUtils()->setSearchPaths() instead. 42 | */ 43 | CC_DEPRECATED_ATTRIBUTE void setResourceRootPath(const std::string& rootResDir); 44 | 45 | /** 46 | * Gets the Resource root path. 47 | * @deprecated Please use CCFileUtils::sharedFileUtils()->getSearchPaths() instead. 48 | */ 49 | CC_DEPRECATED_ATTRIBUTE const std::string& getResourceRootPath(void); 50 | 51 | void setStartupScriptFilename(const std::string& startupScriptFile); 52 | 53 | const std::string& getStartupScriptFilename(void) 54 | { 55 | return m_startupScriptFilename; 56 | } 57 | 58 | protected: 59 | HINSTANCE m_hInstance; 60 | HACCEL m_hAccelTable; 61 | LARGE_INTEGER m_nAnimationInterval; 62 | std::string m_resourceRootPath; 63 | std::string m_startupScriptFilename; 64 | 65 | static CCApplication * sm_pSharedApplication; 66 | }; 67 | 68 | NS_CC_END 69 | 70 | #endif // __CC_APPLICATION_WIN32_H__ 71 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/win32/CCGL.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCGL_H__ 26 | #define __CCGL_H__ 27 | 28 | #include "GL/glew.h" 29 | 30 | #define CC_GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8 31 | 32 | // These macros are only for making CCTexturePVR.cpp complied without errors since they are not included in GLEW. 33 | #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 34 | #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01 35 | #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02 36 | #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03 37 | 38 | #endif // __CCGL_H__ 39 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/platform/win32/CCPlatformDefine.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCPLATFORMDEFINE_H__ 2 | #define __CCPLATFORMDEFINE_H__ 3 | 4 | #ifdef __MINGW32__ 5 | #include 6 | #endif 7 | 8 | #define CC_DLL __declspec(dllexport) 9 | 10 | #include 11 | 12 | #if CC_DISABLE_ASSERT > 0 13 | #define CC_ASSERT(cond) 14 | #else 15 | #define CC_ASSERT(cond) assert(cond) 16 | #endif 17 | #define CC_UNUSED_PARAM(unusedparam) (void)unusedparam 18 | 19 | /* Define NULL pointer value */ 20 | #ifndef NULL 21 | #ifdef __cplusplus 22 | #define NULL 0 23 | #else 24 | #define NULL ((void *)0) 25 | #endif 26 | #endif 27 | 28 | 29 | 30 | #endif /* __CCPLATFORMDEFINE_H__*/ 31 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShaderEx_SwitchMask_frag.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | #ifdef GL_ES \n\ 3 | precision lowp float; \n\ 4 | #endif \n\ 5 | \n\ 6 | varying vec4 v_fragmentColor; \n\ 7 | varying vec2 v_texCoord; \n\ 8 | uniform sampler2D u_texture; \n\ 9 | uniform sampler2D u_mask; \n\ 10 | \n\ 11 | void main() \n\ 12 | { \n\ 13 | vec4 texColor = texture2D(u_texture, v_texCoord); \n\ 14 | vec4 maskColor = texture2D(u_mask, v_texCoord); \n\ 15 | vec4 finalColor = vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n\ 16 | gl_FragColor = v_fragmentColor * finalColor; \n\ 17 | } \n\ 18 | "; 19 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColorLengthTexture_frag.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Scott Lembcke and Howling Moon Software 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | * SOFTWARE. 20 | */ 21 | 22 | " \n\ 23 | #ifdef GL_ES \n\ 24 | // #extension GL_OES_standard_derivatives : enable \n\ 25 | \n\ 26 | varying mediump vec4 v_color; \n\ 27 | varying mediump vec2 v_texcoord; \n\ 28 | #else \n\ 29 | varying vec4 v_color; \n\ 30 | varying vec2 v_texcoord; \n\ 31 | #endif \n\ 32 | \n\ 33 | void main() \n\ 34 | { \n\ 35 | // #if defined GL_OES_standard_derivatives \n\ 36 | // gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n\ 37 | // #else \n\ 38 | gl_FragColor = v_color*step(0.0, 1.0 - length(v_texcoord)); \n\ 39 | // #endif \n\ 40 | } \n\ 41 | "; 42 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColorLengthTexture_vert.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Scott Lembcke and Howling Moon Software 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | * SOFTWARE. 20 | */ 21 | 22 | " \n\ 23 | #ifdef GL_ES \n\ 24 | attribute mediump vec4 a_position; \n\ 25 | attribute mediump vec2 a_texcoord; \n\ 26 | attribute mediump vec4 a_color; \n\ 27 | \n\ 28 | varying mediump vec4 v_color; \n\ 29 | varying mediump vec2 v_texcoord; \n\ 30 | \n\ 31 | #else \n\ 32 | attribute vec4 a_position; \n\ 33 | attribute vec2 a_texcoord; \n\ 34 | attribute vec4 a_color; \n\ 35 | \n\ 36 | varying vec4 v_color; \n\ 37 | varying vec2 v_texcoord; \n\ 38 | #endif \n\ 39 | \n\ 40 | void main() \n\ 41 | { \n\ 42 | v_color = vec4(a_color.rgb * a_color.a, a_color.a); \n\ 43 | v_texcoord = a_texcoord; \n\ 44 | \n\ 45 | gl_Position = CC_MVPMatrix * a_position; \n\ 46 | } \n\ 47 | "; 48 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColor_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | #ifdef GL_ES \n\ 28 | precision lowp float; \n\ 29 | #endif \n\ 30 | \n\ 31 | varying vec4 v_fragmentColor; \n\ 32 | \n\ 33 | void main() \n\ 34 | { \n\ 35 | gl_FragColor = v_fragmentColor; \n\ 36 | } \n\ 37 | "; 38 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionColor_vert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | attribute vec4 a_position; \n\ 28 | attribute vec4 a_color; \n\ 29 | #ifdef GL_ES \n\ 30 | varying lowp vec4 v_fragmentColor; \n\ 31 | #else \n\ 32 | varying vec4 v_fragmentColor; \n\ 33 | #endif \n\ 34 | \n\ 35 | void main() \n\ 36 | { \n\ 37 | gl_Position = CC_MVPMatrix * a_position; \n\ 38 | v_fragmentColor = a_color; \n\ 39 | } \n\ 40 | "; 41 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureA8Color_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | #ifdef GL_ES \n\ 28 | precision lowp float; \n\ 29 | #endif \n\ 30 | \n\ 31 | varying vec4 v_fragmentColor; \n\ 32 | varying vec2 v_texCoord; \n\ 33 | uniform sampler2D CC_Texture0; \n\ 34 | \n\ 35 | void main() \n\ 36 | { \n\ 37 | gl_FragColor = vec4( v_fragmentColor.rgb, // RGB from uniform \n\ 38 | v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a // A from texture & uniform \n\ 39 | ); \n\ 40 | } \n\ 41 | "; 42 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureA8Color_vert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | attribute vec4 a_position; \n\ 28 | attribute vec2 a_texCoord; \n\ 29 | attribute vec4 a_color; \n\ 30 | \n\ 31 | #ifdef GL_ES \n\ 32 | varying lowp vec4 v_fragmentColor; \n\ 33 | varying mediump vec2 v_texCoord; \n\ 34 | #else \n\ 35 | varying vec4 v_fragmentColor; \n\ 36 | varying vec2 v_texCoord; \n\ 37 | #endif \n\ 38 | \n\ 39 | void main() \n\ 40 | { \n\ 41 | gl_Position = CC_MVPMatrix * a_position; \n\ 42 | v_fragmentColor = a_color; \n\ 43 | v_texCoord = a_texCoord; \n\ 44 | } \n\ 45 | "; 46 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureColorAlphaTest_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Brian Chapados 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | 25 | " \n\ 26 | #ifdef GL_ES \n\ 27 | precision lowp float; \n\ 28 | #endif \n\ 29 | \n\ 30 | varying vec4 v_fragmentColor; \n\ 31 | varying vec2 v_texCoord; \n\ 32 | uniform sampler2D CC_Texture0; \n\ 33 | uniform float CC_alpha_value; \n\ 34 | \n\ 35 | void main() \n\ 36 | { \n\ 37 | vec4 texColor = texture2D(CC_Texture0, v_texCoord); \n\ 38 | \n\ 39 | // mimic: glAlphaFunc(GL_GREATER) \n\ 40 | // pass if ( incoming_pixel >= CC_alpha_value ) => fail if incoming_pixel < CC_alpha_value \n\ 41 | \n\ 42 | if ( texColor.a <= CC_alpha_value ) \n\ 43 | discard; \n\ 44 | \n\ 45 | gl_FragColor = texColor * v_fragmentColor; \n\ 46 | } \n\ 47 | "; 48 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureColor_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | #ifdef GL_ES \n\ 28 | precision lowp float; \n\ 29 | #endif \n\ 30 | \n\ 31 | varying vec4 v_fragmentColor; \n\ 32 | varying vec2 v_texCoord; \n\ 33 | uniform sampler2D CC_Texture0; \n\ 34 | \n\ 35 | void main() \n\ 36 | { \n\ 37 | gl_FragColor = v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n\ 38 | } \n\ 39 | "; 40 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTextureColor_vert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | attribute vec4 a_position; \n\ 28 | attribute vec2 a_texCoord; \n\ 29 | attribute vec4 a_color; \n\ 30 | \n\ 31 | #ifdef GL_ES \n\ 32 | varying lowp vec4 v_fragmentColor; \n\ 33 | varying mediump vec2 v_texCoord; \n\ 34 | #else \n\ 35 | varying vec4 v_fragmentColor; \n\ 36 | varying vec2 v_texCoord; \n\ 37 | #endif \n\ 38 | \n\ 39 | void main() \n\ 40 | { \n\ 41 | gl_Position = CC_MVPMatrix * a_position; \n\ 42 | v_fragmentColor = a_color; \n\ 43 | v_texCoord = a_texCoord; \n\ 44 | } \n\ 45 | "; 46 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | #ifdef GL_ES \n\ 28 | precision lowp float; \n\ 29 | #endif \n\ 30 | \n\ 31 | varying vec2 v_texCoord; \n\ 32 | uniform sampler2D CC_Texture0; \n\ 33 | \n\ 34 | void main() \n\ 35 | { \n\ 36 | gl_FragColor = texture2D(CC_Texture0, v_texCoord); \n\ 37 | } \n\ 38 | "; 39 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_uColor_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | #ifdef GL_ES \n\ 28 | precision lowp float; \n\ 29 | #endif \n\ 30 | \n\ 31 | uniform vec4 u_color; \n\ 32 | \n\ 33 | varying vec2 v_texCoord; \n\ 34 | \n\ 35 | uniform sampler2D CC_Texture0; \n\ 36 | \n\ 37 | void main() \n\ 38 | { \n\ 39 | gl_FragColor = texture2D(CC_Texture0, v_texCoord) * u_color; \n\ 40 | } \n\ 41 | "; 42 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_uColor_vert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | attribute vec4 a_position; \n\ 28 | attribute vec2 a_texCoord; \n\ 29 | \n\ 30 | #ifdef GL_ES \n\ 31 | varying mediump vec2 v_texCoord; \n\ 32 | #else \n\ 33 | varying vec2 v_texCoord; \n\ 34 | #endif \n\ 35 | \n\ 36 | void main() \n\ 37 | { \n\ 38 | gl_Position = CC_MVPMatrix * a_position; \n\ 39 | v_texCoord = a_texCoord; \n\ 40 | } \n\ 41 | "; 42 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_PositionTexture_vert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | attribute vec4 a_position; \n\ 28 | attribute vec2 a_texCoord; \n\ 29 | \n\ 30 | #ifdef GL_ES \n\ 31 | varying mediump vec2 v_texCoord; \n\ 32 | #else \n\ 33 | varying vec2 v_texCoord; \n\ 34 | #endif \n\ 35 | \n\ 36 | void main() \n\ 37 | { \n\ 38 | gl_Position = CC_MVPMatrix * a_position; \n\ 39 | v_texCoord = a_texCoord; \n\ 40 | } \n\ 41 | "; 42 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_Position_uColor_frag.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | #ifdef GL_ES \n\ 28 | precision lowp float; \n\ 29 | #endif \n\ 30 | \n\ 31 | varying vec4 v_fragmentColor; \n\ 32 | \n\ 33 | void main() \n\ 34 | { \n\ 35 | gl_FragColor = v_fragmentColor; \n\ 36 | } \n\ 37 | "; 38 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/ccShader_Position_uColor_vert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2011 Ricardo Quesada 5 | * Copyright (c) 2012 Zynga Inc. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy 8 | * of this software and associated documentation files (the "Software"), to deal 9 | * in the Software without restriction, including without limitation the rights 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | * copies of the Software, and to permit persons to whom the Software is 12 | * furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in 15 | * all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | * THE SOFTWARE. 24 | */ 25 | 26 | " \n\ 27 | attribute vec4 a_position; \n\ 28 | uniform vec4 u_color; \n\ 29 | uniform float u_pointSize; \n\ 30 | \n\ 31 | #ifdef GL_ES \n\ 32 | varying lowp vec4 v_fragmentColor; \n\ 33 | #else \n\ 34 | varying vec4 v_fragmentColor; \n\ 35 | #endif \n\ 36 | \n\ 37 | void main() \n\ 38 | { \n\ 39 | gl_Position = CC_MVPMatrix * a_position; \n\ 40 | gl_PointSize = u_pointSize; \n\ 41 | v_fragmentColor = u_color; \n\ 42 | } \n\ 43 | "; 44 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/precompiled/winrt/precompiledshaders.h.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | 741cd46d8e38e67400dde7cc64fba1a34421ab15 -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/shaders/precompiled/wp8/precompiledshaders.h.REMOVED.git-id: -------------------------------------------------------------------------------- 1 | e8f8f1e54ee6515c3c0bbe8515db16961add174f -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/support/CCVertex.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | Copyright (c) 2011 ForzeField Studios S.L 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | #ifndef __CCVERTEX_H__ 26 | #define __CCVERTEX_H__ 27 | 28 | #include "ccTypes.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | /** 33 | * @addtogroup data_structures 34 | * @{ 35 | */ 36 | 37 | /** @file CCVertex.h */ 38 | 39 | /** converts a line to a polygon */ 40 | void CC_DLL ccVertexLineToPolygon(CCPoint *points, float stroke, ccVertex2F *vertices, unsigned int offset, unsigned int nuPoints); 41 | 42 | /** returns whether or not the line intersects */ 43 | bool CC_DLL ccVertexLineIntersect(float Ax, float Ay, 44 | float Bx, float By, 45 | float Cx, float Cy, 46 | float Dx, float Dy, float *T); 47 | 48 | // end of data_structures group 49 | /// @} 50 | 51 | NS_CC_END 52 | 53 | #endif /* __CCVERTEX_H__ */ 54 | 55 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/support/TransformUtils.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | Copyright (c) 2009 Valentin Milea 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | 26 | #ifndef __SUPPORT_TRANSFORM_UTILS_H__ 27 | #define __SUPPORT_TRANSFORM_UTILS_H__ 28 | 29 | // todo: 30 | // when in MAC or windows, it includes 31 | #include "CCGL.h" 32 | 33 | namespace cocos2d { 34 | 35 | struct CCAffineTransform; 36 | 37 | void CGAffineToGL(const CCAffineTransform *t, GLfloat *m); 38 | void GLToCGAffine(const GLfloat *m, CCAffineTransform *t); 39 | }//namespace cocos2d 40 | 41 | #endif // __SUPPORT_TRANSFORM_UTILS_H__ 42 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/support/base64.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __SUPPORT_BASE64_H__ 26 | #define __SUPPORT_BASE64_H__ 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | namespace cocos2d { 33 | 34 | /** @file 35 | base64 helper functions 36 | */ 37 | 38 | /** 39 | * Decodes a 64base encoded memory. The decoded memory is 40 | * expected to be freed by the caller. 41 | * 42 | * @returns the length of the out buffer 43 | * 44 | @since v0.8.1 45 | */ 46 | int base64Decode(unsigned char *in, unsigned int inLength, unsigned char **out); 47 | 48 | }//namespace cocos2d 49 | 50 | #ifdef __cplusplus 51 | } 52 | #endif 53 | 54 | #endif // __SUPPORT_BASE64_H__ 55 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/support/ccUtils.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | #ifndef __SUPPORT_CC_UTILS_H__ 25 | #define __SUPPORT_CC_UTILS_H__ 26 | 27 | /** @file ccUtils.h 28 | Misc free functions 29 | */ 30 | 31 | namespace cocos2d { 32 | /* 33 | ccNextPOT function is licensed under the same license that is used in CCTexture2D.m. 34 | */ 35 | 36 | /** returns the Next Power of Two value. 37 | 38 | Examples: 39 | - If "value" is 15, it will return 16. 40 | - If "value" is 16, it will return 16. 41 | - If "value" is 17, it will return 32. 42 | 43 | @since v0.99.5 44 | */ 45 | 46 | unsigned long ccNextPOT( unsigned long value ); 47 | 48 | } 49 | 50 | #endif // __SUPPORT_CC_UTILS_H__ 51 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/support/component/CCComponentContainer.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CC_FRAMEWORK_COMCONTAINER_H__ 26 | #define __CC_FRAMEWORK_COMCONTAINER_H__ 27 | 28 | #include "cocoa/CCDictionary.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | class CCComponent; 33 | class CCNode; 34 | /** 35 | * @js NA 36 | * @lua NA 37 | */ 38 | class CC_DLL CCComponentContainer 39 | { 40 | protected: 41 | CCComponentContainer(CCNode *pNode); 42 | 43 | public: 44 | virtual ~CCComponentContainer(void); 45 | virtual CCComponent* get(const char *pName) const; 46 | virtual bool add(CCComponent *pCom); 47 | virtual bool remove(const char *pName); 48 | virtual bool remove(CCComponent *pCom); 49 | virtual void removeAll(); 50 | virtual void visit(float fDelta); 51 | public: 52 | bool isEmpty() const; 53 | 54 | private: 55 | void alloc(void); 56 | 57 | private: 58 | CCDictionary *m_pComponents; ///< Dictionary of components 59 | CCNode *m_pOwner; 60 | 61 | friend class CCNode; 62 | }; 63 | 64 | NS_CC_END 65 | 66 | #endif // __FUNDATION__CCCOMPONENT_H__ 67 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/cocos2dx/textures/CCTextureETC.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCETCTEXTURE_H__ 26 | #define __CCETCTEXTURE_H__ 27 | 28 | #include "cocoa/CCObject.h" 29 | #include "platform/CCPlatformMacros.h" 30 | #include "CCGL.h" 31 | 32 | NS_CC_BEGIN 33 | /** 34 | * @js NA 35 | * @lua NA 36 | */ 37 | class CC_DLL CCTextureETC : public CCObject 38 | { 39 | public: 40 | CCTextureETC(); 41 | virtual ~CCTextureETC(); 42 | 43 | bool initWithFile(const char* file); 44 | 45 | unsigned int getName() const; 46 | unsigned int getWidth() const; 47 | unsigned int getHeight() const; 48 | 49 | private: 50 | bool loadTexture(const char* file); 51 | 52 | private: 53 | GLuint _name; 54 | unsigned int _width; 55 | unsigned int _height; 56 | }; 57 | 58 | NS_CC_END 59 | 60 | #endif /* defined(__CCETCTEXTURE_H__) */ 61 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCBFileLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCBFILELOADER_H_ 2 | #define _CCB_CCBFILELOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | #include "CCBReader.h" 6 | 7 | NS_CC_EXT_BEGIN 8 | 9 | /* Forward declaration. */ 10 | class CCBReader; 11 | /** 12 | * @js NA 13 | * @lua NA 14 | */ 15 | class CCBFileLoader : public CCNodeLoader { 16 | public: 17 | virtual ~CCBFileLoader() {}; 18 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCBFileLoader, loader); 19 | 20 | protected: 21 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCBFile); 22 | 23 | virtual void onHandlePropTypeCCBFile(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCNode * pCCBFileNode, CCBReader * pCCBReader); 24 | }; 25 | 26 | NS_CC_EXT_END 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCBKeyframe.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCB_KEYFRAME_H__ 2 | #define __CCB_KEYFRAME_H__ 3 | 4 | #include "cocos2d.h" 5 | #include "ExtensionMacros.h" 6 | 7 | NS_CC_EXT_BEGIN 8 | /** 9 | * @js NA 10 | * @lua NA 11 | */ 12 | class CCBKeyframe : public CCObject 13 | { 14 | private: 15 | CCObject *mValue; 16 | float mTime; 17 | int mEasingType; 18 | float mEasingOpt; 19 | 20 | public: 21 | CCBKeyframe(); 22 | ~CCBKeyframe(); 23 | 24 | CCObject* getValue(); 25 | void setValue(CCObject *pValue); // retain 26 | 27 | float getTime(); 28 | void setTime(float fTime); 29 | 30 | int getEasingType(); 31 | void setEasingType(int nEasingType); 32 | 33 | float getEasingOpt(); 34 | void setEasingOpt(float fEasingOpt); 35 | }; 36 | 37 | NS_CC_EXT_END 38 | 39 | #endif // __CCB_KEYFRAME_H__ 40 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCBSelectorResolver.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCBSELECTORRESOLVER_H_ 2 | #define _CCB_CCBSELECTORRESOLVER_H_ 3 | 4 | #include "cocos2d.h" 5 | #include "ExtensionMacros.h" 6 | #include "../GUI/CCControlExtension/CCInvocation.h" 7 | 8 | 9 | NS_CC_EXT_BEGIN 10 | 11 | #define CCB_SELECTORRESOLVER_CCMENUITEM_GLUE(TARGET, SELECTORNAME, METHOD) if(pTarget == TARGET && strcmp(pSelectorName, SELECTORNAME) == 0) { \ 12 | return menu_selector(METHOD); \ 13 | } 14 | 15 | #define CCB_SELECTORRESOLVER_CCCONTROL_GLUE(TARGET, SELECTORNAME, METHOD) if(pTarget == TARGET && strcmp(pSelectorName, SELECTORNAME) == 0) { \ 16 | return cccontrol_selector(METHOD); \ 17 | } 18 | 19 | #define CCB_SELECTORRESOLVER_CALLFUNC_GLUE(TARGET, SELECTORNAME, METHOD) if(pTarget == TARGET && strcmp(pSelectorName, SELECTORNAME) == 0) { \ 20 | return callfuncN_selector(METHOD); \ 21 | } 22 | /** 23 | * @js NA 24 | * @lua NA 25 | */ 26 | class CCBSelectorResolver { 27 | public: 28 | virtual ~CCBSelectorResolver() {}; 29 | virtual SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, const char* pSelectorName) = 0; 30 | virtual SEL_CallFuncN onResolveCCBCCCallFuncSelector(CCObject * pTarget, const char* pSelectorName) { return NULL; }; 31 | virtual SEL_CCControlHandler onResolveCCBCCControlSelector(CCObject * pTarget, const char* pSelectorName) = 0; 32 | }; 33 | 34 | /** 35 | * @js NA 36 | * @lua NA 37 | */ 38 | class CCBScriptOwnerProtocol { 39 | public: 40 | virtual ~CCBScriptOwnerProtocol() {}; 41 | virtual CCBSelectorResolver * createNew() = 0; 42 | }; 43 | 44 | NS_CC_EXT_END 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCBSequence.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCB_CCSEQUENCE_H__ 2 | #define __CCB_CCSEQUENCE_H__ 3 | 4 | #include 5 | #include "cocos2d.h" 6 | #include "ExtensionMacros.h" 7 | #include "CCBSequenceProperty.h" 8 | 9 | NS_CC_EXT_BEGIN 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCBSequence : public CCObject 15 | { 16 | private: 17 | float mDuration; 18 | std::string mName; 19 | int mSequenceId; 20 | int mChainedSequenceId; 21 | CCBSequenceProperty* mCallbackChannel; 22 | CCBSequenceProperty* mSoundChannel; 23 | 24 | public: 25 | CCBSequence(); 26 | ~CCBSequence(); 27 | float getDuration(); 28 | void setDuration(float fDuration); 29 | 30 | CCBSequenceProperty* getCallbackChannel(); 31 | void setCallbackChannel(CCBSequenceProperty* callbackChannel); 32 | 33 | CCBSequenceProperty* getSoundChannel(); 34 | void setSoundChannel(CCBSequenceProperty* soundChannel); 35 | 36 | const char* getName(); 37 | void setName(const char *pName); 38 | 39 | int getSequenceId(); 40 | void setSequenceId(int nSequenceId); 41 | 42 | int getChainedSequenceId(); 43 | void setChainedSequenceId(int nChainedSequenceId); 44 | }; 45 | 46 | 47 | NS_CC_EXT_END 48 | 49 | 50 | #endif // __CCB_CCSEQUENCE_H__ 51 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCBSequenceProperty.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCB_SEQUENCE_PROPERTY_H__ 2 | #define __CCB_SEQUENCE_PROPERTY_H__ 3 | 4 | #include "cocos2d.h" 5 | #include "ExtensionMacros.h" 6 | #include "CCBKeyframe.h" 7 | 8 | NS_CC_EXT_BEGIN 9 | /** 10 | * @js NA 11 | * @lua NA 12 | */ 13 | class CCBSequenceProperty : public CCObject 14 | { 15 | private: 16 | std::string mName; 17 | int mType; 18 | CCArray *mKeyframes; 19 | 20 | public: 21 | CCBSequenceProperty(); 22 | ~CCBSequenceProperty(); 23 | 24 | virtual bool init(); 25 | 26 | const char* getName(); 27 | void setName(const char* pName); 28 | 29 | int getType(); 30 | void setType(int nType); 31 | 32 | CCArray* getKeyframes(); 33 | }; 34 | 35 | NS_CC_EXT_END 36 | 37 | #endif // __CCB_SEQUENCE_PROPERTY_H__ 38 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCBValue.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCB_VALUE_H__ 2 | #define __CCB_VALUE_H__ 3 | 4 | #include "cocos2d.h" 5 | #include "ExtensionMacros.h" 6 | 7 | /* 8 | These classes are wrapper of basic types, such as ccColor3B 9 | */ 10 | 11 | NS_CC_EXT_BEGIN 12 | /** 13 | * @js NA 14 | * @lua NA 15 | */ 16 | class ccColor3BWapper : public CCObject 17 | { 18 | private: 19 | ccColor3B color; 20 | 21 | public: 22 | static ccColor3BWapper* create(const ccColor3B& color); 23 | 24 | const ccColor3B& getColor() const; 25 | }; 26 | 27 | enum 28 | { 29 | kIntValue, 30 | kFloatValue, 31 | kBoolValue, 32 | kUnsignedCharValue, 33 | kStringValue, 34 | kArrayValue 35 | }; 36 | /** 37 | * @js NA 38 | * @lua NA 39 | */ 40 | class CCBValue : public CCObject 41 | { 42 | private: 43 | union 44 | { 45 | int nValue; 46 | float fValue; 47 | } mValue; 48 | 49 | std::string m_strValue; 50 | CCArray* m_arrValue; 51 | int mType; 52 | 53 | public: 54 | static CCBValue* create(int nValue); 55 | static CCBValue* create(bool bValue); 56 | static CCBValue* create(float fValue); 57 | static CCBValue* create(unsigned char byte); 58 | static CCBValue* create(const char* pStr); 59 | static CCBValue* create(CCArray* pArr); 60 | 61 | 62 | int getIntValue(); 63 | float getFloatValue(); 64 | bool getBoolValue(); 65 | unsigned char getByteValue(); 66 | const char* getStringValue(); 67 | CCArray *getArrayValue(); 68 | 69 | int getType(); 70 | }; 71 | 72 | NS_CC_EXT_END 73 | 74 | #endif // __CCB_VALUE_H__ 75 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCControlButtonLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCCONTROLBUTTONLOADER_H_ 2 | #define _CCB_CCCONTROLBUTTONLOADER_H_ 3 | 4 | #include "CCControlLoader.h" 5 | #include "../GUI/CCControlExtension/CCControlButton.h" 6 | 7 | NS_CC_EXT_BEGIN 8 | 9 | /* Forward declaration. */ 10 | class CCBReader; 11 | 12 | class CCControlButtonLoader : public CCControlLoader { 13 | public: 14 | virtual ~CCControlButtonLoader() {}; 15 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCControlButtonLoader, loader); 16 | 17 | protected: 18 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCControlButton); 19 | 20 | virtual void onHandlePropTypeCheck(CCNode * pNode, CCNode * pParent, const char * pPropertyName, bool pCheck, CCBReader * pCCBReader); 21 | virtual void onHandlePropTypeString(CCNode * pNode, CCNode * pParent, const char * pPropertyName, const char * pString, CCBReader * pCCBReader); 22 | virtual void onHandlePropTypeFontTTF(CCNode * pNode, CCNode * pParent, const char * pPropertyName, const char * pFontTTF, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeFloatScale(CCNode * pNode, CCNode * pParent, const char * pPropertyName, float pFloatScale, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypePoint(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCPoint pPoint, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeSize(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSize pSize, CCBReader * pCCBReader); 26 | virtual void onHandlePropTypeSpriteFrame(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSpriteFrame * pCCSpriteFrame, CCBReader * pCCBReader); 27 | virtual void onHandlePropTypeColor3(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor3B pCCColor3B, CCBReader * pCCBReader); 28 | }; 29 | 30 | NS_CC_EXT_END 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCControlLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCCONTROLLOADER_H_ 2 | #define _CCB_CCCONTROLLOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | #include "../GUI/CCControlExtension/CCControl.h" 6 | 7 | NS_CC_EXT_BEGIN 8 | 9 | /* Forward declaration. */ 10 | class CCBReader; 11 | /** 12 | * @js NA 13 | * @lua NA 14 | */ 15 | class CCControlLoader : public CCNodeLoader { 16 | public: 17 | virtual ~CCControlLoader() {}; 18 | 19 | protected: 20 | CCB_PURE_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCControl); 21 | 22 | virtual void onHandlePropTypeBlockCCControl(CCNode * pNode, CCNode * pParent, const char * pPropertyName, BlockCCControlData * pBlockCCControlData, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeCheck(CCNode * pNode, CCNode * pParent, const char * pPropertyName, bool pCheck, CCBReader * pCCBReader); 24 | }; 25 | 26 | NS_CC_EXT_END 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCData.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __CCB_CCDATA_H__ 3 | #define __CCB_CCDATA_H__ 4 | 5 | #include "cocos2d.h" 6 | #include "ExtensionMacros.h" 7 | 8 | NS_CC_EXT_BEGIN 9 | /** 10 | * @js NA 11 | * @lua NA 12 | */ 13 | class CCData : public CCObject 14 | { 15 | public: 16 | CCData(unsigned char *pBytes, const unsigned long nSize); 17 | CCData(CCData *pData); 18 | ~CCData(); 19 | 20 | unsigned char* getBytes(); 21 | unsigned long getSize(); 22 | 23 | private: 24 | unsigned char* m_pBytes; 25 | unsigned long m_nSize; 26 | }; 27 | 28 | NS_CC_EXT_END 29 | 30 | #endif // __CCB_CCDATA_H__ 31 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCLabelBMFontLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCLABELBMFONTLOADER_H_ 2 | #define _CCB_CCLABELBMFONTLOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCLabelBMFontLoader : public CCNodeLoader { 15 | public: 16 | virtual ~CCLabelBMFontLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCLabelBMFontLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCLabelBMFont); 21 | 22 | virtual void onHandlePropTypeColor3(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor3B pCCColor3B, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeByte(CCNode * pNode, CCNode * pParent, const char * pPropertyName, unsigned char pByte, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypeBlendFunc(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccBlendFunc pCCBlendFunc, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeFntFile(CCNode * pNode, CCNode * pParent, const char * pPropertyName, const char* pFntFile, CCBReader * pCCBReader); 26 | virtual void onHandlePropTypeText(CCNode * pNode, CCNode * pParent, const char * pPropertyName, const char* pText, CCBReader * pCCBReader); 27 | }; 28 | 29 | NS_CC_EXT_END 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCLabelTTFLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCLABELTTFLOADER_H_ 2 | #define _CCB_CCLABELTTFLOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCLabelTTFLoader : public CCNodeLoader { 15 | public: 16 | virtual ~CCLabelTTFLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCLabelTTFLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCLabelTTF); 21 | 22 | virtual void onHandlePropTypeColor3(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor3B pCCColor3B, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeByte(CCNode * pNode, CCNode * pParent, const char * pPropertyName, unsigned char pByte, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypeBlendFunc(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccBlendFunc pCCBlendFunc, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeFontTTF(CCNode * pNode, CCNode * pParent, const char * pPropertyName, const char * pFontTTF, CCBReader * pCCBReader); 26 | virtual void onHandlePropTypeText(CCNode * pNode, CCNode * pParent, const char * pPropertyName, const char * pText, CCBReader * pCCBReader); 27 | virtual void onHandlePropTypeFloatScale(CCNode * pNode, CCNode * pParent, const char * pPropertyName, float pFloatScale, CCBReader * pCCBReader); 28 | virtual void onHandlePropTypeIntegerLabeled(CCNode * pNode, CCNode * pParent, const char * pPropertyName, int pIntegerLabeled, CCBReader * pCCBReader); 29 | virtual void onHandlePropTypeSize(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSize pSize, CCBReader * pCCBReader); 30 | }; 31 | 32 | NS_CC_EXT_END 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCLayerColorLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCLAYERCOLORLOADER_H_ 2 | #define _CCB_CCLAYERCOLORLOADER_H_ 3 | 4 | #include "CCLayerLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCLayerColorLoader : public CCLayerLoader { 15 | public: 16 | virtual ~CCLayerColorLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCLayerColorLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCLayerColor); 21 | 22 | virtual void onHandlePropTypeColor3(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor3B pCCColor3B, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeByte(CCNode * pNode, CCNode * pParent, const char * pPropertyName, unsigned char pByte, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypeBlendFunc(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccBlendFunc pCCBlendFunc, CCBReader * pCCBReader); 25 | }; 26 | 27 | NS_CC_EXT_END 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCLayerGradientLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCLAYERGRADIENTLOADER_H_ 2 | #define _CCB_CCLAYERGRADIENTLOADER_H_ 3 | 4 | #include "CCLayerLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCLayerGradientLoader : public CCLayerLoader { 15 | public: 16 | virtual ~CCLayerGradientLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCLayerGradientLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCLayerGradient); 21 | 22 | virtual void onHandlePropTypeColor3(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor3B pCCColor3B, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeByte(CCNode * pNode, CCNode * pParent, const char * pPropertyName, unsigned char pByte, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypePoint(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCPoint pPoint, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeBlendFunc(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccBlendFunc pCCBlendFunc, CCBReader * pCCBReader); 26 | }; 27 | 28 | NS_CC_EXT_END 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCLayerLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCLAYERLOADER_H_ 2 | #define _CCB_CCLAYERLOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCLayerLoader : public CCNodeLoader { 15 | public: 16 | virtual ~CCLayerLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCLayerLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCLayer); 21 | 22 | virtual void onHandlePropTypeCheck(CCNode * pNode, CCNode * pParent, const char * pPropertyName, bool pCheck, CCBReader * pCCBReader); 23 | }; 24 | 25 | NS_CC_EXT_END 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCMenuItemImageLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCMENUITEMIMAGELOADER_H_ 2 | #define _CCB_CCMENUITEMIMAGELOADER_H_ 3 | 4 | #include "CCMenuItemLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCMenuItemImageLoader : public CCMenuItemLoader { 15 | public: 16 | virtual ~CCMenuItemImageLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCMenuItemImageLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCMenuItemImage); 21 | 22 | virtual void onHandlePropTypeSpriteFrame(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSpriteFrame * pCCSpriteFrame, CCBReader * pCCBReader); 23 | }; 24 | 25 | NS_CC_EXT_END 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCMenuItemLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCMENUITEMLOADER_H_ 2 | #define _CCB_CCMENUITEMLOADER_H_ 3 | 4 | #include "CCLayerLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCMenuItemLoader : public CCNodeLoader { 15 | public: 16 | virtual ~CCMenuItemLoader() {}; 17 | 18 | protected: 19 | CCB_PURE_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCMenuItem); 20 | 21 | virtual void onHandlePropTypeBlock(CCNode * pNode, CCNode * pParent, const char * pPropertyName, BlockData * pBlockData, CCBReader * pCCBReader); 22 | virtual void onHandlePropTypeCheck(CCNode * pNode, CCNode * pParent, const char * pPropertyName, bool pCheck, CCBReader * pCCBReader); 23 | }; 24 | 25 | NS_CC_EXT_END 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCMenuLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCMENULOADER_H_ 2 | #define _CCB_CCMENULOADER_H_ 3 | 4 | #include "CCLayerLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCMenuLoader : public CCLayerLoader { 15 | public: 16 | virtual ~CCMenuLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCMenuLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCMenu); 21 | }; 22 | 23 | NS_CC_EXT_END 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCNode+CCBRelativePositioning.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCB_CCNODE_RELATIVEPOSITIONING_H__ 2 | #define __CCB_CCNODE_RELATIVEPOSITIONING_H__ 3 | 4 | #include "cocos2d.h" 5 | #include "ExtensionMacros.h" 6 | 7 | NS_CC_EXT_BEGIN 8 | 9 | extern CCPoint getAbsolutePosition(const CCPoint &pt, int nType, const CCSize &containerSize, const char *pPropName); 10 | 11 | extern void setRelativeScale(CCNode *pNode, float fScaleX, float fScaleY, int nType, const char* pPropName); 12 | 13 | NS_CC_EXT_END 14 | 15 | #endif // __CCB_CCNODE_RELATIVEPOSITIONING_H__ 16 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCNodeLoaderLibrary.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCNODELOADERLIBRARY_H_ 2 | #define _CCB_CCNODELOADERLIBRARY_H_ 3 | 4 | #include "cocos2d.h" 5 | #include "CCBReader.h" 6 | 7 | NS_CC_EXT_BEGIN 8 | 9 | class CCNodeLoader; 10 | 11 | typedef std::map CCNodeLoaderMap; 12 | typedef std::pair CCNodeLoaderMapEntry; 13 | /** 14 | * @js NA 15 | * @lua NA 16 | */ 17 | class CCNodeLoaderLibrary : public CCObject { 18 | private: 19 | CCNodeLoaderMap mCCNodeLoaders; 20 | 21 | public: 22 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCNodeLoaderLibrary, library); 23 | 24 | CCNodeLoaderLibrary(); 25 | virtual ~CCNodeLoaderLibrary(); 26 | 27 | void registerDefaultCCNodeLoaders(); 28 | void registerCCNodeLoader(const char * pClassName, CCNodeLoader * pCCNodeLoader); 29 | //void registerCCNodeLoader(CCString * pClassName, CCNodeLoader * pCCNodeLoader); 30 | void unregisterCCNodeLoader(const char * pClassName); 31 | //void unregisterCCNodeLoader(CCString * pClassName); 32 | CCNodeLoader * getCCNodeLoader(const char * pClassName); 33 | //CCNodeLoader * getCCNodeLoader(CCString * pClassName); 34 | void purge(bool pDelete); 35 | 36 | public: 37 | static CCNodeLoaderLibrary * sharedCCNodeLoaderLibrary(); 38 | static void purgeSharedCCNodeLoaderLibrary(); 39 | 40 | static CCNodeLoaderLibrary * newDefaultCCNodeLoaderLibrary(); 41 | }; 42 | 43 | NS_CC_EXT_END 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCNodeLoaderListener.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCNODELOADERLISTENER_H_ 2 | #define _CCB_CCNODELOADERLISTENER_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | /** 8 | * @js NA 9 | * @lua NA 10 | */ 11 | class CCNodeLoaderListener { 12 | public: 13 | virtual ~CCNodeLoaderListener() {}; 14 | 15 | virtual void onNodeLoaded(CCNode * pNode, CCNodeLoader * pNodeLoader) = 0; 16 | }; 17 | 18 | NS_CC_EXT_END 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCParticleSystemQuadLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCPARTICLESYSTEMQUADLOADER_H_ 2 | #define _CCB_CCPARTICLESYSTEMQUADLOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCParticleSystemQuadLoader : public CCNodeLoader { 15 | public: 16 | virtual ~CCParticleSystemQuadLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCParticleSystemQuadLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCParticleSystemQuad); 21 | 22 | virtual void onHandlePropTypeIntegerLabeled(CCNode * pNode, CCNode * pParent, const char * pPropertyName, int pIntegerLabeled, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypePoint(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCPoint pPoint, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypeFloat(CCNode * pNode, CCNode * pParent, const char * pPropertyName, float pFloat, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeInteger(CCNode * pNode, CCNode * pParent, const char * pPropertyName, int pInteger, CCBReader * pCCBReader); 26 | virtual void onHandlePropTypeFloatVar(CCNode * pNode, CCNode * pParent, const char * pPropertyName, float * pFloatVar, CCBReader * pCCBReader); 27 | virtual void onHandlePropTypeColor4FVar(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor4F * pCCColor4FVar, CCBReader * pCCBReader); 28 | virtual void onHandlePropTypeBlendFunc(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccBlendFunc pCCBlendFunc, CCBReader * pCCBReader); 29 | virtual void onHandlePropTypeTexture(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCTexture2D * pCCTexture2D, CCBReader * pCCBReader); 30 | }; 31 | 32 | NS_CC_EXT_END 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCScale9SpriteLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCSCALE9SPRITELOADER_H_ 2 | #define _CCB_CCSCALE9SPRITELOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | #include "CCScale9SpriteLoader.h" 6 | #include "../GUI/CCControlExtension/CCScale9Sprite.h" 7 | 8 | NS_CC_EXT_BEGIN 9 | 10 | /* Forward declaration. */ 11 | class CCBReader; 12 | /** 13 | * @js NA 14 | * @lua NA 15 | */ 16 | class CCScale9SpriteLoader : public CCNodeLoader { 17 | public: 18 | virtual ~CCScale9SpriteLoader() {}; 19 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCScale9SpriteLoader, loader); 20 | 21 | protected: 22 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCScale9Sprite); 23 | 24 | virtual void onHandlePropTypeColor3(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor3B pCCColor3B, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeByte(CCNode * pNode, CCNode * pParent, const char * pPropertyName, unsigned char pByte, CCBReader * pCCBReader); 26 | virtual void onHandlePropTypeBlendFunc(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccBlendFunc pCCBlendFunc, CCBReader * pCCBReader); 27 | virtual void onHandlePropTypeSpriteFrame(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSpriteFrame * pCCSpriteFrame, CCBReader * pCCBReader); 28 | virtual void onHandlePropTypeSize(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSize pSize, CCBReader * pCCBReader); 29 | virtual void onHandlePropTypeFloat(CCNode * pNode, CCNode * pParent, const char * pPropertyName, float pFloat, CCBReader * pCCBReader); 30 | }; 31 | 32 | NS_CC_EXT_END 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCScrollViewLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCSCROLLVIEWLOADER_H_ 2 | #define _CCB_CCSCROLLVIEWLOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | #include "../GUI/CCScrollView/CCScrollView.h" 6 | 7 | NS_CC_EXT_BEGIN 8 | 9 | /* Forward declaration. */ 10 | class CCBReader; 11 | /** 12 | * @js NA 13 | * @lua NA 14 | */ 15 | class CCScrollViewLoader : public CCNodeLoader { 16 | public: 17 | virtual ~CCScrollViewLoader() {}; 18 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCScrollViewLoader, loader); 19 | 20 | protected: 21 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCScrollView); 22 | virtual void onHandlePropTypeSize(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSize pSize, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeCCBFile(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCNode * pCCBFileNode, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypeCheck(CCNode * pNode, CCNode * pParent, const char * pPropertyName, bool pCheck, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeFloat(CCNode * pNode, CCNode * pParent, const char * pPropertyName, float pFloat, CCBReader * pCCBReader); 26 | virtual void onHandlePropTypeIntegerLabeled(CCNode * pNode, CCNode * pParent, const char * pPropertyName, int pIntegerLabeled, CCBReader * pCCBReader); 27 | }; 28 | 29 | NS_CC_EXT_END 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CCBReader/CCSpriteLoader.h: -------------------------------------------------------------------------------- 1 | #ifndef _CCB_CCSPRITELOADER_H_ 2 | #define _CCB_CCSPRITELOADER_H_ 3 | 4 | #include "CCNodeLoader.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | /* Forward declaration. */ 9 | class CCBReader; 10 | /** 11 | * @js NA 12 | * @lua NA 13 | */ 14 | class CCSpriteLoader : public CCNodeLoader { 15 | public: 16 | virtual ~CCSpriteLoader() {}; 17 | CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(CCSpriteLoader, loader); 18 | 19 | protected: 20 | CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(CCSprite); 21 | 22 | virtual void onHandlePropTypeColor3(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccColor3B pCCColor3B, CCBReader * pCCBReader); 23 | virtual void onHandlePropTypeByte(CCNode * pNode, CCNode * pParent, const char * pPropertyName, unsigned char pByte, CCBReader * pCCBReader); 24 | virtual void onHandlePropTypeBlendFunc(CCNode * pNode, CCNode * pParent, const char * pPropertyName, ccBlendFunc pCCBBlendFunc, CCBReader * pCCBReader); 25 | virtual void onHandlePropTypeSpriteFrame(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSpriteFrame * pCCSpriteFrame, CCBReader * pCCBReader); 26 | virtual void onHandlePropTypeFlip(CCNode * pNode, CCNode * pParent, const char * pPropertyName, bool * pFlip, CCBReader * pCCBReader); 27 | }; 28 | 29 | NS_CC_EXT_END 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCSpriteFrameCacheHelper.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | #ifndef __CCSPRITEFRAMECACHEHELPER_H__ 25 | #define __CCSPRITEFRAMECACHEHELPER_H__ 26 | 27 | #include "CCArmatureDefine.h" 28 | #include 29 | 30 | using namespace std; 31 | 32 | NS_CC_EXT_BEGIN 33 | /** 34 | * @js NA 35 | * @lua NA 36 | */ 37 | class CCSpriteFrameCacheHelper 38 | { 39 | public: 40 | static CCSpriteFrameCacheHelper *sharedSpriteFrameCacheHelper(); 41 | 42 | static void purge(); 43 | public: 44 | 45 | /** 46 | * @brief Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name 47 | */ 48 | void addSpriteFrameFromFile(const char *plistPath, const char *imagePath); 49 | 50 | 51 | private: 52 | CCSpriteFrameCacheHelper(); 53 | ~CCSpriteFrameCacheHelper(); 54 | 55 | static CCSpriteFrameCacheHelper *s_SpriteFrameCacheHelper; 56 | }; 57 | 58 | NS_CC_EXT_END 59 | 60 | #endif /*__CCSPRITEFRAMECACHEHELPER_H__*/ 61 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Armature/utils/CCUtilMath.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCUTILMATH_H__ 26 | #define __CCUTILMATH_H__ 27 | 28 | #include "CCArmatureDefine.h" 29 | #include 30 | 31 | NS_CC_EXT_BEGIN 32 | 33 | #define CC_DOUBLE_PI (M_PI*2) 34 | 35 | #define CC_HALF_PI (M_PI * 0.5f) 36 | 37 | 38 | //! hit test function 39 | bool isSpriteContainPoint(CCSprite *sprite, CCPoint point); 40 | bool isSpriteContainPoint(CCSprite *sprite, CCPoint point, CCPoint &outPoint); 41 | 42 | #define CC_SPRITE_CONTAIN_POINT(sprite, point) isSpriteContainPoint((sprite), (point)) 43 | #define CC_SPRITE_CONTAIN_POINT_WITH_RETURN(sprite, point, outPoint) isSpriteContainPoint((sprite), (point), outPoint) 44 | 45 | 46 | //! motion curve function 47 | CCPoint bezierTo(float t, CCPoint &point1, CCPoint &point2, CCPoint &point3); 48 | CCPoint bezierTo(float t, CCPoint &point1, CCPoint &point2, CCPoint &point3, CCPoint &point4); 49 | 50 | CCPoint circleTo(float t, CCPoint ¢er, float radius, float fromRadian, float radianDif); 51 | 52 | 53 | NS_CC_EXT_END 54 | 55 | #endif /*__CCUTILMATH_H__*/ 56 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Components/CCComBase.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CC_EXTENTIONS_CCCOMBASE_H__ 26 | #define __CC_EXTENTIONS_CCCOMBASE_H__ 27 | 28 | #include "cocos2d.h" 29 | #include "ExtensionMacros.h" 30 | #include "../Trigger/ObjectFactory.h" 31 | #include "../Json/DictionaryHelper.h" 32 | #include 33 | 34 | 35 | #define DECLARE_CLASS_COMPONENT_INFO \ 36 | public: \ 37 | static cocos2d::extension::ObjectFactory::TInfo Type; \ 38 | static cocos2d::CCObject* createInstance(void); \ 39 | 40 | #define IMPLEMENT_CLASS_COMPONENT_INFO(className) \ 41 | cocos2d::CCObject* className::createInstance(void) \ 42 | { \ 43 | return className::create(); \ 44 | } \ 45 | cocos2d::extension::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \ 46 | 47 | #define CREATE_CLASS_COMPONENT_INFO(className) \ 48 | cocos2d::extension::ObjectFactory::TInfo(#className, &className::createInstance) 49 | 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Components/CCComController.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CC_EXTENTIONS_CCCOMCONTROLLER_H__ 26 | #define __CC_EXTENTIONS_CCCOMCONTROLLER_H__ 27 | 28 | #include "CCComBase.h" 29 | #include "CCInputDelegate.h" 30 | 31 | NS_CC_EXT_BEGIN 32 | /** 33 | * @lua NA 34 | */ 35 | class CCComController : public cocos2d::CCComponent, public CCInputDelegate 36 | { 37 | DECLARE_CLASS_COMPONENT_INFO 38 | public: 39 | /** 40 | * @js ctor 41 | */ 42 | CCComController(void); 43 | /** 44 | * @js NA 45 | */ 46 | virtual ~CCComController(void); 47 | virtual bool init(); 48 | virtual void onEnter(); 49 | virtual void onExit(); 50 | virtual void update(float delta); 51 | virtual bool isEnabled() const; 52 | virtual void setEnabled(bool b); 53 | 54 | static CCComController* create(void); 55 | }; 56 | 57 | NS_CC_EXT_END 58 | 59 | #endif // __FUNDATION__CCCOMPONENT_H__ 60 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/Compatible/CompatibleClasses.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __COMPATIBLECLASSES_H__ 3 | #define __COMPATIBLECLASSES_H__ 4 | 5 | #include "cocos2d.h" 6 | #include "../../BaseClasses/UIWidget.h" 7 | #include "../UIButton.h" 8 | #include "../UICheckBox.h" 9 | #include "../UIImageView.h" 10 | #include "../UILabel.h" 11 | #include "../UILabelAtlas.h" 12 | #include "../UILabelBMFont.h" 13 | #include "../UILoadingBar.h" 14 | #include "../UISlider.h" 15 | #include "../UITextField.h" 16 | #include "../../Layouts/UILayout.h" 17 | #include "../ScrollWidget/UIListView.h" 18 | #include "../ScrollWidget/UIPageView.h" 19 | #include "../ScrollWidget/UIScrollView.h" 20 | 21 | //class type define 22 | NS_CC_BEGIN 23 | // 24 | namespace ui { 25 | 26 | typedef cocos2d::ui::Layout UIPanel; 27 | typedef cocos2d::ui::Layout UILayout; 28 | typedef cocos2d::ui::Widget UIWidget; 29 | 30 | typedef cocos2d::ui::LayoutParameter UILayoutParameter; 31 | typedef cocos2d::ui::Margin UIMargin; 32 | 33 | typedef cocos2d::ui::ListView UIListView; 34 | typedef cocos2d::ui::PageView UIPageView; 35 | typedef cocos2d::ui::ScrollView UIDragPanel; 36 | typedef cocos2d::ui::ScrollView UIScrollView; 37 | typedef cocos2d::ui::Button UIButton; 38 | typedef cocos2d::ui::Button UITextButton; 39 | typedef cocos2d::ui::CheckBox UICheckBox; 40 | typedef cocos2d::ui::ImageView UIImageView; 41 | typedef cocos2d::ui::Label UILabel; 42 | typedef cocos2d::ui::LabelAtlas UILabelAtlas; 43 | typedef cocos2d::ui::LabelBMFont UILabelBMFont; 44 | typedef cocos2d::ui::LoadingBar UILoadingBar; 45 | typedef cocos2d::ui::Slider UISlider; 46 | typedef cocos2d::ui::TextField UITextField; 47 | typedef cocos2d::ui::TouchGroup UILayer; 48 | 49 | typedef cocos2d::ui::LinearGravity UILinearGravity; 50 | typedef cocos2d::ui::RelativeAlign UIRelativeAlign; 51 | typedef cocos2d::ui::LayoutParameter UILayoutParameter; 52 | typedef cocos2d::ui::LinearLayoutParameter UILinearLayoutParameter; 53 | typedef cocos2d::ui::RelativeLayoutParameter UIRelativeLayoutParameter; 54 | } 55 | NS_CC_END 56 | 57 | 58 | #endif /* defined(__CompatibleClasses__) */ 59 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/GUI/UIWidgets/ScrollWidget/UIScrollInterface.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __UISCROLLDELEGATE_H__ 26 | #define __UISCROLLDELEGATE_H__ 27 | 28 | #include "../../BaseClasses/UIWidget.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | namespace ui { 33 | 34 | class UIScrollInterface 35 | { 36 | public: 37 | virtual ~UIScrollInterface() {} 38 | 39 | protected: 40 | virtual void handlePressLogic(const CCPoint &touchPoint) = 0; 41 | virtual void handleMoveLogic(const CCPoint &touchPoint) = 0; 42 | virtual void handleReleaseLogic(const CCPoint &touchPoint) = 0; 43 | virtual void interceptTouchEvent(int handleState, Widget* sender, const CCPoint &touchPoint) = 0; 44 | }; 45 | 46 | } 47 | NS_CC_END 48 | 49 | #endif /* defined(__UIScrollDelegate__) */ 50 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/filestream.h: -------------------------------------------------------------------------------- 1 | #ifndef RAPIDJSON_FILESTREAM_H_ 2 | #define RAPIDJSON_FILESTREAM_H_ 3 | 4 | #include 5 | 6 | namespace rapidjson { 7 | 8 | //! Wrapper of C file stream for input or output. 9 | /*! 10 | This simple wrapper does not check the validity of the stream. 11 | \implements Stream 12 | */ 13 | class FileStream { 14 | public: 15 | typedef char Ch; //!< Character type. Only support char. 16 | 17 | FileStream(FILE* fp) : fp_(fp), count_(0) { Read(); } 18 | char Peek() const { return current_; } 19 | char Take() { char c = current_; Read(); return c; } 20 | size_t Tell() const { return count_; } 21 | void Put(char c) { fputc(c, fp_); } 22 | 23 | // Not implemented 24 | char* PutBegin() { return 0; } 25 | size_t PutEnd(char*) { return 0; } 26 | 27 | private: 28 | void Read() { 29 | RAPIDJSON_ASSERT(fp_ != 0); 30 | int c = fgetc(fp_); 31 | if (c != EOF) { 32 | current_ = (char)c; 33 | count_++; 34 | } 35 | else 36 | current_ = '\0'; 37 | } 38 | 39 | FILE* fp_; 40 | char current_; 41 | size_t count_; 42 | }; 43 | 44 | } // namespace rapidjson 45 | 46 | #endif // RAPIDJSON_FILESTREAM_H_ 47 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/internal/strfunc.h: -------------------------------------------------------------------------------- 1 | #ifndef RAPIDJSON_INTERNAL_STRFUNC_H_ 2 | #define RAPIDJSON_INTERNAL_STRFUNC_H_ 3 | 4 | namespace rapidjson { 5 | namespace internal { 6 | 7 | //! Custom strlen() which works on different character types. 8 | /*! \tparam Ch Character type (e.g. char, wchar_t, short) 9 | \param s Null-terminated input string. 10 | \return Number of characters in the string. 11 | \note This has the same semantics as strlen(), the return value is not number of Unicode codepoints. 12 | */ 13 | template 14 | inline SizeType StrLen(const Ch* s) { 15 | const Ch* p = s; 16 | while (*p != '\0') 17 | ++p; 18 | return SizeType(p - s); 19 | } 20 | 21 | } // namespace internal 22 | } // namespace rapidjson 23 | 24 | #endif // RAPIDJSON_INTERNAL_STRFUNC_H_ 25 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Json/rapidjson/stringbuffer.h: -------------------------------------------------------------------------------- 1 | #ifndef RAPIDJSON_STRINGBUFFER_H_ 2 | #define RAPIDJSON_STRINGBUFFER_H_ 3 | 4 | #include "rapidjson.h" 5 | #include "internal/stack.h" 6 | 7 | namespace rapidjson { 8 | 9 | //! Represents an in-memory output stream. 10 | /*! 11 | \tparam Encoding Encoding of the stream. 12 | \tparam Allocator type for allocating memory buffer. 13 | \implements Stream 14 | */ 15 | template 16 | struct GenericStringBuffer { 17 | typedef typename Encoding::Ch Ch; 18 | 19 | GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {} 20 | 21 | void Put(Ch c) { *stack_.template Push() = c; } 22 | 23 | void Clear() { stack_.Clear(); } 24 | 25 | const char* GetString() const { 26 | // Push and pop a null terminator. This is safe. 27 | *stack_.template Push() = '\0'; 28 | stack_.template Pop(1); 29 | 30 | return stack_.template Bottom(); 31 | } 32 | 33 | size_t Size() const { return stack_.GetSize(); } 34 | 35 | static const size_t kDefaultCapacity = 256; 36 | mutable internal::Stack stack_; 37 | }; 38 | 39 | typedef GenericStringBuffer > StringBuffer; 40 | 41 | //! Implement specialized version of PutN() with memset() for better performance. 42 | template<> 43 | inline void PutN(GenericStringBuffer >& stream, char c, size_t n) { 44 | memset(stream.stack_.Push(n), c, n * sizeof(c)); 45 | } 46 | 47 | } // namespace rapidjson 48 | 49 | #endif // RAPIDJSON_STRINGBUFFER_H_ 50 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ButtonReader/ButtonReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__ButtonReader__ 26 | #define __TestCpp__ButtonReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class ButtonReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | ButtonReader(); 38 | virtual ~ButtonReader(); 39 | 40 | static ButtonReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__ButtonReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/CheckBoxReader/CheckBoxReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__CheckBoxReader__ 26 | #define __TestCpp__CheckBoxReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class CheckBoxReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | CheckBoxReader(); 38 | virtual ~CheckBoxReader(); 39 | 40 | static CheckBoxReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__CheckBoxReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ImageViewReader/ImageViewReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__ImageViewReader__ 26 | #define __TestCpp__ImageViewReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class ImageViewReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | ImageViewReader(); 38 | virtual ~ImageViewReader(); 39 | 40 | static ImageViewReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__ImageViewReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LabelAtlasReader/LabelAtlasReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__LabelAtlasReader__ 26 | #define __TestCpp__LabelAtlasReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class LabelAtlasReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | LabelAtlasReader(); 38 | virtual ~LabelAtlasReader(); 39 | 40 | static LabelAtlasReader* getInstance(); 41 | 42 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 43 | }; 44 | 45 | NS_CC_EXT_END 46 | 47 | #endif /* defined(__TestCpp__LabelAtlasReader__) */ 48 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LabelBMFontReader/LabelBMFontReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__LabelBMFontReader__ 26 | #define __TestCpp__LabelBMFontReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class LabelBMFontReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | LabelBMFontReader(); 38 | virtual ~LabelBMFontReader(); 39 | 40 | static LabelBMFontReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__LabelBMFontReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LabelReader/LabelReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__LabelReader__ 26 | #define __TestCpp__LabelReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class LabelReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | LabelReader(); 38 | virtual ~LabelReader(); 39 | 40 | static LabelReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__LabelReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LayoutReader/LayoutReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__LayoutReader__ 26 | #define __TestCpp__LayoutReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class LayoutReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | LayoutReader(); 38 | virtual ~LayoutReader(); 39 | 40 | static LayoutReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__LayoutReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ListViewReader/ListViewReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__ListViewReader__ 26 | #define __TestCpp__ListViewReader__ 27 | 28 | #include "../ScrollViewReader/ScrollViewReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class ListViewReader : public ScrollViewReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | ListViewReader(); 38 | virtual ~ListViewReader(); 39 | 40 | static ListViewReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__ListViewReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/LoadingBarReader/LoadingBarReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__LoadingBarReader__ 26 | #define __TestCpp__LoadingBarReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class LoadingBarReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | LoadingBarReader(); 38 | virtual ~LoadingBarReader(); 39 | 40 | static LoadingBarReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__LoadingBarReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/PageViewReader/PageViewReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__PageViewReader__ 26 | #define __TestCpp__PageViewReader__ 27 | 28 | #include "../LayoutReader/LayoutReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class PageViewReader : public LayoutReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | PageViewReader(); 38 | virtual ~PageViewReader(); 39 | 40 | static PageViewReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__PageViewReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/ScrollViewReader/ScrollViewReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__ScrollViewReader__ 26 | #define __TestCpp__ScrollViewReader__ 27 | 28 | #include "../LayoutReader/LayoutReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class ScrollViewReader : public LayoutReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | ScrollViewReader(); 38 | virtual ~ScrollViewReader(); 39 | 40 | static ScrollViewReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__ScrollViewReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/SliderReader/SliderReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__SliderReader__ 26 | #define __TestCpp__SliderReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class SliderReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | SliderReader(); 38 | virtual ~SliderReader(); 39 | 40 | static SliderReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__SliderReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/TextFieldReader/TextFieldReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__TextFieldReader__ 26 | #define __TestCpp__TextFieldReader__ 27 | 28 | #include "../WidgetReader.h" 29 | 30 | NS_CC_EXT_BEGIN 31 | 32 | class TextFieldReader : public WidgetReader 33 | { 34 | public: 35 | DECLARE_CLASS_WIDGET_READER_INFO 36 | 37 | TextFieldReader(); 38 | virtual ~TextFieldReader(); 39 | 40 | static TextFieldReader* getInstance(); 41 | static void purge(); 42 | 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__TextFieldReader__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/WidgetReader.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__WidgetReader__ 26 | #define __TestCpp__WidgetReader__ 27 | 28 | #include "WidgetReaderProtocol.h" 29 | #include "../GUIReader.h" 30 | #include "../../GUI/System/GUIDefine.h" 31 | #include "../../GUI/BaseClasses/UIWidget.h" 32 | 33 | NS_CC_EXT_BEGIN 34 | 35 | class WidgetReader : public CCObject, public WidgetReaderProtocol 36 | { 37 | public: 38 | DECLARE_CLASS_WIDGET_READER_INFO 39 | 40 | WidgetReader(); 41 | virtual ~WidgetReader(); 42 | 43 | static WidgetReader* getInstance(); 44 | static void purge(); 45 | 46 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 47 | virtual void setColorPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options); 48 | }; 49 | 50 | NS_CC_EXT_END 51 | 52 | #endif /* defined(__TestCpp__WidgetReader__) */ 53 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Reader/WidgetReader/WidgetReaderProtocol.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2014 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TestCpp__WidgetReaderProtocol__ 26 | #define __TestCpp__WidgetReaderProtocol__ 27 | 28 | #include "../../Json/DictionaryHelper.h" 29 | 30 | namespace cocos2d 31 | { 32 | namespace ui 33 | { 34 | class Widget; 35 | } 36 | } 37 | 38 | NS_CC_EXT_BEGIN 39 | 40 | class WidgetReaderProtocol 41 | { 42 | public: 43 | virtual void setPropsFromJsonDictionary(ui::Widget* widget, const rapidjson::Value& options) = 0; 44 | }; 45 | 46 | NS_CC_EXT_END 47 | 48 | #endif /* defined(__TestCpp__WidgetReaderProtocol__) */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/CocoStudio/Trigger/TriggerBase.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __TRIGGEREVENT_H__ 26 | #define __TRIGGEREVENT_H__ 27 | 28 | #include "cocos2d.h" 29 | #include "cocos-ext.h" 30 | #include "ExtensionMacros.h" 31 | #include "ObjectFactory.h" 32 | #include "TriggerObj.h" 33 | #include "TriggerMng.h" 34 | 35 | NS_CC_EXT_BEGIN 36 | 37 | #define DECLARE_CLASS_INFO \ 38 | public: \ 39 | static cocos2d::extension::ObjectFactory::TInfo Type; \ 40 | static cocos2d::CCObject* createInstance(void); \ 41 | 42 | #define IMPLEMENT_CLASS_INFO(className) \ 43 | cocos2d::CCObject* className::createInstance(void) \ 44 | { \ 45 | return new className; \ 46 | } \ 47 | cocos2d::extension::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \ 48 | 49 | 50 | void sendEvent(unsigned int event); 51 | 52 | NS_CC_EXT_END 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/ExtensionMacros.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2012 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __EXTENSIONMARCROS_H__ 26 | #define __EXTENSIONMARCROS_H__ 27 | 28 | #define NS_CC_EXT_BEGIN namespace cocos2d { namespace extension { 29 | #define NS_CC_EXT_END }} 30 | #define USING_NS_CC_EXT using namespace cocos2d::extension 31 | 32 | 33 | #endif /* __EXTENSIONMARCROS_H__ */ 34 | 35 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FigmentBoy/DialogHandler/745e70f75576c207d5f7c5a717d7963536435d54/cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControl.h -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlExtensions.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2012 cocos2d-x.org 3 | 4 | http://www.cocos2d-x.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | ****************************************************************************/ 24 | 25 | #ifndef __CCCONTROL_EXTENSIONS_H__ 26 | #define __CCCONTROL_EXTENSIONS_H__ 27 | 28 | #include "CCScale9Sprite.h" 29 | #include "CCControl.h" 30 | #include "CCControlButton.h" 31 | #include "CCControlColourPicker.h" 32 | #include "CCControlPotentiometer.h" 33 | #include "CCControlSlider.h" 34 | #include "CCControlStepper.h" 35 | #include "CCControlSwitch.h" 36 | 37 | #endif -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FigmentBoy/DialogHandler/745e70f75576c207d5f7c5a717d7963536435d54/cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.h -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlSlider.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FigmentBoy/DialogHandler/745e70f75576c207d5f7c5a717d7963536435d54/cappuccino-sdk/incl/extensions/GUI/CCControlExtension/CCControlSlider.h -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/GUI/CCScrollView/CCTableViewCell.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2012 cocos2d-x.org 3 | Copyright (c) 2010 Sangwoo Im 4 | 5 | http://www.cocos2d-x.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | ****************************************************************************/ 25 | 26 | #ifndef __CCTABLEVIEWCELL_H__ 27 | #define __CCTABLEVIEWCELL_H__ 28 | 29 | #include "base_nodes/CCNode.h" 30 | #include "CCSorting.h" 31 | 32 | NS_CC_EXT_BEGIN 33 | 34 | /** 35 | * Abstract class for SWTableView cell node 36 | * @lua NA 37 | */ 38 | class CCTableViewCell: public CCNode, public CCSortableObject 39 | { 40 | public: 41 | CCTableViewCell() {} 42 | /** 43 | * The index used internally by SWTableView and its subclasses 44 | */ 45 | unsigned int getIdx(); 46 | void setIdx(unsigned int uIdx); 47 | /** 48 | * Cleans up any resources linked to this cell and resets idx property. 49 | */ 50 | void reset(); 51 | 52 | void setObjectID(unsigned int uIdx); 53 | unsigned int getObjectID(); 54 | private: 55 | unsigned int m_uIdx; 56 | }; 57 | 58 | NS_CC_EXT_END 59 | 60 | #endif /* __CCTABLEVIEWCELL_H__ */ 61 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/LocalStorage/LocalStorage.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Copyright (c) 2012 - Zynga Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | 23 | */ 24 | 25 | /* 26 | Local Storage support for the JS Bindings for iOS. 27 | Works on cocos2d-iphone and cocos2d-x. 28 | */ 29 | 30 | #ifndef __JSB_LOCALSTORAGE_H 31 | #define __JSB_LOCALSTORAGE_H 32 | 33 | #include 34 | #include 35 | 36 | /** Initializes the database. If path is null, it will create an in-memory DB */ 37 | void localStorageInit( const char *fullpath); 38 | 39 | /** Frees the allocated resources */ 40 | void localStorageFree(); 41 | 42 | /** sets an item in the LS */ 43 | void localStorageSetItem( const char *key, const char *value); 44 | 45 | /** gets an item from the LS */ 46 | const char* localStorageGetItem( const char *key ); 47 | 48 | /** removes an item from the LS */ 49 | void localStorageRemoveItem( const char *key ); 50 | 51 | #endif // __JSB_LOCALSTORAGE_H 52 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/physics_nodes/CCPhysicsDebugNode.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Scott Lembcke and Howling Moon Software 2 | * Copyright (c) 2012 cocos2d-x.org 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy 5 | * of this software and associated documentation files (the "Software"), to deal 6 | * in the Software without restriction, including without limitation the rights 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | * copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 | * SOFTWARE. 21 | */ 22 | 23 | #ifndef __PHYSICSNODES_DEBUGNODE_H__ 24 | #define __PHYSICSNODES_DEBUGNODE_H__ 25 | 26 | #include "cocos2d.h" 27 | #include "ExtensionMacros.h" 28 | 29 | #if CC_ENABLE_CHIPMUNK_INTEGRATION 30 | 31 | #include "chipmunk.h" 32 | 33 | NS_CC_EXT_BEGIN 34 | 35 | /** 36 | A CCBaseData that draws the components of a physics engine. 37 | 38 | Supported physics engines: 39 | - Chipmunk 40 | - Objective-Chipmunk 41 | 42 | @since v2.1 43 | @js NA 44 | @lua NA 45 | */ 46 | 47 | class CCPhysicsDebugNode : public CCDrawNode 48 | { 49 | protected: 50 | cpSpace *m_pSpacePtr; 51 | 52 | public: 53 | /** Create a debug node for a regular Chipmunk space. */ 54 | static CCPhysicsDebugNode* create(cpSpace *space); 55 | 56 | virtual ~CCPhysicsDebugNode(); 57 | 58 | virtual void draw(); 59 | 60 | cpSpace* getSpace() const; 61 | void setSpace(cpSpace *space); 62 | 63 | CCPhysicsDebugNode(); 64 | }; 65 | 66 | NS_CC_EXT_END 67 | 68 | #endif // CC_ENABLE_CHIPMUNK_INTEGRATION 69 | 70 | #endif // __PHYSICSNODES_DEBUGNODE_H__ 71 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/spine/AtlasAttachmentLoader.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013, Esoteric Software 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, this 9 | * list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | ******************************************************************************/ 25 | 26 | #ifndef SPINE_ATLASATTACHMENTLOADER_H_ 27 | #define SPINE_ATLASATTACHMENTLOADER_H_ 28 | 29 | #include 30 | #include 31 | 32 | namespace cocos2d { namespace extension { 33 | 34 | typedef struct { 35 | AttachmentLoader super; 36 | Atlas* atlas; 37 | } AtlasAttachmentLoader; 38 | 39 | AtlasAttachmentLoader* AtlasAttachmentLoader_create (Atlas* atlas); 40 | 41 | }} // namespace cocos2d { namespace extension { 42 | 43 | #endif /* SPINE_ATLASATTACHMENTLOADER_H_ */ 44 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/spine/Attachment.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013, Esoteric Software 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, this 9 | * list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | ******************************************************************************/ 25 | 26 | #ifndef SPINE_ATTACHMENT_H_ 27 | #define SPINE_ATTACHMENT_H_ 28 | 29 | namespace cocos2d { namespace extension { 30 | 31 | struct Slot; 32 | 33 | typedef enum { 34 | ATTACHMENT_REGION, ATTACHMENT_REGION_SEQUENCE 35 | } AttachmentType; 36 | 37 | typedef struct Attachment Attachment; 38 | struct Attachment { 39 | const char* const name; 40 | AttachmentType type; 41 | 42 | const void* const vtable; 43 | }; 44 | 45 | void Attachment_dispose (Attachment* self); 46 | 47 | }} // namespace cocos2d { namespace extension { 48 | 49 | #endif /* SPINE_ATTACHMENT_H_ */ 50 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/spine/BoneData.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013, Esoteric Software 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, this 9 | * list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | ******************************************************************************/ 25 | 26 | #ifndef SPINE_BONEDATA_H_ 27 | #define SPINE_BONEDATA_H_ 28 | 29 | namespace cocos2d { namespace extension { 30 | 31 | typedef struct BoneData BoneData; 32 | struct BoneData { 33 | const char* const name; 34 | BoneData* const parent; 35 | float length; 36 | float x, y; 37 | float rotation; 38 | float scaleX, scaleY; 39 | }; 40 | 41 | BoneData* BoneData_create (const char* name, BoneData* parent); 42 | void BoneData_dispose (BoneData* self); 43 | 44 | }} // namespace cocos2d { namespace extension { 45 | 46 | #endif /* SPINE_BONEDATA_H_ */ 47 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/spine/SlotData.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013, Esoteric Software 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, this 9 | * list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | ******************************************************************************/ 25 | 26 | #ifndef SPINE_SLOTDATA_H_ 27 | #define SPINE_SLOTDATA_H_ 28 | 29 | #include 30 | 31 | namespace cocos2d { namespace extension { 32 | 33 | typedef struct { 34 | const char* const name; 35 | const BoneData* const boneData; 36 | const char* const attachmentName; 37 | float r, g, b, a; 38 | } SlotData; 39 | 40 | SlotData* SlotData_create (const char* name, BoneData* boneData); 41 | void SlotData_dispose (SlotData* self); 42 | 43 | /* @param attachmentName May be 0 for no setup pose attachment. */ 44 | void SlotData_setAttachmentName (SlotData* self, const char* attachmentName); 45 | 46 | }} // namespace cocos2d { namespace extension { 47 | 48 | #endif /* SPINE_SLOTDATA_H_ */ 49 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/spine/spine-cocos2dx.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013, Esoteric Software 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, this 9 | * list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | ******************************************************************************/ 25 | 26 | #ifndef SPINE_COCOS2DX_H_ 27 | #define SPINE_COCOS2DX_H_ 28 | 29 | #include 30 | #include "cocos2d.h" 31 | #include 32 | #include 33 | 34 | namespace cocos2d { namespace extension { 35 | 36 | void RegionAttachment_updateQuad (RegionAttachment* self, Slot* slot, cocos2d::ccV3F_C4B_T2F_Quad* quad, bool premultiplied = false); 37 | 38 | }} // namespace cocos2d { namespace extension { 39 | 40 | #endif /* SPINE_COCOS2DX_H_ */ 41 | -------------------------------------------------------------------------------- /cappuccino-sdk/incl/extensions/spine/spine.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013, Esoteric Software 3 | * All rights reserved. 4 | * 5 | * Redistribution and use in source and binary forms, with or without 6 | * modification, are permitted provided that the following conditions are met: 7 | * 8 | * 1. Redistributions of source code must retain the above copyright notice, this 9 | * list of conditions and the following disclaimer. 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 14 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 16 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 18 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 19 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 20 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 21 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 23 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | ******************************************************************************/ 25 | 26 | #ifndef SPINE_SPINE_H_ 27 | #define SPINE_SPINE_H_ 28 | 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | 46 | #endif /* SPINE_SPINE_H_ */ 47 | -------------------------------------------------------------------------------- /cappuccino-sdk/lib/cappuccino.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FigmentBoy/DialogHandler/745e70f75576c207d5f7c5a717d7963536435d54/cappuccino-sdk/lib/cappuccino.lib -------------------------------------------------------------------------------- /cappuccino-sdk/lib/libExtensions.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FigmentBoy/DialogHandler/745e70f75576c207d5f7c5a717d7963536435d54/cappuccino-sdk/lib/libExtensions.lib --------------------------------------------------------------------------------