├── .gitignore ├── Add-To-Your-Own-Project ├── AnalyticX.cpp ├── AnalyticX.h ├── AnalyticX.mm ├── AnalyticXMacros.h ├── AnalyticXStringUtil.h ├── AnalyticXStringUtil.mm ├── AnalyticXStringUtilAndroid.cpp ├── AnalyticXStringUtilAndroid.h ├── Flurry.h ├── FlurryAgent.jar └── libFlurry.a ├── AnalyticX.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── AnalyticX ├── Classes │ ├── AnalyticX.cpp │ ├── AnalyticX.h │ ├── AnalyticXStringUtilAndroid.cpp │ ├── AnalyticXStringUtilAndroid.h │ ├── AppDelegate.cpp │ ├── AppDelegate.h │ ├── HelloWorldScene.cpp │ └── HelloWorldScene.h ├── Flurry.h ├── Prefix.pch ├── Resources │ ├── CloseNormal.png │ ├── CloseSelected.png │ ├── Default.png │ ├── HelloWorld.png │ ├── Icon-72.png │ ├── Icon-Small-50.png │ ├── Icon-Small.png │ ├── Icon-Small@2x.png │ ├── Icon.png │ ├── Icon@2x.png │ ├── Info.plist │ └── iTunesArtwork ├── ios │ ├── AnalyticX.mm │ ├── AnalyticXMacros.h │ ├── AnalyticXStringUtil.h │ ├── AnalyticXStringUtil.mm │ ├── AppController.h │ ├── AppController.mm │ ├── RootViewController.h │ ├── RootViewController.mm │ └── main.m ├── libFlurry.a ├── libs │ ├── CocosDenshion │ │ ├── android │ │ │ ├── Android.mk │ │ │ ├── SimpleAudioEngine.cpp │ │ │ └── jni │ │ │ │ ├── SimpleAudioEngineJni.cpp │ │ │ │ └── SimpleAudioEngineJni.h │ │ ├── include │ │ │ ├── Export.h │ │ │ └── SimpleAudioEngine.h │ │ └── ios │ │ │ ├── CDAudioManager.h │ │ │ ├── CDAudioManager.m │ │ │ ├── CDConfig.h │ │ │ ├── CDOpenALSupport.h │ │ │ ├── CDOpenALSupport.m │ │ │ ├── CocosDenshion.h │ │ │ ├── CocosDenshion.m │ │ │ ├── SimpleAudioEngine.mm │ │ │ ├── SimpleAudioEngine_objc.h │ │ │ └── SimpleAudioEngine_objc.m │ └── cocos2dx │ │ ├── Android.mk │ │ ├── CCCamera.cpp │ │ ├── CCCamera.h │ │ ├── CCConfiguration.cpp │ │ ├── CCConfiguration.h │ │ ├── CCDirector.cpp │ │ ├── CCDirector.h │ │ ├── CCDrawingPrimitives.cpp │ │ ├── CCDrawingPrimitives.h │ │ ├── CCScheduler.cpp │ │ ├── CCScheduler.h │ │ ├── actions │ │ ├── CCAction.cpp │ │ ├── CCAction.h │ │ ├── CCActionCamera.cpp │ │ ├── CCActionCamera.h │ │ ├── CCActionEase.cpp │ │ ├── CCActionEase.h │ │ ├── CCActionGrid.cpp │ │ ├── CCActionGrid.h │ │ ├── CCActionGrid3D.cpp │ │ ├── CCActionGrid3D.h │ │ ├── CCActionInstant.cpp │ │ ├── CCActionInstant.h │ │ ├── CCActionInterval.cpp │ │ ├── CCActionInterval.h │ │ ├── CCActionManager.cpp │ │ ├── CCActionManager.h │ │ ├── CCActionPageTurn3D.cpp │ │ ├── CCActionPageTurn3D.h │ │ ├── CCActionProgressTimer.cpp │ │ ├── CCActionProgressTimer.h │ │ ├── CCActionTiledGrid.cpp │ │ ├── CCActionTiledGrid.h │ │ ├── CCActionTween.cpp │ │ └── CCActionTween.h │ │ ├── base_nodes │ │ ├── CCAtlasNode.cpp │ │ ├── CCAtlasNode.h │ │ ├── CCNode.cpp │ │ └── CCNode.h │ │ ├── cocoa │ │ ├── CCAffineTransform.cpp │ │ ├── CCAffineTransform.h │ │ ├── CCArray.cpp │ │ ├── CCArray.h │ │ ├── CCAutoreleasePool.cpp │ │ ├── CCAutoreleasePool.h │ │ ├── CCData.cpp │ │ ├── CCData.h │ │ ├── CCDictionary.cpp │ │ ├── CCDictionary.h │ │ ├── CCGeometry.cpp │ │ ├── CCGeometry.h │ │ ├── CCInteger.h │ │ ├── CCNS.cpp │ │ ├── CCNS.h │ │ ├── CCObject.cpp │ │ ├── CCObject.h │ │ ├── CCSet.cpp │ │ ├── CCSet.h │ │ ├── CCString.cpp │ │ ├── CCString.h │ │ ├── CCZone.cpp │ │ └── CCZone.h │ │ ├── cocos2d.cpp │ │ ├── effects │ │ ├── CCGrabber.cpp │ │ ├── CCGrabber.h │ │ ├── CCGrid.cpp │ │ └── CCGrid.h │ │ ├── extensions │ │ ├── CCBReader │ │ │ ├── CCBCustomClass.cpp │ │ │ ├── CCBCustomClass.h │ │ │ ├── CCBReader.cpp │ │ │ └── CCBReader.h │ │ ├── CCControlExtension │ │ │ ├── CCControl.cpp │ │ │ ├── CCControl.h │ │ │ ├── CCControlButton.cpp │ │ │ ├── CCControlButton.h │ │ │ ├── CCControlColourPicker.cpp │ │ │ ├── CCControlColourPicker.h │ │ │ ├── CCControlExtensions.h │ │ │ ├── CCControlHuePicker.cpp │ │ │ ├── CCControlHuePicker.h │ │ │ ├── CCControlSaturationBrightnessPicker.cpp │ │ │ ├── CCControlSaturationBrightnessPicker.h │ │ │ ├── CCControlSlider.cpp │ │ │ ├── CCControlSlider.h │ │ │ ├── CCControlSwitch.cpp │ │ │ ├── CCControlSwitch.h │ │ │ ├── CCControlUtils.cpp │ │ │ ├── CCControlUtils.h │ │ │ ├── CCInvocation.cpp │ │ │ ├── CCInvocation.h │ │ │ ├── CCMenuPassive.cpp │ │ │ ├── CCMenuPassive.h │ │ │ ├── CCScale9Sprite.cpp │ │ │ ├── CCScale9Sprite.h │ │ │ ├── CCSpacer.cpp │ │ │ └── CCSpacer.h │ │ ├── CCListView │ │ │ ├── CCControlDefine.h │ │ │ ├── CCListView.cpp │ │ │ ├── CCListView.h │ │ │ ├── CCListViewCell.cpp │ │ │ └── CCListViewCell.h │ │ ├── CCNotificationCenter │ │ │ ├── CCNotificationCenter.cpp │ │ │ └── CCNotificationCenter.h │ │ └── CCTextureWatcher │ │ │ ├── CCTextureWatcher.cpp │ │ │ └── CCTextureWatcher.h │ │ ├── include │ │ ├── CCEventType.h │ │ ├── CCProtocols.h │ │ ├── ccConfig.h │ │ ├── ccMacros.h │ │ ├── ccTypes.h │ │ ├── cocos2d.h │ │ └── cocos2dExt.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.cpp │ │ ├── CCKeypadDelegate.h │ │ ├── CCKeypadDispatcher.cpp │ │ └── CCKeypadDispatcher.h │ │ ├── label_nodes │ │ ├── CCLabelAtlas.cpp │ │ ├── CCLabelAtlas.h │ │ ├── CCLabelBMFont.cpp │ │ ├── CCLabelBMFont.h │ │ ├── CCLabelTTF.cpp │ │ └── CCLabelTTF.h │ │ ├── layers_scenes_transitions_nodes │ │ ├── CCLayer.cpp │ │ ├── CCLayer.h │ │ ├── CCScene.cpp │ │ ├── CCScene.h │ │ ├── CCTransition.cpp │ │ ├── CCTransition.h │ │ ├── CCTransitionPageTurn.cpp │ │ ├── CCTransitionPageTurn.h │ │ ├── CCTransitionProgress.cpp │ │ └── CCTransitionProgress.h │ │ ├── menu_nodes │ │ ├── CCMenu.cpp │ │ ├── CCMenu.h │ │ ├── CCMenuItem.cpp │ │ └── CCMenuItem.h │ │ ├── misc_nodes │ │ ├── CCMotionStreak.cpp │ │ ├── CCMotionStreak.h │ │ ├── CCProgressTimer.cpp │ │ ├── CCProgressTimer.h │ │ ├── CCRenderTexture.cpp │ │ └── CCRenderTexture.h │ │ ├── particle_nodes │ │ ├── CCParticleBatchNode.cpp │ │ ├── CCParticleBatchNode.h │ │ ├── CCParticleExamples.cpp │ │ ├── CCParticleExamples.h │ │ ├── CCParticleSystem.cpp │ │ ├── CCParticleSystem.h │ │ ├── CCParticleSystemQuad.cpp │ │ └── CCParticleSystemQuad.h │ │ ├── platform │ │ ├── CCAccelerometerDelegate.h │ │ ├── CCApplicationProtocol.h │ │ ├── CCCommon.h │ │ ├── CCEGLViewProtocol.cpp │ │ ├── CCEGLViewProtocol.h │ │ ├── CCFileUtils.h │ │ ├── CCFileUtilsCommon_cpp.h │ │ ├── CCImage.h │ │ ├── CCImageCommon_cpp.h │ │ ├── CCPlatformConfig.h │ │ ├── CCPlatformMacros.h │ │ ├── CCSAXParser.cpp │ │ ├── CCSAXParser.h │ │ ├── CCStdC.cpp │ │ ├── CCStdC.h │ │ ├── CCThread.cpp │ │ ├── CCThread.h │ │ ├── android │ │ │ ├── CCAccelerometer.cpp │ │ │ ├── CCAccelerometer.h │ │ │ ├── CCApplication.cpp │ │ │ ├── CCApplication.h │ │ │ ├── CCCommon.cpp │ │ │ ├── CCEGLView.cpp │ │ │ ├── CCEGLView.h │ │ │ ├── CCFileUtils.cpp │ │ │ ├── CCGL.h │ │ │ ├── CCImage.cpp │ │ │ ├── CCPlatformDefine.h │ │ │ └── jni │ │ │ │ ├── IMEJni.cpp │ │ │ │ ├── IMEJni.h │ │ │ │ ├── JniHelper.cpp │ │ │ │ ├── JniHelper.h │ │ │ │ ├── MessageJni.cpp │ │ │ │ ├── MessageJni.h │ │ │ │ ├── SensorJni.cpp │ │ │ │ ├── SensorJni.h │ │ │ │ ├── SystemInfoJni.cpp │ │ │ │ ├── SystemInfoJni.h │ │ │ │ └── TouchesJni.cpp │ │ ├── ios │ │ │ ├── AccelerometerDelegateWrapper.h │ │ │ ├── AccelerometerDelegateWrapper.mm │ │ │ ├── CCAccelerometer.h │ │ │ ├── CCAccelerometer.mm │ │ │ ├── CCApplication.h │ │ │ ├── CCApplication.mm │ │ │ ├── CCCommon.mm │ │ │ ├── CCDirectorCaller.h │ │ │ ├── CCDirectorCaller.mm │ │ │ ├── CCEGLView.h │ │ │ ├── CCEGLView.mm │ │ │ ├── CCES2Renderer.h │ │ │ ├── CCES2Renderer.m │ │ │ ├── CCESRenderer.h │ │ │ ├── CCFileUtils.mm │ │ │ ├── CCGL.h │ │ │ ├── CCImage.mm │ │ │ ├── CCLock.cpp │ │ │ ├── CCLock.h │ │ │ ├── CCPlatformDefine.h │ │ │ ├── CCThread.mm │ │ │ ├── EAGLView.h │ │ │ ├── EAGLView.mm │ │ │ ├── FontLabel │ │ │ │ ├── FontLabel.h │ │ │ │ ├── FontLabel.m │ │ │ │ ├── FontLabelStringDrawing.h │ │ │ │ ├── FontLabelStringDrawing.m │ │ │ │ ├── FontManager.h │ │ │ │ ├── FontManager.m │ │ │ │ ├── ZAttributedString.h │ │ │ │ ├── ZAttributedString.m │ │ │ │ ├── ZAttributedStringPrivate.h │ │ │ │ ├── ZFont.h │ │ │ │ └── ZFont.m │ │ │ ├── OpenGL_Internal.h │ │ │ └── Simulation │ │ │ │ ├── AccelerometerSimulation.h │ │ │ │ └── AccelerometerSimulation.m │ │ ├── platform.cpp │ │ ├── platform.h │ │ ├── third_party │ │ │ ├── android │ │ │ │ └── prebuilt │ │ │ │ │ ├── libcurl │ │ │ │ │ ├── Android.mk │ │ │ │ │ ├── include │ │ │ │ │ │ └── curl │ │ │ │ │ │ │ ├── curl.h │ │ │ │ │ │ │ ├── curlbuild.h │ │ │ │ │ │ │ ├── curlrules.h │ │ │ │ │ │ │ ├── curlver.h │ │ │ │ │ │ │ ├── easy.h │ │ │ │ │ │ │ ├── mprintf.h │ │ │ │ │ │ │ ├── multi.h │ │ │ │ │ │ │ ├── stdcheaders.h │ │ │ │ │ │ │ ├── typecheck-gcc.h │ │ │ │ │ │ │ └── types.h │ │ │ │ │ └── libs │ │ │ │ │ │ ├── armeabi-v7a │ │ │ │ │ │ └── libcurl.a │ │ │ │ │ │ ├── armeabi │ │ │ │ │ │ └── libcurl.a │ │ │ │ │ │ └── x86 │ │ │ │ │ │ └── libcurl.a │ │ │ │ │ ├── libjpeg │ │ │ │ │ ├── Android.mk │ │ │ │ │ ├── include │ │ │ │ │ │ ├── jconfig.h │ │ │ │ │ │ ├── jerror.h │ │ │ │ │ │ ├── jmorecfg.h │ │ │ │ │ │ └── jpeglib.h │ │ │ │ │ └── libs │ │ │ │ │ │ ├── armeabi-v7a │ │ │ │ │ │ └── libjpeg.a │ │ │ │ │ │ ├── armeabi │ │ │ │ │ │ └── libjpeg.a │ │ │ │ │ │ └── x86 │ │ │ │ │ │ └── libjpeg.a │ │ │ │ │ ├── libpng │ │ │ │ │ ├── Android.mk │ │ │ │ │ ├── include │ │ │ │ │ │ ├── png.h │ │ │ │ │ │ ├── pngconf.h │ │ │ │ │ │ └── pngusr.h │ │ │ │ │ └── libs │ │ │ │ │ │ ├── armeabi-v7a │ │ │ │ │ │ └── libpng.a │ │ │ │ │ │ ├── armeabi │ │ │ │ │ │ └── libpng.a │ │ │ │ │ │ └── x86 │ │ │ │ │ │ └── libpng.a │ │ │ │ │ └── libxml2 │ │ │ │ │ ├── Android.mk │ │ │ │ │ ├── include │ │ │ │ │ └── libxml │ │ │ │ │ │ ├── DOCBparser.h │ │ │ │ │ │ ├── HTMLparser.h │ │ │ │ │ │ ├── HTMLtree.h │ │ │ │ │ │ ├── SAX.h │ │ │ │ │ │ ├── SAX2.h │ │ │ │ │ │ ├── c14n.h │ │ │ │ │ │ ├── catalog.h │ │ │ │ │ │ ├── chvalid.h │ │ │ │ │ │ ├── debugXML.h │ │ │ │ │ │ ├── dict.h │ │ │ │ │ │ ├── encoding.h │ │ │ │ │ │ ├── entities.h │ │ │ │ │ │ ├── globals.h │ │ │ │ │ │ ├── hash.h │ │ │ │ │ │ ├── list.h │ │ │ │ │ │ ├── nanoftp.h │ │ │ │ │ │ ├── nanohttp.h │ │ │ │ │ │ ├── parser.h │ │ │ │ │ │ ├── parserInternals.h │ │ │ │ │ │ ├── pattern.h │ │ │ │ │ │ ├── relaxng.h │ │ │ │ │ │ ├── schemasInternals.h │ │ │ │ │ │ ├── schematron.h │ │ │ │ │ │ ├── threads.h │ │ │ │ │ │ ├── tree.h │ │ │ │ │ │ ├── uri.h │ │ │ │ │ │ ├── valid.h │ │ │ │ │ │ ├── xinclude.h │ │ │ │ │ │ ├── xlink.h │ │ │ │ │ │ ├── xmlIO.h │ │ │ │ │ │ ├── xmlautomata.h │ │ │ │ │ │ ├── xmlerror.h │ │ │ │ │ │ ├── xmlexports.h │ │ │ │ │ │ ├── xmlmemory.h │ │ │ │ │ │ ├── xmlmodule.h │ │ │ │ │ │ ├── xmlreader.h │ │ │ │ │ │ ├── xmlregexp.h │ │ │ │ │ │ ├── xmlsave.h │ │ │ │ │ │ ├── xmlschemas.h │ │ │ │ │ │ ├── xmlschemastypes.h │ │ │ │ │ │ ├── xmlstring.h │ │ │ │ │ │ ├── xmlunicode.h │ │ │ │ │ │ ├── xmlversion.h │ │ │ │ │ │ ├── xmlwriter.h │ │ │ │ │ │ ├── xpath.h │ │ │ │ │ │ ├── xpathInternals.h │ │ │ │ │ │ └── xpointer.h │ │ │ │ │ └── libs │ │ │ │ │ ├── armeabi-v7a │ │ │ │ │ └── libxml2.a │ │ │ │ │ ├── armeabi │ │ │ │ │ └── libxml2.a │ │ │ │ │ └── x86 │ │ │ │ │ └── libxml2.a │ │ │ ├── ios │ │ │ │ ├── curl │ │ │ │ │ ├── curl.h │ │ │ │ │ ├── curlbuild.h │ │ │ │ │ ├── curlrules.h │ │ │ │ │ ├── curlver.h │ │ │ │ │ ├── easy.h │ │ │ │ │ ├── mprintf.h │ │ │ │ │ ├── multi.h │ │ │ │ │ ├── stdcheaders.h │ │ │ │ │ ├── typecheck-gcc.h │ │ │ │ │ └── types.h │ │ │ │ └── libraries │ │ │ │ │ └── libcurl.a │ │ │ └── win32 │ │ │ │ ├── OGLES │ │ │ │ ├── EGL │ │ │ │ │ ├── egl.h │ │ │ │ │ ├── eglext.h │ │ │ │ │ └── eglplatform.h │ │ │ │ ├── GLES2 │ │ │ │ │ ├── gl2.h │ │ │ │ │ ├── gl2ext.h │ │ │ │ │ ├── gl2extimg.h │ │ │ │ │ └── gl2platform.h │ │ │ │ └── KHR │ │ │ │ │ └── khrplatform.h │ │ │ │ ├── curl │ │ │ │ ├── curl.h │ │ │ │ ├── curlbuild.h │ │ │ │ ├── curlrules.h │ │ │ │ ├── curlver.h │ │ │ │ ├── easy.h │ │ │ │ ├── mprintf.h │ │ │ │ ├── multi.h │ │ │ │ ├── stdcheaders.h │ │ │ │ ├── typecheck-gcc.h │ │ │ │ └── types.h │ │ │ │ ├── libjpeg │ │ │ │ ├── jconfig.h │ │ │ │ ├── jconfig_linux.h │ │ │ │ ├── jconfig_win.h │ │ │ │ ├── jerror.h │ │ │ │ ├── jmorecfg.h │ │ │ │ └── jpeglib.h │ │ │ │ ├── libpng │ │ │ │ ├── png.h │ │ │ │ └── pngconf.h │ │ │ │ ├── libraries │ │ │ │ ├── libEGL.lib │ │ │ │ ├── libGLESv2.lib │ │ │ │ ├── libcurl_imp.lib │ │ │ │ ├── libiconv.lib │ │ │ │ ├── libjpeg.lib │ │ │ │ ├── libpng.lib │ │ │ │ ├── libxml2.lib │ │ │ │ ├── libzlib.lib │ │ │ │ └── pthreadVCE2.lib │ │ │ │ ├── libxml2 │ │ │ │ └── libxml │ │ │ │ │ ├── DOCBparser.h │ │ │ │ │ ├── HTMLparser.h │ │ │ │ │ ├── HTMLtree.h │ │ │ │ │ ├── SAX.h │ │ │ │ │ ├── SAX2.h │ │ │ │ │ ├── c14n.h │ │ │ │ │ ├── catalog.h │ │ │ │ │ ├── chvalid.h │ │ │ │ │ ├── debugXML.h │ │ │ │ │ ├── dict.h │ │ │ │ │ ├── encoding.h │ │ │ │ │ ├── entities.h │ │ │ │ │ ├── globals.h │ │ │ │ │ ├── hash.h │ │ │ │ │ ├── list.h │ │ │ │ │ ├── nanoftp.h │ │ │ │ │ ├── nanohttp.h │ │ │ │ │ ├── parser.h │ │ │ │ │ ├── parserInternals.h │ │ │ │ │ ├── pattern.h │ │ │ │ │ ├── relaxng.h │ │ │ │ │ ├── schemasInternals.h │ │ │ │ │ ├── schematron.h │ │ │ │ │ ├── threads.h │ │ │ │ │ ├── tree.h │ │ │ │ │ ├── uri.h │ │ │ │ │ ├── valid.h │ │ │ │ │ ├── xinclude.h │ │ │ │ │ ├── xlink.h │ │ │ │ │ ├── xmlIO.h │ │ │ │ │ ├── xmlautomata.h │ │ │ │ │ ├── xmlerror.h │ │ │ │ │ ├── xmlexports.h │ │ │ │ │ ├── xmlmemory.h │ │ │ │ │ ├── xmlmodule.h │ │ │ │ │ ├── xmlreader.h │ │ │ │ │ ├── xmlregexp.h │ │ │ │ │ ├── xmlsave.h │ │ │ │ │ ├── xmlschemas.h │ │ │ │ │ ├── xmlschemastypes.h │ │ │ │ │ ├── xmlstring.h │ │ │ │ │ ├── xmlunicode.h │ │ │ │ │ ├── xmlversion.h │ │ │ │ │ ├── xmlwriter.h │ │ │ │ │ ├── xpath.h │ │ │ │ │ ├── xpathInternals.h │ │ │ │ │ └── xpointer.h │ │ │ │ ├── pthread │ │ │ │ ├── pthread.h │ │ │ │ ├── sched.h │ │ │ │ └── semaphore.h │ │ │ │ ├── third_party_versions.txt │ │ │ │ └── zlib │ │ │ │ ├── zconf.h │ │ │ │ └── zlib.h │ │ └── win32 │ │ │ ├── CCAccelerometer.cpp │ │ │ ├── CCAccelerometer.h │ │ │ ├── CCApplication.cpp │ │ │ ├── CCApplication.h │ │ │ ├── CCCommon.cpp │ │ │ ├── CCEGLView.cpp │ │ │ ├── CCEGLView.h │ │ │ ├── CCFileUtils.cpp │ │ │ ├── CCGL.h │ │ │ ├── CCImage.cpp │ │ │ └── CCPlatformDefine.h │ │ ├── script_support │ │ ├── CCScriptSupport.cpp │ │ └── CCScriptSupport.h │ │ ├── shaders │ │ ├── CCGLProgram.cpp │ │ ├── CCGLProgram.h │ │ ├── CCShaderCache.cpp │ │ ├── CCShaderCache.h │ │ ├── ccGLStateCache.cpp │ │ ├── ccGLStateCache.h │ │ ├── ccShaderEx_SwitchMask_frag.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.cpp │ │ └── ccShaders.h │ │ ├── sprite_nodes │ │ ├── CCAnimation.cpp │ │ ├── CCAnimation.h │ │ ├── CCAnimationCache.cpp │ │ ├── CCAnimationCache.h │ │ ├── CCSprite.cpp │ │ ├── CCSprite.h │ │ ├── CCSpriteBatchNode.cpp │ │ ├── CCSpriteBatchNode.h │ │ ├── CCSpriteFrame.cpp │ │ ├── CCSpriteFrame.h │ │ ├── CCSpriteFrameCache.cpp │ │ └── CCSpriteFrameCache.h │ │ ├── support │ │ ├── CCPointExtension.cpp │ │ ├── CCPointExtension.h │ │ ├── CCProfiling.cpp │ │ ├── CCProfiling.h │ │ ├── CCUserDefault.cpp │ │ ├── CCUserDefault.h │ │ ├── CCVertex.cpp │ │ ├── CCVertex.h │ │ ├── TransformUtils.cpp │ │ ├── TransformUtils.h │ │ ├── base64.cpp │ │ ├── base64.h │ │ ├── ccUtils.cpp │ │ ├── ccUtils.h │ │ ├── data_support │ │ │ ├── ccCArray.h │ │ │ ├── uthash.h │ │ │ └── utlist.h │ │ ├── image_support │ │ │ ├── TGAlib.cpp │ │ │ └── TGAlib.h │ │ └── zip_support │ │ │ ├── ZipUtils.cpp │ │ │ ├── ZipUtils.h │ │ │ ├── ioapi.cpp │ │ │ ├── ioapi.h │ │ │ ├── unzip.cpp │ │ │ └── unzip.h │ │ ├── text_input_node │ │ ├── CCIMEDelegate.h │ │ ├── CCIMEDispatcher.cpp │ │ ├── CCIMEDispatcher.h │ │ ├── CCTextFieldTTF.cpp │ │ └── CCTextFieldTTF.h │ │ ├── textures │ │ ├── CCTexture2D.cpp │ │ ├── CCTexture2D.h │ │ ├── CCTextureAtlas.cpp │ │ ├── CCTextureAtlas.h │ │ ├── CCTextureCache.cpp │ │ ├── CCTextureCache.h │ │ ├── CCTexturePVR.cpp │ │ └── CCTexturePVR.h │ │ ├── tileMap_parallax_nodes │ │ ├── CCParallaxNode.cpp │ │ ├── CCParallaxNode.h │ │ ├── CCTMXLayer.cpp │ │ ├── CCTMXLayer.h │ │ ├── CCTMXObjectGroup.cpp │ │ ├── CCTMXObjectGroup.h │ │ ├── CCTMXTiledMap.cpp │ │ ├── CCTMXTiledMap.h │ │ ├── CCTMXXMLParser.cpp │ │ ├── CCTMXXMLParser.h │ │ ├── CCTileMapAtlas.cpp │ │ └── CCTileMapAtlas.h │ │ └── touch_dispatcher │ │ ├── CCTouch.h │ │ ├── CCTouchDelegateProtocol.h │ │ ├── CCTouchDispatcher.cpp │ │ ├── CCTouchDispatcher.h │ │ ├── CCTouchHandler.cpp │ │ └── CCTouchHandler.h └── proj.android │ ├── AndroidManifest.xml │ ├── ant.properties │ ├── assets │ ├── CloseNormal.png │ ├── CloseSelected.png │ ├── Default.png │ ├── HelloWorld.png │ ├── Icon-72.png │ ├── Icon-Small-50.png │ ├── Icon-Small.png │ ├── Icon-Small@2x.png │ ├── Icon.png │ ├── Icon@2x.png │ ├── Info.plist │ └── iTunesArtwork │ ├── build.xml │ ├── build_native.sh │ ├── jni │ ├── Android.mk │ ├── Application.mk │ ├── helloworld │ │ └── main.cpp │ └── list.sh │ ├── libs │ └── FlurryAgent.jar │ ├── local.properties │ ├── makefile │ ├── proguard-project.txt │ ├── project.properties │ ├── res │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ ├── layout │ │ └── game_demo.xml │ └── values │ │ └── strings.xml │ └── src │ ├── com │ └── diwublog │ │ └── AnalyticX │ │ ├── AnalyticX.java │ │ └── AnalyticXBridge.java │ └── org │ └── cocos2dx │ └── lib │ ├── Cocos2dxAccelerometer.java │ ├── Cocos2dxActivity.java │ ├── Cocos2dxBitmap.java │ ├── Cocos2dxEditText.java │ ├── Cocos2dxGLSurfaceView.java │ ├── Cocos2dxMusic.java │ ├── Cocos2dxRenderer.java │ ├── Cocos2dxSound.java │ └── Cocos2dxTypefaces.java ├── LICENSE.txt ├── README.md └── copyResults.sh /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.jar 19 | *.rar 20 | *.tar 21 | *.zip 22 | 23 | # Logs and databases # 24 | ###################### 25 | *.log 26 | *.sql 27 | *.sqlite 28 | 29 | # OS generated files # 30 | ###################### 31 | .DS_Store? 32 | ehthumbs.db 33 | Icon? 34 | Thumbs.db 35 | 36 | 37 | .DS_Store 38 | *.swp 39 | *~.nib 40 | 41 | build/ 42 | 43 | *.mode1v3 44 | *.mode2v3 45 | 46 | xcuserdata 47 | 48 | *.mode* 49 | *.pbxuser 50 | *.perspective* 51 | 52 | !project.pbxproj 53 | 54 | #.LSOverride# 55 | 56 | !AnalyticX/proj.android/libs/FlurryAgent.jar 57 | !Add-To-Your-Own-Project/FlurryAgent.jar 58 | AnalyticX/proj.android/libs/armeabi 59 | AnalyticX/proj.android/obj 60 | 61 | AnalyticX/proj.android/.classpath 62 | AnalyticX/proj.android/.project 63 | AnalyticX/proj.android/.settings 64 | AnalyticX/proj.android/gen 65 | AnalyticX/proj.android/bin 66 | AnalyticX.xcodeproj/project.xcworkspace/xcshareddata/ 67 | -------------------------------------------------------------------------------- /Add-To-Your-Own-Project/AnalyticXMacros.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXMacros.h 3 | // AnalyticX 4 | // 5 | // Created by haxpor on 11/22/14. 6 | // 7 | // 8 | 9 | #ifndef AnalyticX_AnalyticXMacros_h 10 | #define AnalyticX_AnalyticXMacros_h 11 | 12 | #ifdef FLURRY 13 | #define FLURRYLogEvent(text, ...) AnalyticX::flurryLogEvent(text, ##__VA_ARGS__) 14 | #else 15 | #define FLURRYLogEvent(text, ...) do {} while (0) 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /Add-To-Your-Own-Project/AnalyticXStringUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXStringUtil.h 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/10/12. 6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #ifndef AnalyticX_AnalyticXStringUtil_h 10 | #define AnalyticX_AnalyticXStringUtil_h 11 | 12 | #include "cocos2d.h" 13 | 14 | @interface AnalyticXStringUtil:NSObject 15 | 16 | + (NSString *)nsstringFromCString:(const char *)cstring; 17 | + (const char *)cstringFromNSString:(NSString *)nsstring; 18 | + (NSDictionary *)nsDictionaryFromCCDictionary:(cocos2d::CCDictionary *)ccDictionary; 19 | 20 | @end 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /Add-To-Your-Own-Project/AnalyticXStringUtilAndroid.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXStringUtilAndroid.h 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/14/12. 6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #ifndef AnalyticX_AnalyticXStringUtilAndroid_h 10 | #define AnalyticX_AnalyticXStringUtilAndroid_h 11 | 12 | #include "cocos2d.h" 13 | #include 14 | #include "platform/android/jni/JniHelper.h" 15 | 16 | class AnalyticXStringUtilAndroid { 17 | 18 | public: 19 | static jobjectArray jobjectArrayFromCCDictionary(cocos2d::JniMethodInfo minfo, cocos2d::CCDictionary * ccDictionary); 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /Add-To-Your-Own-Project/FlurryAgent.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/Add-To-Your-Own-Project/FlurryAgent.jar -------------------------------------------------------------------------------- /Add-To-Your-Own-Project/libFlurry.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/Add-To-Your-Own-Project/libFlurry.a -------------------------------------------------------------------------------- /AnalyticX.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AnalyticX/Classes/AnalyticXStringUtilAndroid.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXStringUtilAndroid.h 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/14/12. 6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #ifndef AnalyticX_AnalyticXStringUtilAndroid_h 10 | #define AnalyticX_AnalyticXStringUtilAndroid_h 11 | 12 | #include "cocos2d.h" 13 | #include 14 | #include "platform/android/jni/JniHelper.h" 15 | 16 | class AnalyticXStringUtilAndroid { 17 | 18 | public: 19 | static jobjectArray jobjectArrayFromCCDictionary(cocos2d::JniMethodInfo minfo, cocos2d::CCDictionary * ccDictionary); 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /AnalyticX/Classes/AppDelegate.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXAppDelegate.cpp 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/10/12. 6 | // Copyright __MyCompanyName__ 2012. All rights reserved. 7 | // 8 | 9 | #include "AppDelegate.h" 10 | 11 | #include "cocos2d.h" 12 | #include "HelloWorldScene.h" 13 | 14 | USING_NS_CC; 15 | 16 | AppDelegate::AppDelegate() 17 | { 18 | 19 | } 20 | 21 | AppDelegate::~AppDelegate() 22 | { 23 | } 24 | 25 | bool AppDelegate::applicationDidFinishLaunching() 26 | { 27 | // initialize director 28 | CCDirector *pDirector = CCDirector::sharedDirector(); 29 | pDirector->setOpenGLView(&CCEGLView::sharedOpenGLView()); 30 | 31 | // enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices. 32 | // pDirector->enableRetinaDisplay(true); 33 | 34 | // sets landscape mode 35 | // pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft); 36 | 37 | // turn on display FPS 38 | pDirector->setDisplayStats(true); 39 | 40 | // set FPS. the default value is 1.0/60 if you don't call this 41 | pDirector->setAnimationInterval(1.0 / 60); 42 | 43 | // create a scene. it's an autorelease object 44 | CCScene *pScene = HelloWorld::scene(); 45 | 46 | // run 47 | pDirector->runWithScene(pScene); 48 | 49 | return true; 50 | } 51 | 52 | // This function will be called when the app is inactive. When comes a phone call,it's be invoked too 53 | void AppDelegate::applicationDidEnterBackground() 54 | { 55 | CCDirector::sharedDirector()->pause(); 56 | CCDirector::sharedDirector()->stopAnimation(); 57 | 58 | // if you use SimpleAudioEngine, it must be pause 59 | // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic(); 60 | } 61 | 62 | // this function will be called when the app is active again 63 | void AppDelegate::applicationWillEnterForeground() 64 | { 65 | CCDirector::sharedDirector()->resume(); 66 | CCDirector::sharedDirector()->startAnimation(); 67 | 68 | // if you use SimpleAudioEngine, it must resume here 69 | // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic(); 70 | } 71 | -------------------------------------------------------------------------------- /AnalyticX/Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXAppDelegate.h 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/10/12. 6 | // Copyright __MyCompanyName__ 2012. All rights reserved. 7 | // 8 | 9 | #ifndef _APP_DELEGATE_H_ 10 | #define _APP_DELEGATE_H_ 11 | 12 | #include "CCApplication.h" 13 | 14 | /** 15 | @brief The cocos2d Application. 16 | 17 | The reason for implement as private inheritance is to hide some interface call by CCDirector. 18 | */ 19 | class AppDelegate : private cocos2d::CCApplication 20 | { 21 | public: 22 | AppDelegate(); 23 | virtual ~AppDelegate(); 24 | 25 | /** 26 | @brief Implement CCDirector and CCScene init code here. 27 | @return true Initialize success, app continue. 28 | @return false Initialize failed, app terminate. 29 | */ 30 | virtual bool applicationDidFinishLaunching(); 31 | 32 | /** 33 | @brief The function be called when the application enter background 34 | @param the pointer of the application 35 | */ 36 | virtual void applicationDidEnterBackground(); 37 | 38 | /** 39 | @brief The function be called when the application enter foreground 40 | @param the pointer of the application 41 | */ 42 | virtual void applicationWillEnterForeground(); 43 | }; 44 | 45 | #endif // _APP_DELEGATE_H_ 46 | 47 | -------------------------------------------------------------------------------- /AnalyticX/Classes/HelloWorldScene.h: -------------------------------------------------------------------------------- 1 | #ifndef __HELLOWORLD_SCENE_H__ 2 | #define __HELLOWORLD_SCENE_H__ 3 | 4 | #include "cocos2d.h" 5 | 6 | // Uncomment the following line to define FLURRY, or define it as per project-based (see Build Setting->Apple LLVM 6.0 - Preprocessing in XCode) 7 | //#define FLURRY 8 | #ifdef FLURRY 9 | #include "AnalyticX.h" 10 | #endif 11 | 12 | class HelloWorld : public cocos2d::CCLayer 13 | { 14 | public: 15 | // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone 16 | virtual bool init(); 17 | 18 | // there's no 'id' in cpp, so we recommand to return the exactly class pointer 19 | static cocos2d::CCScene* scene(); 20 | 21 | // a selector callback 22 | virtual void menuCloseCallback(CCObject* pSender); 23 | 24 | // add action to begin crashing the app 25 | void beginProcessToCrashApp(CCObject* pSender); 26 | // actually crash the app 27 | void makeItCrash(); 28 | 29 | // implement the "static node()" method manually 30 | LAYER_NODE_FUNC(HelloWorld); 31 | 32 | private: 33 | void printFlurryEventStatus(const char* name, AXFlurryEventRecordStatus status); 34 | }; 35 | 36 | #endif // __HELLOWORLD_SCENE_H__ 37 | -------------------------------------------------------------------------------- /AnalyticX/Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'AnalyticX' target in the 'AnalyticX' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /AnalyticX/Resources/CloseNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/CloseNormal.png -------------------------------------------------------------------------------- /AnalyticX/Resources/CloseSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/CloseSelected.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/Default.png -------------------------------------------------------------------------------- /AnalyticX/Resources/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/HelloWorld.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/Icon-72.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/Icon-Small-50.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/Icon-Small.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/Icon-Small@2x.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/Icon.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/Icon@2x.png -------------------------------------------------------------------------------- /AnalyticX/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIconFiles 14 | 15 | Icon.png 16 | Icon@2x.png 17 | Icon-72.png 18 | Icon-Small-50.png 19 | Icon-Small.png 20 | Icon-Small@2x.png 21 | 22 | CFBundleIdentifier 23 | com.yourcompany.${PRODUCT_NAME:rfc1034identifier} 24 | CFBundleInfoDictionaryVersion 25 | 6.0 26 | CFBundleName 27 | ${PRODUCT_NAME} 28 | CFBundlePackageType 29 | APPL 30 | CFBundleSignature 31 | ???? 32 | CFBundleVersion 33 | 1.0 34 | LSRequiresIPhoneOS 35 | 36 | UIPrerenderedIcon 37 | 38 | UIRequiredDeviceCapabilities 39 | 40 | accelerometer 41 | 42 | opengles-1 43 | 44 | 45 | UIStatusBarHidden 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /AnalyticX/Resources/iTunesArtwork: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/Resources/iTunesArtwork -------------------------------------------------------------------------------- /AnalyticX/ios/AnalyticXMacros.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXMacros.h 3 | // AnalyticX 4 | // 5 | // Created by haxpor on 11/22/14. 6 | // 7 | // 8 | 9 | #ifndef AnalyticX_AnalyticXMacros_h 10 | #define AnalyticX_AnalyticXMacros_h 11 | 12 | #ifdef FLURRY 13 | #define FLURRYLogEvent(text, ...) AnalyticX::flurryLogEvent(text, ##__VA_ARGS__) 14 | #else 15 | #define FLURRYLogEvent(text, ...) do {} while (0) 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /AnalyticX/ios/AnalyticXStringUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXStringUtil.h 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/10/12. 6 | // Copyright (c) 2012 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #ifndef AnalyticX_AnalyticXStringUtil_h 10 | #define AnalyticX_AnalyticXStringUtil_h 11 | 12 | #include "cocos2d.h" 13 | 14 | @interface AnalyticXStringUtil:NSObject 15 | 16 | + (NSString *)nsstringFromCString:(const char *)cstring; 17 | + (const char *)cstringFromNSString:(NSString *)nsstring; 18 | + (NSDictionary *)nsDictionaryFromCCDictionary:(cocos2d::CCDictionary *)ccDictionary; 19 | 20 | @end 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /AnalyticX/ios/AppController.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXAppController.h 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/10/12. 6 | // Copyright __MyCompanyName__ 2012. All rights reserved. 7 | // 8 | 9 | @class RootViewController; 10 | 11 | @interface AppController : NSObject { 12 | UIWindow *window; 13 | RootViewController *viewController; 14 | } 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /AnalyticX/ios/RootViewController.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 cocos2d-x.org 3 | Copyright (c) 2010 Ricardo Quesada 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 | #import 27 | 28 | 29 | @interface RootViewController : UIViewController { 30 | 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /AnalyticX/ios/RootViewController.mm: -------------------------------------------------------------------------------- 1 | // 2 | // AnalyticXAppController.h 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/10/12. 6 | // Copyright __MyCompanyName__ 2012. All rights reserved. 7 | // 8 | 9 | #import "RootViewController.h" 10 | 11 | 12 | @implementation RootViewController 13 | 14 | /* 15 | // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. 16 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { 17 | if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) { 18 | // Custom initialization 19 | } 20 | return self; 21 | } 22 | */ 23 | 24 | /* 25 | // Implement loadView to create a view hierarchy programmatically, without using a nib. 26 | - (void)loadView { 27 | } 28 | */ 29 | 30 | /* 31 | // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. 32 | - (void)viewDidLoad { 33 | [super viewDidLoad]; 34 | } 35 | 36 | */ 37 | // Override to allow orientations other than the default landscape orientation. 38 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 39 | return UIInterfaceOrientationIsLandscape( interfaceOrientation ); 40 | 41 | // switch to this line if you want to set portrait view 42 | // return UIInterfaceOrientationIsPortrait( interfaceOrientation ); 43 | } 44 | 45 | - (void)didReceiveMemoryWarning { 46 | // Releases the view if it doesn't have a superview. 47 | [super didReceiveMemoryWarning]; 48 | 49 | // Release any cached data, images, etc that aren't in use. 50 | } 51 | 52 | - (void)viewDidUnload { 53 | [super viewDidUnload]; 54 | // Release any retained subviews of the main view. 55 | // e.g. self.myOutlet = nil; 56 | } 57 | 58 | 59 | - (void)dealloc { 60 | [super dealloc]; 61 | } 62 | 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /AnalyticX/ios/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // AnalyticX 4 | // 5 | // Created by diwwu on 5/10/12. 6 | // Copyright __MyCompanyName__ 2012. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /AnalyticX/libFlurry.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libFlurry.a -------------------------------------------------------------------------------- /AnalyticX/libs/CocosDenshion/android/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_MODULE := cocosdenshion_static 5 | 6 | LOCAL_MODULE_FILENAME := libcocosdenshion 7 | 8 | LOCAL_SRC_FILES := SimpleAudioEngine.cpp \ 9 | jni/SimpleAudioEngineJni.cpp 10 | 11 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../include 12 | 13 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include \ 14 | $(LOCAL_PATH)/../../cocos2dx/include \ 15 | $(LOCAL_PATH)/../../cocos2dx/platform \ 16 | $(LOCAL_PATH)/../../cocos2dx/platform/android \ 17 | $(LOCAL_PATH)/../../cocos2dx/platform/android/jni 18 | 19 | LOCAL_LDLIBS := -llog 20 | 21 | include $(BUILD_STATIC_LIBRARY) 22 | -------------------------------------------------------------------------------- /AnalyticX/libs/CocosDenshion/android/jni/SimpleAudioEngineJni.h: -------------------------------------------------------------------------------- 1 | #ifndef __SIMPLE_AUDIO_ENGINE_JNI__ 2 | #define __SIMPLE_AUDIO_ENGINE_JNI__ 3 | 4 | #include 5 | 6 | extern "C" 7 | { 8 | extern void preloadBackgroundMusicJNI(const char *path); 9 | extern void playBackgroundMusicJNI(const char *path, bool isLoop); 10 | extern void stopBackgroundMusicJNI(); 11 | extern void pauseBackgroundMusicJNI(); 12 | extern void resumeBackgroundMusicJNI(); 13 | extern void rewindBackgroundMusicJNI(); 14 | extern bool isBackgroundMusicPlayingJNI(); 15 | extern float getBackgroundMusicVolumeJNI(); 16 | extern void setBackgroundMusicVolumeJNI(float volume); 17 | extern unsigned int playEffectJNI(const char* path, bool bLoop); 18 | extern void stopEffectJNI(unsigned int nSoundId); 19 | extern void endJNI(); 20 | extern float getEffectsVolumeJNI(); 21 | extern void setEffectsVolumeJNI(float volume); 22 | extern void preloadEffectJNI(const char *path); 23 | extern void unloadEffectJNI(const char* path); 24 | extern void pauseEffectJNI(unsigned int nSoundId); 25 | extern void pauseAllEffectsJNI(); 26 | extern void resumeEffectJNI(unsigned int nSoundId); 27 | extern void resumeAllEffectsJNI(); 28 | extern void stopAllEffectsJNI(); 29 | } 30 | 31 | #endif // __SIMPLE_AUDIO_ENGINE_JNI__ -------------------------------------------------------------------------------- /AnalyticX/libs/CocosDenshion/include/Export.h: -------------------------------------------------------------------------------- 1 | #ifndef __EXPORT_COMMON__ 2 | #define __EXPORT_COMMON__ 3 | 4 | #if defined(SHP) 5 | #include 6 | #define EXPORT_DLL _EXPORT_ 7 | #elif defined(_WIN32) 8 | #if defined(_EXPORT_DLL_) 9 | #define EXPORT_DLL __declspec(dllexport) 10 | #elif defined(IGNORE_EXPORT) 11 | #define EXPORT_DLL 12 | #else /* use a DLL library */ 13 | #define EXPORT_DLL __declspec(dllimport) 14 | #endif 15 | #else 16 | #if defined(_SHARED_) 17 | #define EXPORT_DLL __attribute__((visibility("default"))) 18 | #elif defined(IGNORE_EXPORT) 19 | #define EXPORT_DLL 20 | #else 21 | #define EXPORT_DLL 22 | #endif 23 | #endif 24 | 25 | #endif // end of __EXPORT_COMMON__ 26 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/actions/CCActionInterval.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/actions/CCActionInterval.cpp -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/actions/CCActionPageTurn3D.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 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 | @brief This action simulates a page turn from the bottom right hand corner of the screen. 33 | It's not much use by itself but is used by the PageTurnTransition. 34 | 35 | Based on an original paper by L Hong et al. 36 | http://www.parc.com/publication/1638/turning-pages-of-3d-electronic-books.html 37 | 38 | @since v0.8.2 39 | */ 40 | class CC_DLL CCPageTurn3D : public CCGrid3DAction 41 | { 42 | public: 43 | virtual void update(ccTime time); 44 | 45 | public: 46 | /** create the action */ 47 | static CCPageTurn3D* actionWithSize(const ccGridSize& gridSize, ccTime time); 48 | }; 49 | 50 | NS_CC_END 51 | 52 | #endif // __ACTION_CCPAGETURN3D_ACTION_H__ 53 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/actions/CCActionTiledGrid.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/actions/CCActionTiledGrid.cpp -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/cocoa/CCData.cpp: -------------------------------------------------------------------------------- 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 | 26 | #include "CCData.h" 27 | #include "CCFileUtils.h" 28 | 29 | #include 30 | 31 | using namespace std; 32 | 33 | NS_CC_BEGIN 34 | 35 | CCData::CCData(void) 36 | : m_pData(NULL) 37 | { 38 | } 39 | 40 | CCData::~CCData(void) 41 | { 42 | CC_SAFE_DELETE_ARRAY(m_pData); 43 | } 44 | 45 | CCData* CCData::dataWithContentsOfFile(const string &strPath) 46 | { 47 | CCFileData data(strPath.c_str(), "rb"); 48 | unsigned long nSize = data.getSize(); 49 | unsigned char* pBuffer = data.getBuffer(); 50 | 51 | if (! pBuffer) 52 | { 53 | return NULL; 54 | } 55 | 56 | CCData *pRet = new CCData(); 57 | pRet->m_pData = new char[nSize]; 58 | memcpy(pRet->m_pData, pBuffer, nSize); 59 | 60 | return pRet; 61 | } 62 | 63 | void* CCData::bytes(void) 64 | { 65 | return m_pData; 66 | } 67 | 68 | //@todo implement 69 | CCData* CCData::dataWithBytes(unsigned char *pBytes, int size) 70 | { 71 | CC_UNUSED_PARAM(pBytes); 72 | CC_UNUSED_PARAM(size); 73 | return NULL; 74 | } 75 | 76 | NS_CC_END 77 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/cocoa/CCData.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 __CCDATA_H__ 26 | #define __CCDATA_H__ 27 | 28 | #include "CCObject.h" 29 | #include 30 | 31 | NS_CC_BEGIN 32 | 33 | class CC_DLL CCData : public CCObject 34 | { 35 | public: 36 | CCData(void); 37 | ~CCData(void); 38 | 39 | void* bytes(void); 40 | 41 | public: 42 | static CCData* dataWithBytes(unsigned char *pBytes, int size); 43 | static CCData* dataWithContentsOfFile(const std::string &strPath); 44 | 45 | private: 46 | char *m_pData; 47 | }; 48 | 49 | NS_CC_END 50 | 51 | #endif //__CCDATA_H__ 52 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/cocoa/CCInteger.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCINTEGER_H__ 2 | #define __CCINTEGER_H__ 3 | 4 | #include "CCObject.h" 5 | 6 | NS_CC_BEGIN 7 | 8 | class CC_DLL CCInteger : public CCObject 9 | { 10 | public: 11 | CCInteger(int v) 12 | : m_nValue(v) {} 13 | int getValue() const {return m_nValue;} 14 | 15 | static CCInteger* integerWithInt(int v) 16 | { 17 | CCInteger* pRet = new CCInteger(v); 18 | pRet->autorelease(); 19 | return pRet; 20 | } 21 | private: 22 | int m_nValue; 23 | }; 24 | 25 | NS_CC_END 26 | 27 | #endif /* __CCINTEGER_H__ */ 28 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/cocoa/CCZone.cpp: -------------------------------------------------------------------------------- 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 | #include "CCZone.h" 25 | #include "CCObject.h" 26 | 27 | NS_CC_BEGIN 28 | 29 | CCZone::CCZone(CCObject *pObject) 30 | { 31 | m_pCopyObject = pObject; 32 | } 33 | 34 | NS_CC_END 35 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 29 | #include "CCPlatformMacros.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | class CCObject; 34 | 35 | class CC_DLL CCZone 36 | { 37 | public: 38 | CCZone(CCObject *pObject = NULL); 39 | 40 | public: 41 | CCObject *m_pCopyObject; 42 | }; 43 | 44 | NS_CC_END 45 | 46 | #endif // __CC_ZONE_H__ 47 | 48 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/cocos2d.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 cocos2d-x.org 3 | Copyright (c) 2008-2010 Ricardo Quesada 4 | Copyright (c) 2011 Zynga Inc. 5 | 6 | http://www.cocos2d-x.org 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | ****************************************************************************/ 26 | 27 | #include "cocos2d.h" 28 | 29 | NS_CC_BEGIN 30 | 31 | const char* cocos2dVersion() 32 | { 33 | return "cocos2d-2.0-rc0a-x-0.1.0"; 34 | } 35 | 36 | NS_CC_END 37 | 38 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/effects/CCGrabber.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 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 "CCObject.h" 30 | #include "CCGL.h" 31 | 32 | NS_CC_BEGIN 33 | class CCTexture2D; 34 | 35 | /** FBO class that grabs the the contents of the screen */ 36 | class CCGrabber : public CCObject 37 | { 38 | public: 39 | CCGrabber(void); 40 | ~CCGrabber(void); 41 | 42 | void grab(CCTexture2D *pTexture); 43 | void beforeRender(CCTexture2D *pTexture); 44 | void afterRender(CCTexture2D *pTexture); 45 | 46 | protected: 47 | GLuint m_fbo; 48 | GLint m_oldFBO; 49 | GLfloat m_oldClearColor[4]; 50 | }; 51 | 52 | NS_CC_END 53 | 54 | #endif // __EFFECTS_CCGRABBER_H__ 55 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCControl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCControl.cpp -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCControl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCControl.h -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCControlExtensions.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCCONTROL_EXTENSIONS_H__ 2 | #define __CCCONTROL_EXTENSIONS_H__ 3 | 4 | #include "CCControl.h" 5 | #include "CCControlButton.h" 6 | #include "CCControlColourPicker.h" 7 | #include "CCControlHuePicker.h" 8 | #include "CCControlSaturationBrightnessPicker.h" 9 | #include "CCControlSlider.h" 10 | #include "CCControlSwitch.h" 11 | #include "CCMenuPassive.h" 12 | #include "CCSpacer.h" 13 | 14 | #endif -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCInvocation.cpp: -------------------------------------------------------------------------------- 1 | #include "CCInvocation.h" 2 | 3 | NS_CC_EXT_BEGIN 4 | 5 | CCInvocation::CCInvocation(CCObject* target, SEL_MenuHandler action, CCControlEvent controlEvent) 6 | { 7 | m_target=target; 8 | m_action=action; 9 | m_controlEvent=controlEvent; 10 | } 11 | 12 | void CCInvocation::invoke(CCObject* sender) 13 | { 14 | if (m_target && m_action) 15 | { 16 | (m_target->*m_action)(sender); 17 | } 18 | } 19 | 20 | NS_CC_EXT_END 21 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCInvocation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Helper class to store targets and selectors (and eventually, params?) in the same CCMutableArray. Basically a very crude form of a NSInvocation 4 | */ 5 | #ifndef __CCINVOCATION_H__ 6 | #define __CCINVOCATION_H__ 7 | 8 | #include "CCObject.h" 9 | 10 | NS_CC_EXT_BEGIN 11 | 12 | typedef unsigned int CCControlEvent; 13 | 14 | class CC_DLL CCInvocation : public CCObject 15 | { 16 | CC_SYNTHESIZE_READONLY(SEL_MenuHandler, m_action, Action); 17 | CC_SYNTHESIZE_READONLY(CCObject*, m_target, Target); 18 | CC_SYNTHESIZE_READONLY(CCControlEvent, m_controlEvent, ControlEvent); 19 | 20 | public: 21 | CCInvocation(CCObject* target, SEL_MenuHandler action, CCControlEvent controlEvent); 22 | 23 | void invoke(CCObject* sender); 24 | }; 25 | 26 | NS_CC_EXT_END 27 | 28 | #endif -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCMenuPassive.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * A menu that does not send any events, it's simply a passive container (lets the contents do their own thing) of CCNodes 4 | */ 5 | #ifndef __CCMENU_PASSIVE_H__ 6 | #define __CCMENU_PASSIVE_H__ 7 | 8 | #include "CCControl.h" 9 | 10 | NS_CC_EXT_BEGIN 11 | 12 | class CC_DLL CCMenuPassive : public CCLayer, public CCRGBAProtocol 13 | { 14 | /** Color: conforms with CCRGBAProtocol protocol */ 15 | CC_PROPERTY_PASS_BY_REF(ccColor3B, m_tColor, Color); 16 | /** Opacity: conforms with CCRGBAProtocol protocol */ 17 | CC_PROPERTY(GLubyte, m_cOpacity, Opacity); 18 | 19 | public: 20 | /** creates an empty CCMenu */ 21 | static CCMenuPassive* node(); 22 | 23 | /** creates a CCMenu with it's items */ 24 | static CCMenuPassive* menuWithItems(CCNode* item, ...); 25 | 26 | /** creates a CCMenu with it's item, then use addChild() to add 27 | * other items. It is used for script, it can't init with undetermined 28 | * number of variables. 29 | */ 30 | static CCMenuPassive*menuWithItem(CCNode* item); 31 | 32 | /** initializes a CCMenu with it's items */ 33 | bool initWithItems(CCNode* item, va_list args); 34 | 35 | /** align items vertically */ 36 | void alignItemsVertically(); 37 | /** align items vertically with padding 38 | @since v0.7.2 39 | */ 40 | void alignItemsVerticallyWithPadding(float padding); 41 | 42 | /** align items horizontally */ 43 | void alignItemsHorizontally(); 44 | /** align items horizontally with padding 45 | @since v0.7.2 46 | */ 47 | void alignItemsHorizontallyWithPadding(float padding); 48 | 49 | /** align items in rows of columns */ 50 | void alignItemsInColumns(unsigned int columns, ...); 51 | void alignItemsInColumns(unsigned int columns, va_list args); 52 | 53 | /** align items in columns of rows */ 54 | void alignItemsInRows(unsigned int rows, ...); 55 | void alignItemsInRows(unsigned int rows, va_list args); 56 | 57 | //RGBA protocol 58 | virtual void setIsOpacityModifyRGB(bool bValue) {CC_UNUSED_PARAM(bValue);} 59 | virtual bool getIsOpacityModifyRGB(void) { return false;} 60 | }; 61 | 62 | NS_CC_EXT_END 63 | 64 | #endif -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCSpacer.cpp: -------------------------------------------------------------------------------- 1 | #include "CCSpacer.h" 2 | 3 | NS_CC_EXT_BEGIN 4 | 5 | CCSpacer* CCSpacer::verticalSpacer(float space) 6 | { 7 | CCSpacer *pRet = new CCSpacer(); 8 | pRet->init(); 9 | pRet->setContentSize(CCSizeMake(0, space)); 10 | pRet->autorelease(); 11 | return pRet; 12 | } 13 | 14 | CCSpacer* CCSpacer::horizontalSpacer(float space) 15 | { 16 | CCSpacer *pRet = new CCSpacer(); 17 | pRet->init(); 18 | pRet->setContentSize(CCSizeMake(space, 0)); 19 | pRet->autorelease(); 20 | return pRet; 21 | } 22 | 23 | NS_CC_EXT_END 24 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCControlExtension/CCSpacer.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCSPACER_H__ 2 | #define __CCSPACER_H__ 3 | 4 | #include "CCLayer.h" 5 | 6 | NS_CC_EXT_BEGIN 7 | 8 | class CC_DLL CCSpacer: public CCLayer 9 | { 10 | public: 11 | static CCSpacer* verticalSpacer(float space); 12 | static CCSpacer* horizontalSpacer(float space); 13 | }; 14 | 15 | NS_CC_EXT_END 16 | 17 | #endif -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/extensions/CCListView/CCControlDefine.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2012 cocos2d-x.org 3 | Copyright (c) 2012 NetGragon 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 __CCCONTROL_DEFINE_H__ 27 | #define __CCCONTROL_DEFINE_H__ 28 | 29 | NS_CC_EXT_BEGIN 30 | 31 | typedef enum 32 | { 33 | PARENT_CENTER, 34 | VERTICAL_TOP, 35 | VERTICAL_BOTTOM, 36 | HORIZONTAL_LEFT, 37 | HORIZONTAL_RIGHT, 38 | ABS_WITH_PIXEL, 39 | ABS_WITH_PERCENT, 40 | REF_PREV_X_INC, 41 | REF_PREV_X_DEC, 42 | REF_PREV_Y_INC, 43 | REF_PREV_Y_DEC, 44 | REL_FLOW 45 | } LAYOUT_TYPE; 46 | 47 | typedef struct 48 | { 49 | LAYOUT_TYPE t; 50 | union 51 | { 52 | float pixel_val; 53 | float percent_val; 54 | } val; 55 | } LayoutParamVal; 56 | 57 | typedef struct 58 | { 59 | LayoutParamVal val_x; 60 | LayoutParamVal val_y; 61 | float padding; 62 | bool wrap; 63 | } LayoutParam; 64 | 65 | NS_CC_EXT_END 66 | 67 | #endif /* __CCCONTROL_DEFINE_H__ */ 68 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | #define EVNET_COME_TO_FOREGROUND "event_come_to_foreground" 10 | 11 | #endif // __CCEVENT_TYPE_H__ 12 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/include/cocos2dExt.h: -------------------------------------------------------------------------------- 1 | #ifndef __COCOS2DEXT_H__ 2 | #define __COCOS2DEXT_H__ 3 | 4 | #include "extensions/CCNotificationCenter/CCNotificationCenter.h" 5 | #include "extensions/CCControlExtension/CCControlExtensions.h" 6 | #include "extensions/CCListView/CCListView.h" 7 | #include "extensions/CCTextureWatcher/CCTextureWatcher.h" 8 | 9 | #endif /* __COCOS2DEXT_H__ */ 10 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 "CCPlatformMacros.h" 30 | #include "vec3.h" 31 | #include "utility.h" 32 | 33 | #ifdef __cplusplus 34 | extern "C" { 35 | #endif 36 | 37 | /** 38 | * A struture 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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | #ifdef ANDROID 29 | // android don't have arm/arch.h but it defines __arm__ 30 | #else 31 | #include "arm/arch.h" 32 | #endif //ANDROID 33 | #endif // __arm__ 34 | 35 | // Matrixes are assumed to be stored in column major format according to OpenGL 36 | // specification. 37 | 38 | // Multiplies two 4x4 matrices (a,b) outputing 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), outputing a vector 4 42 | void NEON_Matrix4Vector4Mul(const float* m, const float* v, float* output); 43 | 44 | 45 | #endif // __NEON_MATRIX_IMPL_H__ 46 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 "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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/layers_scenes_transitions_nodes/CCScene.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 cocos2d-x.org 3 | Copyright (c) 2008-2010 Ricardo Quesada 4 | Copyright (c) 2011 Zynga Inc. 5 | 6 | http://www.cocos2d-x.org 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | ****************************************************************************/ 26 | 27 | #include "CCScene.h" 28 | #include "CCPointExtension.h" 29 | #include "CCDirector.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | CCScene::CCScene() 34 | { 35 | m_bIsRelativeAnchorPoint = false; 36 | setAnchorPoint(ccp(0.5f, 0.5f)); 37 | } 38 | 39 | CCScene::~CCScene() 40 | { 41 | } 42 | 43 | bool CCScene::init() 44 | { 45 | bool bRet = false; 46 | do 47 | { 48 | CCDirector * pDirector; 49 | CC_BREAK_IF( ! (pDirector = CCDirector::sharedDirector()) ); 50 | this->setContentSize(pDirector->getWinSize()); 51 | // success 52 | bRet = true; 53 | } while (0); 54 | return bRet; 55 | } 56 | 57 | CCScene *CCScene::node() 58 | { 59 | CCScene *pRet = new CCScene(); 60 | if (pRet && pRet->init()) 61 | { 62 | pRet->autorelease(); 63 | return pRet; 64 | } 65 | else 66 | { 67 | CC_SAFE_DELETE(pRet); 68 | return NULL; 69 | } 70 | } 71 | 72 | NS_CC_END 73 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | typedef struct 35 | { 36 | double x; 37 | double y; 38 | double z; 39 | 40 | double timestamp; 41 | } CCAcceleration; 42 | 43 | /** 44 | @brief 45 | The CCAccelerometerDelegate defines a single method for 46 | receiving acceleration-related data from the system. 47 | */ 48 | class CC_DLL CCAccelerometerDelegate 49 | { 50 | public: 51 | virtual void didAccelerate(CCAcceleration* pAccelerationValue) {CC_UNUSED_PARAM(pAccelerationValue);} 52 | }; 53 | 54 | NS_CC_END 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/CCApplicationProtocol.h: -------------------------------------------------------------------------------- 1 | #ifndef __CC_APPLICATION_PROTOCOL_H__ 2 | #define __CC_APPLICATION_PROTOCOL_H__ 3 | 4 | #include "ccTypes.h" 5 | 6 | NS_CC_BEGIN 7 | 8 | class CCRect; 9 | 10 | class CC_DLL CCApplicationProtocol 11 | { 12 | public: 13 | 14 | virtual ~CCApplicationProtocol() {} 15 | 16 | /** 17 | @brief Implement CCDirector and CCScene init code here. 18 | @return true Initialize success, app continue. 19 | @return false Initialize failed, app terminate. 20 | */ 21 | virtual bool applicationDidFinishLaunching() = 0; 22 | 23 | /** 24 | @brief The function be called when the application enter background 25 | @param the pointer of the application 26 | */ 27 | virtual void applicationDidEnterBackground() = 0; 28 | 29 | /** 30 | @brief The function be called when the application enter foreground 31 | @param the pointer of the application 32 | */ 33 | virtual void applicationWillEnterForeground() = 0; 34 | 35 | /** 36 | @brief Callback by CCDirector for limit FPS. 37 | @interval The time, which expressed in second in second, between current frame and next. 38 | */ 39 | virtual void setAnimationInterval(double interval) = 0; 40 | 41 | /** 42 | @brief Get current language config 43 | @return Current language config 44 | */ 45 | virtual ccLanguageType getCurrentLanguage() = 0; 46 | 47 | }; 48 | 49 | NS_CC_END 50 | 51 | #endif // __CC_APPLICATION_PROTOCOL_H__ 52 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/CCCommon.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_COMMON_H__ 26 | #define __CC_COMMON_H__ 27 | 28 | #include "CCPlatformMacros.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | /// The max length of CCLog message. 33 | static const int kMaxLogLen = 16*1024; 34 | 35 | /** 36 | @brief Output Debug message. 37 | */ 38 | void CC_DLL CCLog(const char * pszFormat, ...); 39 | 40 | /** 41 | * lua can not deal with ... 42 | */ 43 | void CC_DLL CCLuaLog(const char * pszFormat); 44 | 45 | 46 | /** 47 | @brief Pop out a message box 48 | */ 49 | void CC_DLL CCMessageBox(const char * pszMsg, const char * pszTitle); 50 | 51 | /** 52 | @brief Enum the language type supportted now 53 | */ 54 | typedef enum LanguageType 55 | { 56 | kLanguageEnglish = 0, 57 | kLanguageChinese, 58 | kLanguageFrench, 59 | kLanguageItalian, 60 | kLanguageGerman, 61 | kLanguageSpanish, 62 | kLanguageRussian 63 | } ccLanguageType; 64 | 65 | NS_CC_END 66 | 67 | #endif // __CC_COMMON_H__ 68 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/CCEGLViewProtocol.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCEGLVIEWPROTOCOL_H__ 2 | #define __CCEGLVIEWPROTOCOL_H__ 3 | 4 | #include "ccTypes.h" 5 | 6 | NS_CC_BEGIN 7 | 8 | #define CC_MAX_TOUCHES 5 9 | 10 | class EGLTouchDelegate; 11 | class CCSet; 12 | 13 | class CC_DLL CCEGLViewProtocol 14 | { 15 | public: 16 | CCEGLViewProtocol(); 17 | virtual ~CCEGLViewProtocol(); 18 | 19 | virtual void end() = 0; 20 | virtual bool isOpenGLReady() = 0; 21 | virtual void swapBuffers() = 0; 22 | virtual void setIMEKeyboardState(bool bOpen) = 0; 23 | 24 | virtual bool isIpad(); 25 | virtual CCRect getViewPort(); 26 | virtual CCSize getSize(); 27 | virtual void setFrameSize(float width, float height); 28 | virtual void setDesignResolutionSize(float width, float height); 29 | virtual void setTouchDelegate(EGLTouchDelegate * pDelegate); 30 | virtual float getScreenScaleFactor(); 31 | virtual bool canSetContentScaleFactor(); 32 | virtual void setContentScaleFactor(float contentScaleFactor); 33 | virtual void setViewPortInPoints(float x , float y , float w , float h); 34 | virtual void setScissorInPoints(float x , float y , float w , float h); 35 | virtual float getMainScreenScale(); 36 | virtual void setViewName(const char* pszViewName); 37 | const char* getViewName(); 38 | 39 | /** handle touch events by default, if you want to custom your handles, please override these functions */ 40 | virtual void handleTouchesBegin(int num, int ids[], float xs[], float ys[]); 41 | virtual void handleTouchesMove(int num, int ids[], float xs[], float ys[]); 42 | virtual void handleTouchesEnd(int num, int ids[], float xs[], float ys[]); 43 | virtual void handleTouchesCancel(int num, int ids[], float xs[], float ys[]); 44 | 45 | private: 46 | void getSetOfTouchesEndOrCancel(CCSet& set, int num, int ids[], float xs[], float ys[]); 47 | protected: 48 | bool m_bNeedScale; 49 | EGLTouchDelegate* m_pDelegate; 50 | float m_fScreenScaleFactor; 51 | CCSize m_sSizeInPixel; 52 | CCSize m_sSizeInPoint; 53 | CCRect m_rcViewPort; 54 | char m_szViewName[50]; 55 | }; 56 | 57 | NS_CC_END 58 | 59 | #endif /* __CCEGLVIEWPROTOCOL_H__ */ 60 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/CCStdC.cpp: -------------------------------------------------------------------------------- 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 | #include "CCStdC.h" 26 | 27 | #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) 28 | 29 | int CC_DLL gettimeofday(struct timeval * val, struct timezone *) 30 | { 31 | if (val) 32 | { 33 | LARGE_INTEGER liTime, liFreq; 34 | QueryPerformanceFrequency( &liFreq ); 35 | QueryPerformanceCounter( &liTime ); 36 | val->tv_sec = (long)( liTime.QuadPart / liFreq.QuadPart ); 37 | val->tv_usec = (long)( liTime.QuadPart * 1000000.0 / liFreq.QuadPart - val->tv_sec * 1000000.0 ); 38 | } 39 | return 0; 40 | } 41 | #elif (CC_TARGET_PLATFORM == CC_PLATFORM_BADA) 42 | 43 | using namespace Osp::System; 44 | 45 | int CC_DLL gettimeofday(struct timeval * val, struct timezone *) 46 | { 47 | if (val) 48 | { 49 | long long curTick = 0; 50 | SystemTime::GetTicks(curTick); 51 | unsigned int ms = curTick; 52 | val->tv_sec = ms / 1000; 53 | val->tv_usec = (ms % 1000) * 1000; 54 | } 55 | return 0; 56 | } 57 | 58 | 59 | #endif // CC_PLATFORM_WIN32 60 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/CCThread.cpp: -------------------------------------------------------------------------------- 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 | #include "CCThread.h" 26 | 27 | NS_CC_BEGIN 28 | 29 | CCThread::~CCThread() 30 | { 31 | 32 | } 33 | 34 | void CCThread::createAutoreleasePool() 35 | { 36 | 37 | } 38 | 39 | NS_CC_END 40 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | /* On iOS, should create autorelease pool when create a new thread 34 | * and release it when the thread end. 35 | */ 36 | class CC_DLL CCThread 37 | { 38 | public: 39 | CCThread() : m_pAutoreasePool(0) {} 40 | ~CCThread(); 41 | 42 | void createAutoreleasePool(); 43 | 44 | private: 45 | void *m_pAutoreasePool; 46 | }; 47 | 48 | NS_CC_END 49 | 50 | #endif // __CC_PLATFORM_THREAD_H__ 51 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/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_ANDROID_CCACCELEROMETER_H__ 26 | #define __PLATFORM_ANDROID_CCACCELEROMETER_H__ 27 | 28 | #include "CCCommon.h" 29 | #include "CCAccelerometerDelegate.h" 30 | 31 | namespace cocos2d { 32 | 33 | class CC_DLL CCAccelerometer 34 | { 35 | public: 36 | CCAccelerometer(); 37 | ~CCAccelerometer(); 38 | 39 | void setDelegate(CCAccelerometerDelegate* pDelegate); 40 | void update(float x, float y, float z, long sensorTimeStamp); 41 | 42 | private: 43 | CCAccelerometerDelegate* m_pAccelDelegate; 44 | CCAcceleration m_obAccelerationValue; 45 | }; 46 | 47 | }//namespace cocos2d 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/CCApplication.h: -------------------------------------------------------------------------------- 1 | #ifndef __CC_APPLICATION_ANDROID_H__ 2 | #define __CC_APPLICATION_ANDROID_H__ 3 | 4 | #include "CCApplication.h" 5 | #include "CCCommon.h" 6 | #include "CCApplicationProtocol.h" 7 | 8 | NS_CC_BEGIN 9 | 10 | class CCRect; 11 | 12 | class CC_DLL CCApplication : public CCApplicationProtocol 13 | { 14 | public: 15 | CCApplication(); 16 | virtual ~CCApplication(); 17 | 18 | /** 19 | @brief Callback by CCDirector for limit FPS. 20 | @interval The time, which expressed in second in second, between current frame and next. 21 | */ 22 | void setAnimationInterval(double interval); 23 | 24 | typedef enum 25 | { 26 | /// Device oriented vertically, home button on the bottom 27 | kOrientationPortrait = 0, 28 | /// Device oriented vertically, home button on the top 29 | kOrientationPortraitUpsideDown = 1, 30 | /// Device oriented horizontally, home button on the right 31 | kOrientationLandscapeLeft = 2, 32 | /// Device oriented horizontally, home button on the left 33 | kOrientationLandscapeRight = 3, 34 | } Orientation; 35 | 36 | /** 37 | @brief Callback by CCDirector for change device orientation. 38 | @orientation The defination of orientation which CCDirector want change to. 39 | @return The actual orientation of the application. 40 | */ 41 | Orientation setOrientation(Orientation orientation); 42 | 43 | /** 44 | @brief Run the message loop. 45 | */ 46 | int run(); 47 | 48 | /** 49 | @brief Get current applicaiton instance. 50 | @return Current application instance pointer. 51 | */ 52 | static CCApplication& sharedApplication(); 53 | 54 | /** 55 | @brief Get current language config 56 | @return Current language config 57 | */ 58 | virtual ccLanguageType getCurrentLanguage(); 59 | 60 | protected: 61 | static CCApplication * sm_pSharedApplication; 62 | }; 63 | 64 | NS_CC_END 65 | 66 | #endif // __CC_APPLICATION_ANDROID_H__ 67 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/CCCommon.cpp: -------------------------------------------------------------------------------- 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 | #include "CCCommon.h" 26 | 27 | #define MAX_LEN (cocos2d::kMaxLogLen + 1) 28 | 29 | #include 30 | #include 31 | #include 32 | #include "android/jni/MessageJni.h" 33 | 34 | NS_CC_BEGIN 35 | 36 | void CCLog(const char * pszFormat, ...) 37 | { 38 | char buf[MAX_LEN]; 39 | 40 | va_list args; 41 | va_start(args, pszFormat); 42 | vsprintf(buf, pszFormat, args); 43 | va_end(args); 44 | 45 | __android_log_print(ANDROID_LOG_DEBUG, "cocos2d-x debug info", buf); 46 | } 47 | 48 | void CCMessageBox(const char * pszMsg, const char * pszTitle) 49 | { 50 | showMessageBoxJNI(pszMsg, pszTitle); 51 | } 52 | 53 | void CCLuaLog(const char * pszFormat) 54 | { 55 | CCLog(pszFormat); 56 | } 57 | 58 | NS_CC_END 59 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/CCEGLView.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_EGLVIEW_ANDROID_H__ 26 | #define __CC_EGLVIEW_ANDROID_H__ 27 | 28 | #include "CCGeometry.h" 29 | #include "CCEGLViewProtocol.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | class CC_DLL CCEGLView : public CCEGLViewProtocol 34 | { 35 | public: 36 | CCEGLView(); 37 | virtual ~CCEGLView(); 38 | 39 | bool isOpenGLReady(); 40 | 41 | // keep compatible 42 | void end(); 43 | void swapBuffers(); 44 | void setIMEKeyboardState(bool bOpen); 45 | 46 | // static function 47 | /** 48 | @brief get the shared main open gl window 49 | */ 50 | static CCEGLView& sharedOpenGLView(); 51 | }; 52 | 53 | NS_CC_END 54 | 55 | #endif // end of __CC_EGLVIEW_ANDROID_H__ 56 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/CCPlatformDefine.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCPLATFORMDEFINE_H__ 2 | #define __CCPLATFORMDEFINE_H__ 3 | 4 | #define CC_DLL 5 | 6 | #define CC_ASSERT(cond) \ 7 | if (! (cond)) \ 8 | { \ 9 | char content[100]; \ 10 | sprintf(content, "%s function:%s line:%d", __FILE__, __FUNCTION__, __LINE__ - 3); \ 11 | CCMessageBox(content, "Assert error"); \ 12 | } 13 | 14 | 15 | #define CC_UNUSED_PARAM(unusedparam) (void)unusedparam 16 | 17 | /* Define NULL pointer value */ 18 | #ifndef NULL 19 | #ifdef __cplusplus 20 | #define NULL 0 21 | #else 22 | #define NULL ((void *)0) 23 | #endif 24 | #endif 25 | 26 | 27 | 28 | #endif /* __CCPLATFORMDEFINE_H__*/ 29 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/jni/IMEJni.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 __ANDROID_IME_JNI_H__ 25 | #define __ANDROID_IME_JNI_H__ 26 | 27 | extern "C" 28 | 29 | { 30 | extern void setKeyboardStateJNI(int bOpen); 31 | } 32 | 33 | #endif // __ANDROID_IME_JNI_H__ 34 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/jni/JniHelper.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 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 __ANDROID_JNI_HELPER_H__ 25 | #define __ANDROID_JNI_HELPER_H__ 26 | 27 | #include 28 | #include 29 | #include "CCPlatformMacros.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | typedef struct JniMethodInfo_ 34 | { 35 | JNIEnv * env; 36 | jclass classID; 37 | jmethodID methodID; 38 | } JniMethodInfo; 39 | 40 | class CC_DLL JniHelper 41 | { 42 | public: 43 | static JavaVM* getJavaVM(); 44 | static void setJavaVM(JavaVM *javaVM); 45 | static jclass getClassID(const char *className, JNIEnv *env=0); 46 | static bool getStaticMethodInfo(JniMethodInfo &methodinfo, const char *className, const char *methodName, const char *paramCode); 47 | static bool getMethodInfo(JniMethodInfo &methodinfo, const char *className, const char *methodName, const char *paramCode); 48 | static std::string jstring2string(jstring str); 49 | 50 | private: 51 | static JavaVM *m_psJavaVM; 52 | }; 53 | 54 | NS_CC_END 55 | 56 | #endif // __ANDROID_JNI_HELPER_H__ 57 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/jni/MessageJni.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 __ANDROID_MESSAGE_JNI_H__ 25 | #define __ANDROID_MESSAGE_JNI_H__ 26 | 27 | extern "C" 28 | 29 | { 30 | extern void showMessageBoxJNI(const char * pszMsg, const char * pszTitle); 31 | extern void terminateProcessJNI(); 32 | } 33 | 34 | #endif // __ANDROID_MESSAGE_JNI_H__ 35 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/jni/SensorJni.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 __ANDROID_SENSOR_JNI_H__ 25 | #define __ANDROID_SENSOR_JNI_H__ 26 | 27 | extern "C" 28 | 29 | { 30 | extern void enableAccelerometerJNI(); 31 | extern void disableAccelerometerJNI(); 32 | } 33 | 34 | #endif // __ANDROID_SENSOR_JNI_H__ 35 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/android/jni/SystemInfoJni.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 __ANDROID_SYSTEM_INFO_JNI_H__ 25 | #define __ANDROID_SYSTEM_INFO_JNI_H__ 26 | 27 | #include 28 | 29 | extern "C" 30 | 31 | { 32 | extern const char* getCurrentLanguageJNI(); 33 | extern const char* getPackageNameJNI(); 34 | } 35 | 36 | #endif // __ANDROID_SYSTEM_INFO_JNI_H__ 37 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/AccelerometerDelegateWrapper.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 | #import 26 | #import "CCAccelerometerDelegate.h" 27 | #import 28 | 29 | @interface AccelerometerDispatcher : NSObject 30 | { 31 | cocos2d::CCAccelerometerDelegate *delegate_; 32 | cocos2d::CCAcceleration *acceleration_; 33 | } 34 | 35 | @property(readwrite) cocos2d::CCAccelerometerDelegate *delegate_; 36 | @property(readwrite) cocos2d::CCAcceleration *acceleration_; 37 | 38 | + (id) sharedAccelerometerDispather; 39 | - (id) init; 40 | - (void) addDelegate: (cocos2d::CCAccelerometerDelegate *) delegate; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/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_IPHONE_CCACCELEROMETER_H__ 26 | #define __PLATFORM_IPHONE_CCACCELEROMETER_H__ 27 | 28 | #include "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 | }; 40 | 41 | NS_CC_END 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCAccelerometer.mm: -------------------------------------------------------------------------------- 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 | #include "CCAccelerometer.h" 26 | #include "AccelerometerDelegateWrapper.h" 27 | 28 | NS_CC_BEGIN 29 | 30 | CCAccelerometer::CCAccelerometer() 31 | { 32 | } 33 | 34 | CCAccelerometer::~CCAccelerometer() 35 | { 36 | } 37 | 38 | void CCAccelerometer::setDelegate(CCAccelerometerDelegate* pDelegate) 39 | { 40 | [[AccelerometerDispatcher sharedAccelerometerDispather] addDelegate:pDelegate]; 41 | } 42 | 43 | NS_CC_END 44 | 45 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCDirectorCaller.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 | #import 25 | 26 | @interface CCDirectorCaller : NSObject { 27 | id displayLink; 28 | int interval; 29 | } 30 | @property (readwrite) int interval; 31 | -(void) startMainLoop; 32 | -(void) doCaller: (id) sender; 33 | -(void) setAnimationInterval:(double)interval; 34 | +(id) sharedDirectorCaller; 35 | +(void) destroy; 36 | @end 37 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCEGLView.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_EGLVIEW_IPHONE_H__ 26 | #define __CC_EGLVIEW_IPHONE_H__ 27 | 28 | #include "CCCommon.h" 29 | #include "CCEGLViewProtocol.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | 34 | 35 | class CC_DLL CCEGLView : public CCEGLViewProtocol 36 | { 37 | public: 38 | CCEGLView(); 39 | ~CCEGLView(); 40 | 41 | CCSize getSize(); 42 | bool isOpenGLReady(); 43 | bool canSetContentScaleFactor(); 44 | bool isIpad(); 45 | void setContentScaleFactor(float contentScaleFactor); 46 | 47 | // keep compatible 48 | void end(); 49 | void swapBuffers(); 50 | 51 | 52 | float getMainScreenScale(); 53 | 54 | void setIMEKeyboardState(bool bOpen); 55 | 56 | static CCEGLView& sharedOpenGLView(); 57 | 58 | }; 59 | 60 | NS_CC_END 61 | 62 | #endif // end of __CC_EGLVIEW_IPHONE_H__ 63 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCESRenderer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d for iPhone: http://www.cocos2d-iphone.org 3 | * 4 | * Copyright (c) 2010 Ricardo Quesada 5 | * Copyright (c) 2011 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 | * File autogenerated with Xcode. Adapted for cocos2d needs. 27 | */ 28 | 29 | // Only compile this code on iOS. These files should NOT be included on your Mac project. 30 | // But in case they are included, it won't be compiled. 31 | #import "CCPlatformMacros.h" 32 | #import 33 | 34 | #import 35 | #import 36 | 37 | @protocol CCESRenderer 38 | 39 | - (id) initWithDepthFormat:(unsigned int)depthFormat withPixelFormat:(unsigned int)pixelFormat withSharegroup:(EAGLSharegroup*)sharegroup withMultiSampling:(BOOL) multiSampling withNumberOfSamples:(unsigned int) requestedSamples; 40 | 41 | - (BOOL) resizeFromLayer:(CAEAGLLayer *)layer; 42 | 43 | - (EAGLContext*) context; 44 | - (CGSize) backingSize; 45 | 46 | - (unsigned int) colorRenderBuffer; 47 | - (unsigned int) defaultFrameBuffer; 48 | - (unsigned int) msaaFrameBuffer; 49 | - (unsigned int) msaaColorBuffer; 50 | @end 51 | 52 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/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 | #define glClearDepth glClearDepthf 29 | #define glDeleteVertexArrays glDeleteVertexArraysOES 30 | #define glGenVertexArrays glGenVertexArraysOES 31 | #define glBindVertexArray glBindVertexArrayOES 32 | 33 | #include 34 | #include 35 | 36 | 37 | #endif // __PLATFOMR_CCGL_H__ 38 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCLock.cpp: -------------------------------------------------------------------------------- 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 | #include "CCLock.h" 25 | 26 | NS_CC_BEGIN 27 | 28 | CCLock::CCLock(void) 29 | { 30 | } 31 | 32 | CCLock::~CCLock(void) 33 | { 34 | 35 | } 36 | 37 | void CCLock::lock(void) 38 | { 39 | 40 | } 41 | 42 | void CCLock::unlock(void) 43 | { 44 | 45 | } 46 | 47 | NS_CC_END 48 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCLock.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_IPHONE_PLATFORM_CCLOCK_H__ 26 | #define __PLATFORM_IPHONE_PLATFORM_CCLOCK_H__ 27 | 28 | #include "CCPlatformMacros.h" 29 | 30 | NS_CC_BEGIN 31 | 32 | class CCLock 33 | { 34 | public: 35 | CCLock(void); 36 | ~CCLock(void); 37 | 38 | void lock(void); 39 | void unlock(void); 40 | }; 41 | 42 | NS_CC_END 43 | 44 | #endif // __PLATFORM_IPHONE_PLATFORM_CCLOCK_H__ 45 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCPlatformDefine.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCPLATFORMDEFINE_H__ 2 | #define __CCPLATFORMDEFINE_H__ 3 | 4 | #define CC_DLL 5 | 6 | #define CC_ASSERT(cond) \ 7 | if (! (cond)) \ 8 | { \ 9 | char content[100]; \ 10 | sprintf(content, "%s function:%s line:%d", __FILE__, __FUNCTION__, __LINE__ - 3); \ 11 | CCMessageBox(content, "Assert error"); \ 12 | } 13 | 14 | 15 | #define CC_UNUSED_PARAM(unusedparam) (void)unusedparam 16 | 17 | /* Define NULL pointer value */ 18 | #ifndef NULL 19 | #ifdef __cplusplus 20 | #define NULL 0 21 | #else 22 | #define NULL ((void *)0) 23 | #endif 24 | #endif 25 | 26 | 27 | 28 | #endif /* __CCPLATFORMDEFINE_H__*/ 29 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/CCThread.mm: -------------------------------------------------------------------------------- 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 | #import 25 | #include "CCThread.h" 26 | 27 | NS_CC_BEGIN 28 | 29 | CCThread::~CCThread() 30 | { 31 | [(id)m_pAutoreasePool release]; 32 | } 33 | 34 | void CCThread::createAutoreleasePool() 35 | { 36 | m_pAutoreasePool = [[NSAutoreleasePool alloc] init]; 37 | } 38 | 39 | NS_CC_END 40 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/FontLabel/FontLabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // FontLabel.h 3 | // FontLabel 4 | // 5 | // Created by Kevin Ballard on 5/8/09. 6 | // Copyright © 2009 Zynga Game Networks 7 | // 8 | // 9 | // Licensed under the Apache License, Version 2.0 (the "License"); 10 | // you may not use this file except in compliance with the License. 11 | // You may obtain a copy of the License at 12 | // 13 | // http://www.apache.org/licenses/LICENSE-2.0 14 | // 15 | // Unless required by applicable law or agreed to in writing, software 16 | // distributed under the License is distributed on an "AS IS" BASIS, 17 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | // See the License for the specific language governing permissions and 19 | // limitations under the License. 20 | // 21 | 22 | #import 23 | #import 24 | 25 | @class ZFont; 26 | @class ZAttributedString; 27 | 28 | @interface FontLabel : UILabel { 29 | void *reserved; // works around a bug in UILabel 30 | ZFont *zFont; 31 | ZAttributedString *zAttributedText; 32 | } 33 | @property (nonatomic, setter=setCGFont:) CGFontRef cgFont __AVAILABILITY_INTERNAL_DEPRECATED; 34 | @property (nonatomic, assign) CGFloat pointSize __AVAILABILITY_INTERNAL_DEPRECATED; 35 | @property (nonatomic, retain, setter=setZFont:) ZFont *zFont; 36 | // if attributedText is nil, fall back on using the inherited UILabel properties 37 | // if attributedText is non-nil, the font/text/textColor 38 | // in addition, adjustsFontSizeToFitWidth does not work with attributed text 39 | @property (nonatomic, copy) ZAttributedString *zAttributedText; 40 | // -initWithFrame:fontName:pointSize: uses FontManager to look up the font name 41 | - (id)initWithFrame:(CGRect)frame fontName:(NSString *)fontName pointSize:(CGFloat)pointSize; 42 | - (id)initWithFrame:(CGRect)frame zFont:(ZFont *)font; 43 | - (id)initWithFrame:(CGRect)frame font:(CGFontRef)font pointSize:(CGFloat)pointSize __AVAILABILITY_INTERNAL_DEPRECATED; 44 | @end 45 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/FontLabel/ZAttributedStringPrivate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZAttributedStringPrivate.h 3 | // FontLabel 4 | // 5 | // Created by Kevin Ballard on 9/23/09. 6 | // Copyright 2009 Zynga Game Networks. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ZAttributedString.h" 11 | 12 | @interface ZAttributeRun : NSObject { 13 | NSUInteger _index; 14 | NSMutableDictionary *_attributes; 15 | } 16 | @property (nonatomic, readonly) NSUInteger index; 17 | @property (nonatomic, readonly) NSMutableDictionary *attributes; 18 | + (id)attributeRunWithIndex:(NSUInteger)idx attributes:(NSDictionary *)attrs; 19 | - (id)initWithIndex:(NSUInteger)idx attributes:(NSDictionary *)attrs; 20 | @end 21 | 22 | @interface ZAttributedString (ZAttributedStringPrivate) 23 | @property (nonatomic, readonly) NSArray *attributes; 24 | @end 25 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/FontLabel/ZFont.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFont.h 3 | // FontLabel 4 | // 5 | // Created by Kevin Ballard on 7/2/09. 6 | // Copyright © 2009 Zynga Game Networks 7 | // 8 | // 9 | // Licensed under the Apache License, Version 2.0 (the "License"); 10 | // you may not use this file except in compliance with the License. 11 | // You may obtain a copy of the License at 12 | // 13 | // http://www.apache.org/licenses/LICENSE-2.0 14 | // 15 | // Unless required by applicable law or agreed to in writing, software 16 | // distributed under the License is distributed on an "AS IS" BASIS, 17 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | // See the License for the specific language governing permissions and 19 | // limitations under the License. 20 | // 21 | 22 | #import 23 | #import 24 | 25 | @interface ZFont : NSObject { 26 | CGFontRef _cgFont; 27 | CGFloat _pointSize; 28 | CGFloat _ratio; 29 | NSString *_familyName; 30 | NSString *_fontName; 31 | NSString *_postScriptName; 32 | } 33 | @property (nonatomic, readonly) CGFontRef cgFont; 34 | @property (nonatomic, readonly) CGFloat pointSize; 35 | @property (nonatomic, readonly) CGFloat ascender; 36 | @property (nonatomic, readonly) CGFloat descender; 37 | @property (nonatomic, readonly) CGFloat leading; 38 | @property (nonatomic, readonly) CGFloat xHeight; 39 | @property (nonatomic, readonly) CGFloat capHeight; 40 | @property (nonatomic, readonly) NSString *familyName; 41 | @property (nonatomic, readonly) NSString *fontName; 42 | @property (nonatomic, readonly) NSString *postScriptName; 43 | + (ZFont *)fontWithCGFont:(CGFontRef)cgFont size:(CGFloat)fontSize; 44 | + (ZFont *)fontWithUIFont:(UIFont *)uiFont; 45 | - (id)initWithCGFont:(CGFontRef)cgFont size:(CGFloat)fontSize; 46 | - (ZFont *)fontWithSize:(CGFloat)fontSize; 47 | @end 48 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/ios/Simulation/AccelerometerSimulation.h: -------------------------------------------------------------------------------- 1 | /* 2 | * AccelerometerSimulation.h 3 | * AccelerometerGraph 4 | * 5 | * Created by Otto Chrons on 9/26/08. 6 | * Copyright 2008 Seastringo Oy. All rights reserved. 7 | * 8 | */ 9 | #import 10 | 11 | // when compiling to ARM (iPhone device), hide everything and use system defaults 12 | // if you wish to use simulation mode even on the device, remove the #if/#endif 13 | #if !TARGET_CPU_ARM 14 | #import 15 | 16 | // this is exactly the same as UIAcceleration, but we can modify the member variables 17 | @interface UIAccelerationSimulation: NSObject 18 | { 19 | NSTimeInterval timestamp; 20 | UIAccelerationValue x, y, z; 21 | } 22 | @property(nonatomic, readonly) NSTimeInterval timestamp; 23 | @property(nonatomic, readonly) UIAccelerationValue x, y, z; 24 | 25 | @end 26 | 27 | // override UIAccelerometer behaviour 28 | @interface UIAccelerometer (Simulation) 29 | + (UIAccelerometer *)sharedAccelerometer; 30 | @end 31 | 32 | // our own version of the Accelerometer 33 | @interface AccelerometerSimulation : UIAccelerometer 34 | { 35 | 36 | //CFSocketRef udpSocket; 37 | int udpSocket; 38 | NSThread *thread; 39 | BOOL isExiting; 40 | id accelDelegate; 41 | UIAccelerationSimulation *accObject; 42 | // Threaded notification support 43 | NSMutableArray *notifications; 44 | NSThread *notificationThread; 45 | NSLock *notificationLock; 46 | NSMachPort *notificationPort; 47 | } 48 | 49 | @property(nonatomic, assign) id delegate; 50 | 51 | - (void) setUpThreadingSupport; 52 | - (void) handleMachMessage:(void *) msg; 53 | - (void) processNotification:(NSNotification *) notification; 54 | + (AccelerometerSimulation *)getAccelerometer; 55 | - (AccelerometerSimulation *)initialize; 56 | 57 | @end 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/platform.cpp: -------------------------------------------------------------------------------- 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 | #include "platform.h" 26 | 27 | #include "CCStdC.h" 28 | 29 | NS_CC_BEGIN 30 | 31 | int CCTime::gettimeofdayCocos2d(struct cc_timeval *tp, void *tzp) 32 | { 33 | CC_UNUSED_PARAM(tzp); 34 | if (tp) 35 | { 36 | gettimeofday((struct timeval *)tp, 0); 37 | } 38 | return 0; 39 | } 40 | 41 | double CCTime::timersubCocos2d(struct cc_timeval *start, struct cc_timeval *end) 42 | { 43 | if (! start || ! end) 44 | { 45 | return 0; 46 | } 47 | 48 | return ((end->tv_sec*1000.0+end->tv_usec/1000.0) - (start->tv_sec*1000.0+start->tv_usec/1000.0)); 49 | } 50 | 51 | NS_CC_END 52 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | struct CC_DLL cc_timeval 34 | { 35 | long tv_sec; // seconds 36 | long tv_usec; // microSeconds 37 | }; 38 | 39 | class CC_DLL CCTime 40 | { 41 | public: 42 | static int gettimeofdayCocos2d(struct cc_timeval *tp, void *tzp); 43 | static double timersubCocos2d(struct cc_timeval *start, struct cc_timeval *end); 44 | }; 45 | 46 | NS_CC_END 47 | 48 | #endif // __PLATFORM_H__ 49 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := curl_static_prebuilt 5 | LOCAL_MODULE_FILENAME := curl 6 | LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libcurl.a 7 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include 8 | include $(PREBUILT_STATIC_LIBRARY) 9 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/include/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/include/curl/types.h: -------------------------------------------------------------------------------- 1 | /* not used */ 2 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/libs/armeabi-v7a/libcurl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/libs/armeabi-v7a/libcurl.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/libs/armeabi/libcurl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/libs/armeabi/libcurl.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/libs/x86/libcurl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libcurl/libs/x86/libcurl.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libjpeg/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := cocos_jpeg_static 5 | LOCAL_MODULE_FILENAME := jpeg 6 | LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libjpeg.a 7 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include 8 | include $(PREBUILT_STATIC_LIBRARY) 9 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libjpeg/libs/armeabi-v7a/libjpeg.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libjpeg/libs/armeabi-v7a/libjpeg.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libjpeg/libs/armeabi/libjpeg.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libjpeg/libs/armeabi/libjpeg.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libjpeg/libs/x86/libjpeg.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libjpeg/libs/x86/libjpeg.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := cocos_libpng_static 5 | LOCAL_MODULE_FILENAME := png 6 | LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libpng.a 7 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include 8 | include $(PREBUILT_STATIC_LIBRARY) 9 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/include/pngusr.h: -------------------------------------------------------------------------------- 1 | #define PNG_USER_PRIVATEBUILD "Skia build; no MNG features" 2 | #define PNG_USER_DLLFNAME_POSTFIX "Sk" 3 | #define PNG_NO_MNG_FEATURES 4 | #define PNG_NO_READ_GAMMA 5 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/libs/armeabi-v7a/libpng.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/libs/armeabi-v7a/libpng.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/libs/armeabi/libpng.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/libs/armeabi/libpng.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/libs/x86/libpng.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libpng/libs/x86/libpng.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_MODULE := cocos_libxml2_static 5 | LOCAL_MODULE_FILENAME := xml2 6 | LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libxml2.a 7 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include 8 | include $(PREBUILT_STATIC_LIBRARY) 9 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/include/libxml/dict.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: string dictionnary 3 | * Description: dictionary of reusable strings, just used to avoid allocation 4 | * and freeing operations. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_DICT_H__ 12 | #define __XML_DICT_H__ 13 | 14 | #include 15 | #include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | /* 22 | * The dictionnary. 23 | */ 24 | typedef struct _xmlDict xmlDict; 25 | typedef xmlDict *xmlDictPtr; 26 | 27 | /* 28 | * Constructor and destructor. 29 | */ 30 | XMLPUBFUN xmlDictPtr XMLCALL 31 | xmlDictCreate (void); 32 | XMLPUBFUN xmlDictPtr XMLCALL 33 | xmlDictCreateSub(xmlDictPtr sub); 34 | XMLPUBFUN int XMLCALL 35 | xmlDictReference(xmlDictPtr dict); 36 | XMLPUBFUN void XMLCALL 37 | xmlDictFree (xmlDictPtr dict); 38 | 39 | /* 40 | * Lookup of entry in the dictionnary. 41 | */ 42 | XMLPUBFUN const xmlChar * XMLCALL 43 | xmlDictLookup (xmlDictPtr dict, 44 | const xmlChar *name, 45 | int len); 46 | XMLPUBFUN const xmlChar * XMLCALL 47 | xmlDictExists (xmlDictPtr dict, 48 | const xmlChar *name, 49 | int len); 50 | XMLPUBFUN const xmlChar * XMLCALL 51 | xmlDictQLookup (xmlDictPtr dict, 52 | const xmlChar *prefix, 53 | const xmlChar *name); 54 | XMLPUBFUN int XMLCALL 55 | xmlDictOwns (xmlDictPtr dict, 56 | const xmlChar *str); 57 | XMLPUBFUN int XMLCALL 58 | xmlDictSize (xmlDictPtr dict); 59 | 60 | /* 61 | * Cleanup function 62 | */ 63 | XMLPUBFUN void XMLCALL 64 | xmlDictCleanup (void); 65 | 66 | #ifdef __cplusplus 67 | } 68 | #endif 69 | #endif /* ! __XML_DICT_H__ */ 70 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/include/libxml/threads.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Summary: interfaces for thread handling 3 | * Description: set of generic threading related routines 4 | * should work with pthreads, Windows native or TLS threads 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_THREADS_H__ 12 | #define __XML_THREADS_H__ 13 | 14 | #include 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /* 21 | * xmlMutex are a simple mutual exception locks. 22 | */ 23 | typedef struct _xmlMutex xmlMutex; 24 | typedef xmlMutex *xmlMutexPtr; 25 | 26 | /* 27 | * xmlRMutex are reentrant mutual exception locks. 28 | */ 29 | typedef struct _xmlRMutex xmlRMutex; 30 | typedef xmlRMutex *xmlRMutexPtr; 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | #include 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | XMLPUBFUN xmlMutexPtr XMLCALL 40 | xmlNewMutex (void); 41 | XMLPUBFUN void XMLCALL 42 | xmlMutexLock (xmlMutexPtr tok); 43 | XMLPUBFUN void XMLCALL 44 | xmlMutexUnlock (xmlMutexPtr tok); 45 | XMLPUBFUN void XMLCALL 46 | xmlFreeMutex (xmlMutexPtr tok); 47 | 48 | XMLPUBFUN xmlRMutexPtr XMLCALL 49 | xmlNewRMutex (void); 50 | XMLPUBFUN void XMLCALL 51 | xmlRMutexLock (xmlRMutexPtr tok); 52 | XMLPUBFUN void XMLCALL 53 | xmlRMutexUnlock (xmlRMutexPtr tok); 54 | XMLPUBFUN void XMLCALL 55 | xmlFreeRMutex (xmlRMutexPtr tok); 56 | 57 | /* 58 | * Library wide APIs. 59 | */ 60 | XMLPUBFUN void XMLCALL 61 | xmlInitThreads (void); 62 | XMLPUBFUN void XMLCALL 63 | xmlLockLibrary (void); 64 | XMLPUBFUN void XMLCALL 65 | xmlUnlockLibrary(void); 66 | XMLPUBFUN int XMLCALL 67 | xmlGetThreadId (void); 68 | XMLPUBFUN int XMLCALL 69 | xmlIsMainThread (void); 70 | XMLPUBFUN void XMLCALL 71 | xmlCleanupThreads(void); 72 | XMLPUBFUN xmlGlobalStatePtr XMLCALL 73 | xmlGetGlobalState(void); 74 | 75 | #if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && defined(LIBXML_STATIC_FOR_DLL) 76 | int XMLCALL xmlDllMain(void *hinstDLL, unsigned long fdwReason, void *lpvReserved); 77 | #endif 78 | 79 | #ifdef __cplusplus 80 | } 81 | #endif 82 | 83 | 84 | #endif /* __XML_THREADS_H__ */ 85 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/include/libxml/xmlmodule.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: dynamic module loading 3 | * Description: basic API for dynamic module loading, used by 4 | * libexslt added in 2.6.17 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Joel W. Reed 9 | */ 10 | 11 | #ifndef __XML_MODULE_H__ 12 | #define __XML_MODULE_H__ 13 | 14 | #include 15 | 16 | #ifdef LIBXML_MODULES_ENABLED 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | /** 23 | * xmlModulePtr: 24 | * 25 | * A handle to a dynamically loaded module 26 | */ 27 | typedef struct _xmlModule xmlModule; 28 | typedef xmlModule *xmlModulePtr; 29 | 30 | /** 31 | * xmlModuleOption: 32 | * 33 | * enumeration of options that can be passed down to xmlModuleOpen() 34 | */ 35 | typedef enum { 36 | XML_MODULE_LAZY = 1, /* lazy binding */ 37 | XML_MODULE_LOCAL= 2 /* local binding */ 38 | } xmlModuleOption; 39 | 40 | XMLPUBFUN xmlModulePtr XMLCALL xmlModuleOpen (const char *filename, 41 | int options); 42 | 43 | XMLPUBFUN int XMLCALL xmlModuleSymbol (xmlModulePtr module, 44 | const char* name, 45 | void **result); 46 | 47 | XMLPUBFUN int XMLCALL xmlModuleClose (xmlModulePtr module); 48 | 49 | XMLPUBFUN int XMLCALL xmlModuleFree (xmlModulePtr module); 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif /* LIBXML_MODULES_ENABLED */ 56 | 57 | #endif /*__XML_MODULE_H__ */ 58 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/libs/armeabi-v7a/libxml2.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/libs/armeabi-v7a/libxml2.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/libs/armeabi/libxml2.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/libs/armeabi/libxml2.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/libs/x86/libxml2.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/android/prebuilt/libxml2/libs/x86/libxml2.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/ios/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/ios/curl/types.h: -------------------------------------------------------------------------------- 1 | /* not used */ 2 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/ios/libraries/libcurl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/ios/libraries/libcurl.a -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/OGLES/GLES2/gl2extimg.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2extimg_h_ 2 | #define __gl2extimg_h_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | /*------------------------------------------------------------------------* 9 | * IMG extension tokens 10 | *------------------------------------------------------------------------*/ 11 | 12 | /* GL_IMG_binary_shader */ 13 | #ifndef GL_IMG_binary_shader 14 | #define GL_SGX_BINARY_IMG 0x8C0A 15 | #endif 16 | 17 | /* GL_IMG_texture_compression_pvrtc */ 18 | #ifndef GL_IMG_texture_compression_pvrtc 19 | #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 20 | #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01 21 | #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02 22 | #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03 23 | #endif 24 | 25 | 26 | /* GL_IMG_texture_format_BGRA8888 */ 27 | #define GL_BGRA 0x80E1 28 | 29 | /*------------------------------------------------------------------------* 30 | * IMG extension functions 31 | *------------------------------------------------------------------------*/ 32 | 33 | /* GL_IMG_binary_shader */ 34 | #ifndef GL_IMG_binary_shader 35 | #define GL_IMG_binary_shader 1 36 | #endif 37 | 38 | /* GL_IMG_texture_compression_pvrtc */ 39 | #ifndef GL_IMG_texture_compression_pvrtc 40 | #define GL_IMG_texture_compression_pvrtc 1 41 | #endif 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* __gl2extimg_h_ */ 48 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/OGLES/GLES2/gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* 5 | * This document is licensed under the SGI Free Software B License Version 6 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 7 | */ 8 | 9 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 10 | * 11 | * Adopters may modify khrplatform.h and this file to suit their platform. 12 | * You are encouraged to submit all modifications to the Khronos group so that 13 | * they can be included in future versions of this file. Please submit changes 14 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 15 | * by filing a bug against product "OpenGL-ES" component "Registry". 16 | */ 17 | 18 | #include 19 | 20 | #ifndef GL_APICALL 21 | #define GL_APICALL KHRONOS_APICALL 22 | #endif 23 | 24 | #ifndef GL_APIENTRY 25 | #define GL_APIENTRY KHRONOS_APIENTRY 26 | #endif 27 | 28 | #endif /* __gl2platform_h_ */ 29 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/curl/types.h: -------------------------------------------------------------------------------- 1 | /* not used */ 2 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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__ -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libEGL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libEGL.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libGLESv2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libGLESv2.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libcurl_imp.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libcurl_imp.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libiconv.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libiconv.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libjpeg.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libjpeg.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libpng.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libpng.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libxml2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libxml2.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libzlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/libzlib.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/pthreadVCE2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/libs/cocos2dx/platform/third_party/win32/libraries/pthreadVCE2.lib -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libxml2/libxml/dict.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: string dictionnary 3 | * Description: dictionary of reusable strings, just used to avoid allocation 4 | * and freeing operations. 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Daniel Veillard 9 | */ 10 | 11 | #ifndef __XML_DICT_H__ 12 | #define __XML_DICT_H__ 13 | 14 | #include 15 | #include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | /* 22 | * The dictionnary. 23 | */ 24 | typedef struct _xmlDict xmlDict; 25 | typedef xmlDict *xmlDictPtr; 26 | 27 | /* 28 | * Constructor and destructor. 29 | */ 30 | XMLPUBFUN xmlDictPtr XMLCALL 31 | xmlDictCreate (void); 32 | XMLPUBFUN xmlDictPtr XMLCALL 33 | xmlDictCreateSub(xmlDictPtr sub); 34 | XMLPUBFUN int XMLCALL 35 | xmlDictReference(xmlDictPtr dict); 36 | XMLPUBFUN void XMLCALL 37 | xmlDictFree (xmlDictPtr dict); 38 | 39 | /* 40 | * Lookup of entry in the dictionnary. 41 | */ 42 | XMLPUBFUN const xmlChar * XMLCALL 43 | xmlDictLookup (xmlDictPtr dict, 44 | const xmlChar *name, 45 | int len); 46 | XMLPUBFUN const xmlChar * XMLCALL 47 | xmlDictExists (xmlDictPtr dict, 48 | const xmlChar *name, 49 | int len); 50 | XMLPUBFUN const xmlChar * XMLCALL 51 | xmlDictQLookup (xmlDictPtr dict, 52 | const xmlChar *prefix, 53 | const xmlChar *name); 54 | XMLPUBFUN int XMLCALL 55 | xmlDictOwns (xmlDictPtr dict, 56 | const xmlChar *str); 57 | XMLPUBFUN int XMLCALL 58 | xmlDictSize (xmlDictPtr dict); 59 | 60 | /* 61 | * Cleanup function 62 | */ 63 | XMLPUBFUN void XMLCALL 64 | xmlDictCleanup (void); 65 | 66 | #ifdef __cplusplus 67 | } 68 | #endif 69 | #endif /* ! __XML_DICT_H__ */ 70 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlmodule.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Summary: dynamic module loading 3 | * Description: basic API for dynamic module loading, used by 4 | * libexslt added in 2.6.17 5 | * 6 | * Copy: See Copyright for the status of this software. 7 | * 8 | * Author: Joel W. Reed 9 | */ 10 | 11 | #ifndef __XML_MODULE_H__ 12 | #define __XML_MODULE_H__ 13 | 14 | #include 15 | 16 | #ifdef LIBXML_MODULES_ENABLED 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | /** 23 | * xmlModulePtr: 24 | * 25 | * A handle to a dynamically loaded module 26 | */ 27 | typedef struct _xmlModule xmlModule; 28 | typedef xmlModule *xmlModulePtr; 29 | 30 | /** 31 | * xmlModuleOption: 32 | * 33 | * enumeration of options that can be passed down to xmlModuleOpen() 34 | */ 35 | typedef enum { 36 | XML_MODULE_LAZY = 1, /* lazy binding */ 37 | XML_MODULE_LOCAL= 2 /* local binding */ 38 | } xmlModuleOption; 39 | 40 | XMLPUBFUN xmlModulePtr XMLCALL xmlModuleOpen (const char *filename, 41 | int options); 42 | 43 | XMLPUBFUN int XMLCALL xmlModuleSymbol (xmlModulePtr module, 44 | const char* name, 45 | void **result); 46 | 47 | XMLPUBFUN int XMLCALL xmlModuleClose (xmlModulePtr module); 48 | 49 | XMLPUBFUN int XMLCALL xmlModuleFree (xmlModulePtr module); 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif /* LIBXML_MODULES_ENABLED */ 56 | 57 | #endif /*__XML_MODULE_H__ */ 58 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 "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 update( double x,double y,double z,double timestamp ); 40 | private: 41 | CCAcceleration m_obAccelerationValue; 42 | CCAccelerometerDelegate* m_pAccelDelegate; 43 | }; 44 | 45 | NS_CC_END 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/win32/CCApplication.h: -------------------------------------------------------------------------------- 1 | #ifndef __CC_APPLICATION_WIN32_H__ 2 | #define __CC_APPLICATION_WIN32_H__ 3 | 4 | #include 5 | #include "CCCommon.h" 6 | #include "CCApplicationProtocol.h" 7 | 8 | NS_CC_BEGIN 9 | 10 | class CCRect; 11 | 12 | class CC_DLL CCApplication : public CCApplicationProtocol 13 | { 14 | public: 15 | CCApplication(); 16 | virtual ~CCApplication(); 17 | 18 | /** 19 | @brief Run the message loop. 20 | */ 21 | int run(); 22 | 23 | /** 24 | @brief Get current applicaiton instance. 25 | @return Current application instance pointer. 26 | */ 27 | static CCApplication& sharedApplication(); 28 | 29 | /* override functions */ 30 | virtual void setAnimationInterval(double interval); 31 | virtual ccLanguageType getCurrentLanguage(); 32 | 33 | protected: 34 | HINSTANCE m_hInstance; 35 | HACCEL m_hAccelTable; 36 | LARGE_INTEGER m_nAnimationInterval; 37 | 38 | static CCApplication * sm_pSharedApplication; 39 | }; 40 | 41 | NS_CC_END 42 | 43 | #endif // __CC_APPLICATION_WIN32_H__ 44 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/win32/CCCommon.cpp: -------------------------------------------------------------------------------- 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 | #include "CCCommon.h" 26 | 27 | #define MAX_LEN (cocos2d::kMaxLogLen + 1) 28 | 29 | #include 30 | #include "CCStdC.h" 31 | 32 | NS_CC_BEGIN 33 | 34 | void CCLog(const char * pszFormat, ...) 35 | { 36 | char szBuf[MAX_LEN]; 37 | 38 | va_list ap; 39 | va_start(ap, pszFormat); 40 | vsnprintf_s(szBuf, MAX_LEN, MAX_LEN, pszFormat, ap); 41 | va_end(ap); 42 | 43 | WCHAR wszBuf[MAX_LEN] = {0}; 44 | MultiByteToWideChar(CP_UTF8, 0, szBuf, -1, wszBuf, sizeof(wszBuf)); 45 | OutputDebugStringW(wszBuf); 46 | OutputDebugStringA("\n"); 47 | } 48 | 49 | void CCMessageBox(const char * pszMsg, const char * pszTitle) 50 | { 51 | MessageBoxA(NULL, pszMsg, pszTitle, MB_OK); 52 | } 53 | 54 | void CCLuaLog(const char * pszFormat) 55 | { 56 | CCLog(pszFormat); 57 | } 58 | 59 | NS_CC_END 60 | 61 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | #define glClearDepth glClearDepthf 29 | #define glDeleteVertexArrays glDeleteVertexArraysOES 30 | #define glGenVertexArrays glGenVertexArraysOES 31 | #define glBindVertexArray glBindVertexArrayOES 32 | 33 | #include "GLES2/gl2.h" 34 | #include "GLES2/gl2ext.h" 35 | 36 | 37 | #endif // __PLATFOMR_CCGL_H__ 38 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/platform/win32/CCPlatformDefine.h: -------------------------------------------------------------------------------- 1 | #ifndef __CCPLATFORMDEFINE_H__ 2 | #define __CCPLATFORMDEFINE_H__ 3 | 4 | 5 | #if defined(_USRDLL) 6 | #define CC_DLL __declspec(dllexport) 7 | #else /* use a DLL library */ 8 | #define CC_DLL __declspec(dllimport) 9 | #endif 10 | 11 | #include 12 | #define CC_ASSERT(cond) assert(cond) 13 | #define CC_UNUSED_PARAM(unusedparam) (void)unusedparam 14 | 15 | /* Define NULL pointer value */ 16 | #ifndef NULL 17 | #ifdef __cplusplus 18 | #define NULL 0 19 | #else 20 | #define NULL ((void *)0) 21 | #endif 22 | #endif 23 | 24 | 25 | 26 | #endif /* __CCPLATFORMDEFINE_H__*/ 27 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionColor_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 | \n\ 8 | void main() \n\ 9 | { \n\ 10 | gl_FragColor = v_fragmentColor; \n\ 11 | } \n\ 12 | "; 13 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionColor_vert.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | attribute vec4 a_position; \n\ 3 | attribute vec4 a_color; \n\ 4 | uniform mat4 u_MVPMatrix; \n\ 5 | \n\ 6 | #ifdef GL_ES \n\ 7 | varying lowp vec4 v_fragmentColor; \n\ 8 | #else \n\ 9 | varying vec4 v_fragmentColor; \n\ 10 | #endif \n\ 11 | \n\ 12 | void main() \n\ 13 | { \n\ 14 | gl_Position = u_MVPMatrix * a_position; \n\ 15 | v_fragmentColor = a_color; \n\ 16 | } \n\ 17 | "; 18 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTextureA8Color_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 | \n\ 10 | void main() \n\ 11 | { \n\ 12 | gl_FragColor = vec4( v_fragmentColor.rgb, // RGB from uniform \n\ 13 | v_fragmentColor.a * texture2D(u_texture, v_texCoord).a // A from texture & uniform \n\ 14 | ); \n\ 15 | } \n\ 16 | "; 17 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTextureA8Color_vert.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | attribute vec4 a_position; \n\ 3 | attribute vec2 a_texCoord; \n\ 4 | attribute vec4 a_color; \n\ 5 | uniform mat4 u_MVPMatrix; \n\ 6 | \n\ 7 | #ifdef GL_ES \n\ 8 | varying lowp vec4 v_fragmentColor; \n\ 9 | varying mediump vec2 v_texCoord; \n\ 10 | #else \n\ 11 | varying vec4 v_fragmentColor; \n\ 12 | varying vec2 v_texCoord; \n\ 13 | #endif \n\ 14 | \n\ 15 | void main() \n\ 16 | { \n\ 17 | gl_Position = u_MVPMatrix * a_position; \n\ 18 | v_fragmentColor = a_color; \n\ 19 | v_texCoord = a_texCoord; \n\ 20 | } \n\ 21 | "; 22 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTextureColorAlphaTest_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 float u_alpha_value; \n\ 10 | \n\ 11 | void main() \n\ 12 | { \n\ 13 | vec4 texColor = texture2D(u_texture, v_texCoord); \n\ 14 | \n\ 15 | // mimic: glAlphaFunc(GL_GREATER) \n\ 16 | // pass if ( incoming_pixel >= u_alpha_value ) => fail if incoming_pixel < u_alpha_value \n\ 17 | \n\ 18 | if ( texColor.a <= u_alpha_value ) \n\ 19 | discard; \n\ 20 | \n\ 21 | gl_FragColor = texColor * v_fragmentColor; \n\ 22 | } \n\ 23 | "; 24 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTextureColor_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 | \n\ 10 | void main() \n\ 11 | { \n\ 12 | gl_FragColor = v_fragmentColor * texture2D(u_texture, v_texCoord); \n\ 13 | } \n\ 14 | "; 15 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTextureColor_vert.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | attribute vec4 a_position; \n\ 3 | attribute vec2 a_texCoord; \n\ 4 | attribute vec4 a_color; \n\ 5 | \n\ 6 | uniform mat4 u_MVPMatrix; \n\ 7 | \n\ 8 | #ifdef GL_ES \n\ 9 | varying lowp vec4 v_fragmentColor; \n\ 10 | varying mediump vec2 v_texCoord; \n\ 11 | #else \n\ 12 | varying vec4 v_fragmentColor; \n\ 13 | varying vec2 v_texCoord; \n\ 14 | #endif \n\ 15 | \n\ 16 | void main() \n\ 17 | { \n\ 18 | gl_Position = u_MVPMatrix * a_position; \n\ 19 | v_fragmentColor = a_color; \n\ 20 | v_texCoord = a_texCoord; \n\ 21 | } \n\ 22 | "; 23 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTexture_frag.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | #ifdef GL_ES \n\ 3 | precision lowp float; \n\ 4 | #endif \n\ 5 | \n\ 6 | varying vec2 v_texCoord; \n\ 7 | uniform sampler2D u_texture; \n\ 8 | \n\ 9 | void main() \n\ 10 | { \n\ 11 | gl_FragColor = texture2D(u_texture, v_texCoord); \n\ 12 | } \n\ 13 | "; 14 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTexture_uColor_frag.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | #ifdef GL_ES \n\ 3 | precision lowp float; \n\ 4 | #endif \n\ 5 | \n\ 6 | uniform vec4 u_color; \n\ 7 | \n\ 8 | varying vec2 v_texCoord; \n\ 9 | \n\ 10 | uniform sampler2D u_texture; \n\ 11 | \n\ 12 | void main() \n\ 13 | { \n\ 14 | gl_FragColor = texture2D(u_texture, v_texCoord) * u_color; \n\ 15 | } \n\ 16 | "; 17 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTexture_uColor_vert.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | attribute vec4 a_position; \n\ 3 | attribute vec2 a_texCoord; \n\ 4 | \n\ 5 | uniform mat4 u_MVPMatrix; \n\ 6 | \n\ 7 | #ifdef GL_ES \n\ 8 | varying mediump vec2 v_texCoord; \n\ 9 | #else \n\ 10 | varying vec2 v_texCoord; \n\ 11 | #endif \n\ 12 | \n\ 13 | void main() \n\ 14 | { \n\ 15 | gl_Position = u_MVPMatrix * a_position; \n\ 16 | v_texCoord = a_texCoord; \n\ 17 | } \n\ 18 | "; 19 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_PositionTexture_vert.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | attribute vec4 a_position; \n\ 3 | attribute vec2 a_texCoord; \n\ 4 | uniform mat4 u_MVPMatrix; \n\ 5 | \n\ 6 | #ifdef GL_ES \n\ 7 | varying mediump vec2 v_texCoord; \n\ 8 | #else \n\ 9 | varying vec2 v_texCoord; \n\ 10 | #endif \n\ 11 | \n\ 12 | void main() \n\ 13 | { \n\ 14 | gl_Position = u_MVPMatrix * a_position; \n\ 15 | v_texCoord = a_texCoord; \n\ 16 | } \n\ 17 | "; 18 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_Position_uColor_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 | \n\ 8 | void main() \n\ 9 | { \n\ 10 | gl_FragColor = v_fragmentColor; \n\ 11 | } \n\ 12 | "; 13 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/shaders/ccShader_Position_uColor_vert.h: -------------------------------------------------------------------------------- 1 | " \n\ 2 | attribute vec4 a_position; \n\ 3 | uniform mat4 u_MVPMatrix; \n\ 4 | uniform vec4 u_color; \n\ 5 | uniform float u_pointSize; \n\ 6 | \n\ 7 | #ifdef GL_ES \n\ 8 | varying lowp vec4 v_fragmentColor; \n\ 9 | #else \n\ 10 | varying vec4 v_fragmentColor; \n\ 11 | #endif \n\ 12 | \n\ 13 | void main() \n\ 14 | { \n\ 15 | gl_Position = u_MVPMatrix * a_position; \n\ 16 | gl_PointSize = u_pointSize; \n\ 17 | v_fragmentColor = u_color; \n\ 18 | } \n\ 19 | "; 20 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/support/CCVertex.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010 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 | /** @file CCVertex.h */ 33 | 34 | /** converts a line to a polygon */ 35 | void CC_DLL ccVertexLineToPolygon(CCPoint *points, float stroke, ccVertex2F *vertices, ccTex2F *texCoords, unsigned int offset, unsigned int nuPoints); 36 | 37 | /** returns wheter or not the line intersects */ 38 | bool CC_DLL ccVertexLineIntersect(float Ax, float Ay, 39 | float Bx, float By, 40 | float Cx, float Cy, 41 | float Dx, float Dy, float *T); 42 | 43 | NS_CC_END 44 | 45 | #endif /* __CCVERTEX_H__ */ 46 | 47 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/support/TransformUtils.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 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 | #include "TransformUtils.h" 27 | #include "CCAffineTransform.h" 28 | 29 | namespace cocos2d { 30 | 31 | void CGAffineToGL(const CCAffineTransform *t, GLfloat *m) 32 | { 33 | // | m[0] m[4] m[8] m[12] | | m11 m21 m31 m41 | | a c 0 tx | 34 | // | m[1] m[5] m[9] m[13] | | m12 m22 m32 m42 | | b d 0 ty | 35 | // | m[2] m[6] m[10] m[14] | <=> | m13 m23 m33 m43 | <=> | 0 0 1 0 | 36 | // | m[3] m[7] m[11] m[15] | | m14 m24 m34 m44 | | 0 0 0 1 | 37 | 38 | m[2] = m[3] = m[6] = m[7] = m[8] = m[9] = m[11] = m[14] = 0.0f; 39 | m[10] = m[15] = 1.0f; 40 | m[0] = t->a; m[4] = t->c; m[12] = t->tx; 41 | m[1] = t->b; m[5] = t->d; m[13] = t->ty; 42 | } 43 | 44 | void GLToCGAffine(const GLfloat *m, CCAffineTransform *t) 45 | { 46 | t->a = m[0]; t->c = m[4]; t->tx = m[12]; 47 | t->b = m[1]; t->d = m[5]; t->ty = m[13]; 48 | } 49 | 50 | }//namespace cocos2d 51 | 52 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/support/TransformUtils.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 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 | -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/support/ccUtils.cpp: -------------------------------------------------------------------------------- 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 | #include "ccUtils.h" 25 | 26 | namespace cocos2d { 27 | 28 | unsigned long ccNextPOT(unsigned long x) 29 | { 30 | x = x - 1; 31 | x = x | (x >> 1); 32 | x = x | (x >> 2); 33 | x = x | (x >> 4); 34 | x = x | (x >> 8); 35 | x = x | (x >>16); 36 | return x + 1; 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /AnalyticX/libs/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 | -------------------------------------------------------------------------------- /AnalyticX/libs/cocos2dx/touch_dispatcher/CCTouch.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_TOUCH_H__ 26 | #define __CC_TOUCH_H__ 27 | 28 | #include "CCObject.h" 29 | #include "CCGeometry.h" 30 | 31 | NS_CC_BEGIN 32 | 33 | class CCTouch : public CCObject 34 | { 35 | public: 36 | CCTouch() 37 | : m_nId(0) 38 | {} 39 | 40 | CCPoint locationInView() { return m_point; } 41 | CCPoint previousLocationInView() { return m_prevPoint; } 42 | 43 | void SetTouchInfo(int id, float x, float y) 44 | { 45 | m_nId = id; 46 | m_prevPoint = m_point; 47 | m_point.x = x; 48 | m_point.y = y; 49 | } 50 | 51 | int getID() const 52 | { 53 | return m_nId; 54 | } 55 | 56 | private: 57 | int m_nId; 58 | CCPoint m_point; 59 | CCPoint m_prevPoint; 60 | }; 61 | 62 | class CCEvent : public CCObject 63 | { 64 | }; 65 | 66 | NS_CC_END 67 | 68 | #endif // __PLATFORM_TOUCH_H__ 69 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 12 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked into Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/CloseNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/CloseNormal.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/CloseSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/CloseSelected.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/Default.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/HelloWorld.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/Icon-72.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/Icon-Small-50.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/Icon-Small.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/Icon-Small@2x.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/Icon.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/Icon@2x.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIconFiles 14 | 15 | Icon.png 16 | Icon@2x.png 17 | Icon-72.png 18 | Icon-Small-50.png 19 | Icon-Small.png 20 | Icon-Small@2x.png 21 | 22 | CFBundleIdentifier 23 | com.yourcompany.${PRODUCT_NAME:rfc1034identifier} 24 | CFBundleInfoDictionaryVersion 25 | 6.0 26 | CFBundleName 27 | ${PRODUCT_NAME} 28 | CFBundlePackageType 29 | APPL 30 | CFBundleSignature 31 | ???? 32 | CFBundleVersion 33 | 1.0 34 | LSRequiresIPhoneOS 35 | 36 | UIPrerenderedIcon 37 | 38 | UIStatusBarHidden 39 | 40 | UIRequiredDeviceCapabilities 41 | 42 | accelerometer 43 | 44 | opengles-1 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/assets/iTunesArtwork: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/assets/iTunesArtwork -------------------------------------------------------------------------------- /AnalyticX/proj.android/build_native.sh: -------------------------------------------------------------------------------- 1 | # set params 2 | NDK_ROOT=/Users/diwwu/Dropbox/Cocos2d-x/android-ndk-r8/ 3 | #COCOS2DX_ROOT=/Users/diwwu/Dropbox/Cocos2d-x/cocos2d-x 4 | #GAME_ROOT=$COCOS2DX_ROOT/AnalyticX 5 | COCOS2DX_ROOT=../libs 6 | GAME_ROOT=../ 7 | GAME_ANDROID_ROOT=$GAME_ROOT/proj.android 8 | RESOURCE_ROOT=$GAME_ROOT/Resources 9 | 10 | buildexternalsfromsource= 11 | 12 | usage(){ 13 | cat << EOF 14 | usage: $0 [options] 15 | 16 | Build C/C++ native code using Android NDK 17 | 18 | OPTIONS: 19 | -s Build externals from source 20 | -h this help 21 | EOF 22 | } 23 | 24 | while getopts "s" OPTION; do 25 | case "$OPTION" in 26 | s) 27 | buildexternalsfromsource=1 28 | ;; 29 | h) 30 | usage 31 | exit 0 32 | ;; 33 | esac 34 | done 35 | 36 | # make sure assets is exist 37 | if [ -d $GAME_ANDROID_ROOT/assets ]; then 38 | rm -rf $GAME_ANDROID_ROOT/assets 39 | fi 40 | 41 | mkdir $GAME_ANDROID_ROOT/assets 42 | 43 | # copy resources 44 | for file in $RESOURCE_ROOT/* 45 | do 46 | if [ -d "$file" ]; then 47 | cp -rf "$file" $GAME_ANDROID_ROOT/assets 48 | fi 49 | 50 | if [ -f "$file" ]; then 51 | cp "$file" $GAME_ANDROID_ROOT/assets 52 | fi 53 | done 54 | 55 | if [[ $buildexternalsfromsource ]]; then 56 | echo "Building external dependencies from source" 57 | $NDK_ROOT/ndk-build -C $GAME_ANDROID_ROOT \ 58 | NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/source 59 | else 60 | echo "Using prebuilt externals" 61 | $NDK_ROOT/ndk-build -C $GAME_ANDROID_ROOT \ 62 | NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt 63 | fi 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := game_shared 6 | 7 | LOCAL_MODULE_FILENAME := libgame 8 | 9 | LOCAL_SRC_FILES := helloworld/main.cpp \ 10 | ../../Classes/AppDelegate.cpp \ 11 | ../../Classes/HelloWorldScene.cpp \ 12 | ../../Classes/AnalyticX.cpp \ 13 | ../../Classes/AnalyticXStringUtilAndroid.cpp 14 | 15 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes 16 | 17 | LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static 18 | 19 | include $(BUILD_SHARED_LIBRARY) 20 | 21 | $(call import-module,CocosDenshion/android) $(call import-module,cocos2dx) 22 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := gnustl_static 2 | APP_CPPFLAGS := -frtti -------------------------------------------------------------------------------- /AnalyticX/proj.android/jni/helloworld/main.cpp: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "cocos2d.h" 3 | #include "platform/android/jni/JniHelper.h" 4 | #include "CCEventType.h" 5 | #include 6 | #include 7 | 8 | #include "HelloWorldScene.h" 9 | 10 | #define LOG_TAG "main" 11 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) 12 | 13 | using namespace cocos2d; 14 | using namespace cocos2d::extension; 15 | 16 | extern "C" 17 | { 18 | 19 | jint JNI_OnLoad(JavaVM *vm, void *reserved) 20 | { 21 | JniHelper::setJavaVM(vm); 22 | 23 | return JNI_VERSION_1_4; 24 | } 25 | 26 | void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h) 27 | { 28 | if (!CCDirector::sharedDirector()->getOpenGLView()) 29 | { 30 | CCEGLView *view = &CCEGLView::sharedOpenGLView(); 31 | view->setFrameSize(w, h); 32 | // set the design resolution screen size, if you want to use Design Resoulution scaled to current screen, please uncomment next line. 33 | // view.setDesignResolutionSize(480, 320); 34 | 35 | AppDelegate *pAppDelegate = new AppDelegate(); 36 | CCApplication::sharedApplication().run(); 37 | } 38 | else 39 | { 40 | ccDrawInit(); 41 | ccGLInvalidateStateCache(); 42 | 43 | CCShaderCache::sharedShaderCache()->reloadDefaultShaders(); 44 | CCTextureCache::reloadAllTextures(); 45 | CCNotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL); 46 | CCDirector::sharedDirector()->setGLDefaultValues(); 47 | } 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/jni/list.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | append_str=' \' 4 | 5 | list_alldir() 6 | { 7 | for file in $1/* 8 | do 9 | if [ -f $file ]; then 10 | echo $file$append_str | grep .cpp 11 | fi 12 | 13 | if [ -d $file ]; then 14 | list_alldir $file 15 | fi 16 | done 17 | } 18 | 19 | if [ $# -gt 0 ]; then 20 | list_alldir "$1" 21 | else 22 | list_alldir "." 23 | fi -------------------------------------------------------------------------------- /AnalyticX/proj.android/libs/FlurryAgent.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/libs/FlurryAgent.jar -------------------------------------------------------------------------------- /AnalyticX/proj.android/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/Users/diwwu/Dropbox/Cocos2d-x 11 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/makefile: -------------------------------------------------------------------------------- 1 | clean: 2 | rm -rf libs/ 3 | rm -rf obj/ -------------------------------------------------------------------------------- /AnalyticX/proj.android/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-8 15 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diwu/AnalyticX/91b95ed7d263dcdeb86563d650e9d5f7b92cdb56/AnalyticX/proj.android/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /AnalyticX/proj.android/res/layout/game_demo.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | AnalyticX 4 | 5 | -------------------------------------------------------------------------------- /AnalyticX/proj.android/src/org/cocos2dx/lib/Cocos2dxTypefaces.java: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2010-2011 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 | package org.cocos2dx.lib; 25 | 26 | import java.util.Hashtable; 27 | 28 | import android.content.Context; 29 | import android.graphics.Typeface; 30 | 31 | public class Cocos2dxTypefaces { 32 | private static final Hashtable cache = new Hashtable(); 33 | 34 | public static Typeface get(Context context, String name){ 35 | synchronized(cache){ 36 | if (! cache.containsKey(name)){ 37 | Typeface t = Typeface.createFromAsset(context.getAssets(), name); 38 | cache.put(name, t); 39 | } 40 | 41 | return cache.get(name); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | AnalyticX: https://github.com/diwu/AnalyticX 2 | 3 | Copyright (c) 2012 - Di Wu 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. -------------------------------------------------------------------------------- /copyResults.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # A simple script to copy all of necessary files to Add-To-Your-Own-Project folder 4 | # This will prevent mistake and error from manual copying files after done with making changes to the project and ready to ship or making commit. 5 | # 6 | # It will search the file path via `find .` in AnalyticX folder and use the first result (tested and ensured that it has only 1 result) as a path to grab the file and copy it to Add-To-Your-Own-Project folder 7 | # 8 | # Author @haxpor 9 | # 10 | 11 | # findPathOfFileName 12 | # ex: findPathOfFileName AppDelegate.cpp 13 | # findPathOfFileName AnalyticX.cpp 14 | # Return absoluate path of specified file. 15 | # 16 | function findPathOfFileName { 17 | path=`find "$(pwd)" | grep "$1"` 18 | echo "$path" 19 | } 20 | 21 | # copyFileToTargetFolder 22 | # ex: copyFileToTargetFolder /your/path/AnalyticX.cpp /your/path/path2/ 23 | # copyFileToTargetFolder /your/path/AnalyticX.cpp /your/path/path2/AnalyticX.cpp 24 | # It copies by preserve the file permission and attributes via 'cp -a' 25 | # 26 | function copyFileToTargetFolder { 27 | cp -fa "$1" "$2" 28 | } 29 | 30 | # working directory is based on project directory 31 | WORK_DIR="AnalyticX" 32 | # target directory to copy files to is based on *working directory* 33 | TARGET_DIR="../Add-To-Your-Own-Project" 34 | # TODO: Define more files to copy into target directory here ... 35 | RESULT_FILES_TO_COPY=("AnalyticX.cpp" 36 | "AnalyticX.h" 37 | "AnalyticX.mm" 38 | "AnalyticXMacros.h" 39 | "AnalyticXStringUtil.h" 40 | "AnalyticXStringUtil.mm" 41 | "AnalyticXStringUtilAndroid.cpp" 42 | "AnalyticXStringUtilAndroid.h" 43 | "Flurry.h" 44 | "libFlurry.a" 45 | "FlurryAgent.jar") 46 | 47 | # go to our working directory started from xcode project directory 48 | cd $WORK_DIR 49 | 50 | # loop through all files in RESULT_FILES 51 | for file in "${RESULT_FILES_TO_COPY[@]}" 52 | do 53 | filePath=`findPathOfFileName "$file"` 54 | copyFileToTargetFolder "$filePath" "$TARGET_DIR" 55 | echo "Done copying '$file' to '$TARGET_DIR'" 56 | done 57 | 58 | --------------------------------------------------------------------------------