├── .gitignore ├── LICENSE ├── README.md ├── build └── cocos2d-x-filters │ └── cocos2d-x-filters.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ └── xcschemes │ ├── cocos2d-x-filters-ios.xcscheme │ └── cocos2d-x-filters-mac.xcscheme ├── demos ├── Resources │ └── res │ │ ├── CloseNormal.png │ │ ├── CloseSelected.png │ │ ├── HelloWorld2.png │ │ ├── HelloWorld3.png │ │ ├── b1.png │ │ ├── b2.png │ │ ├── bg.jpg │ │ ├── close.png │ │ ├── colorRamp.png │ │ ├── colors.png │ │ ├── colors2.png │ │ ├── dirt.png │ │ ├── f1.png │ │ ├── f2.png │ │ ├── grass.png │ │ ├── grass10.png │ │ ├── grass2.png │ │ ├── grass3.png │ │ ├── grass4.png │ │ ├── grass5.png │ │ ├── helloworld.png │ │ ├── helloworld1.png │ │ ├── mask.png │ │ ├── mask10.png │ │ ├── r1.png │ │ ├── r2.png │ │ ├── red.png │ │ ├── test.plist │ │ ├── test.png │ │ ├── test2.plist │ │ ├── test2.png │ │ ├── test3.plist │ │ ├── test3.png │ │ └── test3.tps └── filters-cpp-demo │ ├── .cocos-project.json │ ├── CMakeLists.txt │ ├── Classes │ ├── AppDelegate.cpp │ ├── AppDelegate.h │ ├── FilterSample.cpp │ ├── FilterSample.h │ ├── VisibleRect.cpp │ └── VisibleRect.h │ ├── cocos2d │ ├── proj.android │ ├── .classpath │ ├── .cproject │ ├── .project │ ├── .settings │ │ ├── org.eclipse.cdt.codan.core.prefs │ │ ├── org.eclipse.cdt.core.prefs │ │ └── org.eclipse.ltk.core.refactoring.prefs │ ├── AndroidManifest.xml │ ├── ant.properties │ ├── build-cfg.json │ ├── build.xml │ ├── build_native.py │ ├── jni │ │ ├── Android.mk │ │ ├── Application.mk │ │ └── hellocpp │ │ │ └── main.cpp │ ├── proguard-project.txt │ ├── res │ │ ├── drawable-hdpi │ │ │ └── icon.png │ │ ├── drawable-ldpi │ │ │ └── icon.png │ │ ├── drawable-mdpi │ │ │ └── icon.png │ │ └── values │ │ │ └── strings.xml │ └── src │ │ └── org │ │ └── cocos2dx │ │ └── cpp │ │ └── AppActivity.java │ ├── proj.ios_mac │ ├── filters-cpp-demo.xcodeproj │ │ └── project.pbxproj │ ├── ios │ │ ├── AppController.h │ │ ├── AppController.mm │ │ ├── Default-568h@2x.png │ │ ├── Default-667h@2x.png │ │ ├── Default-736h@3x.png │ │ ├── Default.png │ │ ├── Default@2x.png │ │ ├── Icon-100.png │ │ ├── Icon-114.png │ │ ├── Icon-120.png │ │ ├── Icon-144.png │ │ ├── Icon-152.png │ │ ├── Icon-29.png │ │ ├── Icon-40.png │ │ ├── Icon-50.png │ │ ├── Icon-57.png │ │ ├── Icon-58.png │ │ ├── Icon-72.png │ │ ├── Icon-76.png │ │ ├── Icon-80.png │ │ ├── Info.plist │ │ ├── Prefix.pch │ │ ├── RootViewController.h │ │ ├── RootViewController.mm │ │ └── main.m │ └── mac │ │ ├── Icon.icns │ │ ├── Info.plist │ │ ├── Prefix.pch │ │ └── main.cpp │ ├── proj.linux │ └── main.cpp │ ├── proj.win32 │ ├── build-cfg.json │ ├── filters-cpp-demo.sln │ ├── filters-cpp-demo.vcxproj │ ├── filters-cpp-demo.vcxproj.filters │ ├── game.rc │ ├── main.cpp │ ├── main.h │ ├── res │ │ └── game.ico │ └── resource.h │ ├── proj.win8.1-universal │ ├── App.Shared │ │ ├── App.xaml │ │ ├── App.xaml.cpp │ │ ├── App.xaml.h │ │ ├── Cocos2dRenderer.cpp │ │ ├── Cocos2dRenderer.h │ │ ├── OpenGLES.cpp │ │ ├── OpenGLES.h │ │ ├── OpenGLESPage.xaml │ │ ├── OpenGLESPage.xaml.cpp │ │ ├── OpenGLESPage.xaml.h │ │ ├── filters-cpp-demo.Shared.vcxitems │ │ ├── filters-cpp-demo.Shared.vcxitems.filters │ │ ├── pch.cpp │ │ └── pch.h │ ├── App.Windows │ │ ├── Package.appxmanifest │ │ ├── filters-cpp-demo.Windows.vcxproj │ │ ├── filters-cpp-demo.Windows.vcxproj.filters │ │ └── filters-cpp-demo.Windows_TemporaryKey.pfx │ ├── App.WindowsPhone │ │ ├── Package.appxmanifest │ │ ├── filters-cpp-demo.WindowsPhone.vcxproj │ │ └── filters-cpp-demo.WindowsPhone.vcxproj.filters │ └── filters-cpp-demo.sln │ └── proj.wp8-xaml │ ├── App │ ├── App.xaml │ ├── App.xaml.cs │ ├── EditBox.xaml │ ├── EditBox.xaml.cs │ ├── LocalizedStrings.cs │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Properties │ │ ├── AppManifest.xml │ │ ├── AssemblyInfo.cs │ │ └── WMAppManifest.xml │ ├── Resources │ │ ├── AppResources.Designer.cs │ │ └── AppResources.resx │ ├── SplashScreenImage.jpg │ └── filters-cpp-demo.csproj │ ├── AppComponent │ ├── filters-cpp-demoComponent.vcxproj │ ├── filters-cpp-demoComponent.vcxproj.filters │ └── src │ │ ├── Cocos2dRenderer.cpp │ │ ├── Cocos2dRenderer.h │ │ ├── Direct3DContentProvider.cpp │ │ ├── Direct3DContentProvider.h │ │ ├── Direct3DInterop.cpp │ │ ├── Direct3DInterop.h │ │ ├── DirectXBase.cpp │ │ ├── DirectXBase.h │ │ ├── DirectXHelper.h │ │ ├── EditBoxEvent.cpp │ │ ├── EditBoxEvent.h │ │ ├── pch.cpp │ │ └── pch.h │ └── filters-cpp-demo.sln └── filters ├── Android.mk ├── cocos2dFilters.h ├── filters ├── CCBlurFilter.cpp ├── CCBlurFilter.h ├── CCBrightnessFilter.cpp ├── CCBrightnessFilter.h ├── CCContrastFilter.cpp ├── CCContrastFilter.h ├── CCCustomFilter.cpp ├── CCCustomFilter.h ├── CCDropShadowFilter.cpp ├── CCDropShadowFilter.h ├── CCExposureFilter.cpp ├── CCExposureFilter.h ├── CCFilter.cpp ├── CCFilter.h ├── CCGammaFilter.cpp ├── CCGammaFilter.h ├── CCGrayFilter.cpp ├── CCGrayFilter.h ├── CCHazeFilter.cpp ├── CCHazeFilter.h ├── CCHueFilter.cpp ├── CCHueFilter.h ├── CCMaskFilter.cpp ├── CCMaskFilter.h ├── CCRGBFilter.cpp ├── CCRGBFilter.h ├── CCSaturationFilter.cpp ├── CCSaturationFilter.h ├── CCSepiaFilter.cpp ├── CCSepiaFilter.h ├── CCSharpenFilter.cpp ├── CCSharpenFilter.h ├── CCTestFilter.cpp └── CCTestFilter.h ├── nodes ├── CCFilteredSprite.cpp └── CCFilteredSprite.h └── shaders ├── ccFilterShader_blur_frag.h ├── ccFilterShader_brightness_frag.h ├── ccFilterShader_colorramp_frag.h ├── ccFilterShader_contrast_frag.h ├── ccFilterShader_drop_shadow_frag.h ├── ccFilterShader_drop_shadow_vert.h ├── ccFilterShader_emboss_frag.h ├── ccFilterShader_embossmov_frag.h ├── ccFilterShader_exposure_frag.h ├── ccFilterShader_gamma_frag.h ├── ccFilterShader_gaussian_blur_frag.h ├── ccFilterShader_gaussian_hblur_frag.h ├── ccFilterShader_gaussian_vblur_frag.h ├── ccFilterShader_grass_frag.h ├── ccFilterShader_gray_frag.h ├── ccFilterShader_haze_frag.h ├── ccFilterShader_hblur_vert.h ├── ccFilterShader_hue_frag.h ├── ccFilterShader_motion_blur_frag.h ├── ccFilterShader_motion_blur_vert.h ├── ccFilterShader_rgb_frag.h ├── ccFilterShader_saturation_frag.h ├── ccFilterShader_sepia_frag.h ├── ccFilterShader_sharpen_frag.h ├── ccFilterShader_sharpen_vert.h ├── ccFilterShader_test_frag.h ├── ccFilterShader_test_vert.h ├── ccFilterShader_vblur_vert.h ├── ccFilterShader_zoom_blur_frag.h ├── ccFilterShaders.cpp ├── ccFilterShaders.h ├── example_Blur.fsh ├── example_ColorBars.fsh ├── example_ColorBars.vsh ├── example_Flower.fsh ├── example_Heart.fsh ├── example_HorizontalColor.fsh ├── example_Julia.fsh ├── example_Mandelbrot.fsh ├── example_Monjori.fsh ├── example_MultiTexture.fsh ├── example_MultiTexture.vsh ├── example_Noisy.fsh ├── example_Plasma.fsh ├── example_Twist.fsh ├── example_bloom.fsh ├── example_celShading.fsh ├── example_edgeDetection.fsh ├── example_greyScale.fsh ├── example_lensFlare.fsh ├── example_normal.fsh ├── example_outline.fsh ├── example_sepia.fsh ├── shadertoy_FireBall.fsh ├── shadertoy_Glow.fsh └── shadertoy_LensFlare.fsh /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014, Jacky Tsang 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without modification, 5 | are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, this 11 | list of conditions and the following disclaimer in the documentation and/or 12 | other materials provided with the distribution. 13 | 14 | * Neither the name of the {organization} nor the names of its 15 | contributors may be used to endorse or promote products derived from 16 | this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 22 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 25 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | cocos2d-x-filters 2 | ================= 3 | 4 | [Official site(Chinese)][6] 5 | 6 | A filter implement for cocos2d-x 2.x/3.x and quick-cocos2d-x 2.x. 7 | 8 | - [for quick-cocos2d-x 2.x][1] 9 | - [lua package for quick][4] 10 | - [A sample for quick][5] 11 | - [for cocos2d-x 2.x][2] 12 | - [for cocos2d-x 3.x][3] 13 | 14 | [1]: http://github.com/chukong/quick-cocos2d-x/tree/master/lib/cocos2d-x/extensions/filters 15 | [2]: https://github.com/zrong/cocos2d-x-filters/tree/v2.x 16 | [3]: https://github.com/zrong/cocos2d-x-filters/tree/v3.x 17 | [4]: https://github.com/chukong/quick-cocos2d-x/blob/master/framework/filter.lua 18 | [5]: https://github.com/chukong/quick-cocos2d-x/tree/master/samples/filters 19 | [6]: https://blog.zengrong.net/cocos2d-x-filters/ 20 | -------------------------------------------------------------------------------- /demos/Resources/res/CloseNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/CloseNormal.png -------------------------------------------------------------------------------- /demos/Resources/res/CloseSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/CloseSelected.png -------------------------------------------------------------------------------- /demos/Resources/res/HelloWorld2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/HelloWorld2.png -------------------------------------------------------------------------------- /demos/Resources/res/HelloWorld3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/HelloWorld3.png -------------------------------------------------------------------------------- /demos/Resources/res/b1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/b1.png -------------------------------------------------------------------------------- /demos/Resources/res/b2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/b2.png -------------------------------------------------------------------------------- /demos/Resources/res/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/bg.jpg -------------------------------------------------------------------------------- /demos/Resources/res/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/close.png -------------------------------------------------------------------------------- /demos/Resources/res/colorRamp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/colorRamp.png -------------------------------------------------------------------------------- /demos/Resources/res/colors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/colors.png -------------------------------------------------------------------------------- /demos/Resources/res/colors2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/colors2.png -------------------------------------------------------------------------------- /demos/Resources/res/dirt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/dirt.png -------------------------------------------------------------------------------- /demos/Resources/res/f1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/f1.png -------------------------------------------------------------------------------- /demos/Resources/res/f2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/f2.png -------------------------------------------------------------------------------- /demos/Resources/res/grass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/grass.png -------------------------------------------------------------------------------- /demos/Resources/res/grass10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/grass10.png -------------------------------------------------------------------------------- /demos/Resources/res/grass2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/grass2.png -------------------------------------------------------------------------------- /demos/Resources/res/grass3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/grass3.png -------------------------------------------------------------------------------- /demos/Resources/res/grass4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/grass4.png -------------------------------------------------------------------------------- /demos/Resources/res/grass5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/grass5.png -------------------------------------------------------------------------------- /demos/Resources/res/helloworld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/helloworld.png -------------------------------------------------------------------------------- /demos/Resources/res/helloworld1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/helloworld1.png -------------------------------------------------------------------------------- /demos/Resources/res/mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/mask.png -------------------------------------------------------------------------------- /demos/Resources/res/mask10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/mask10.png -------------------------------------------------------------------------------- /demos/Resources/res/r1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/r1.png -------------------------------------------------------------------------------- /demos/Resources/res/r2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/r2.png -------------------------------------------------------------------------------- /demos/Resources/res/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/red.png -------------------------------------------------------------------------------- /demos/Resources/res/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/test.png -------------------------------------------------------------------------------- /demos/Resources/res/test2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/test2.png -------------------------------------------------------------------------------- /demos/Resources/res/test3.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | frames 6 | 7 | grass.png 8 | 9 | frame 10 | {{2,324},{600,234}} 11 | offset 12 | {0,-33} 13 | rotated 14 | 15 | sourceColorRect 16 | {{0,66},{600,234}} 17 | sourceSize 18 | {600,300} 19 | 20 | helloworld1.png 21 | 22 | frame 23 | {{2,2},{480,320}} 24 | offset 25 | {0,0} 26 | rotated 27 | 28 | sourceColorRect 29 | {{0,0},{480,320}} 30 | sourceSize 31 | {480,320} 32 | 33 | 34 | metadata 35 | 36 | format 37 | 2 38 | realTextureFileName 39 | test3.png 40 | size 41 | {512,1024} 42 | smartupdate 43 | $TexturePacker:SmartUpdate:f5865aa137b8da4fa68b9c3f013eee7e:69634f2cff914104ef8183865fc328d7:efbd392f8172d765a3057b8daf5d6c2f$ 44 | textureFileName 45 | test3.png 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /demos/Resources/res/test3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/Resources/res/test3.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/.cocos-project.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_type": "cpp" 3 | } -------------------------------------------------------------------------------- /demos/filters-cpp-demo/Classes/AppDelegate.cpp: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "FilterSample.h" 3 | 4 | USING_NS_CC; 5 | 6 | AppDelegate::AppDelegate() { 7 | 8 | } 9 | 10 | AppDelegate::~AppDelegate() 11 | { 12 | } 13 | 14 | //if you want a different context,just modify the value of glContextAttrs 15 | //it will takes effect on all platforms 16 | void AppDelegate::initGLContextAttrs() 17 | { 18 | //set OpenGL context attributions,now can only set six attributions: 19 | //red,green,blue,alpha,depth,stencil 20 | GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; 21 | 22 | GLView::setGLContextAttrs(glContextAttrs); 23 | } 24 | 25 | bool AppDelegate::applicationDidFinishLaunching() { 26 | // initialize director 27 | auto director = Director::getInstance(); 28 | auto glview = director->getOpenGLView(); 29 | if(!glview) { 30 | glview = GLViewImpl::create("Filters Sample"); 31 | director->setOpenGLView(glview); 32 | } 33 | 34 | // turn on display FPS 35 | director->setDisplayStats(true); 36 | 37 | // set FPS. the default value is 1.0/60 if you don't call this 38 | director->setAnimationInterval(1.0 / 60); 39 | 40 | // create a scene. it's an autorelease object 41 | auto scene = FilterSample::scene(); 42 | 43 | // run 44 | director->runWithScene(scene); 45 | 46 | return true; 47 | } 48 | 49 | // This function will be called when the app is inactive. When comes a phone call,it's be invoked too 50 | void AppDelegate::applicationDidEnterBackground() { 51 | Director::getInstance()->stopAnimation(); 52 | 53 | // if you use SimpleAudioEngine, it must be pause 54 | // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); 55 | } 56 | 57 | // this function will be called when the app is active again 58 | void AppDelegate::applicationWillEnterForeground() { 59 | Director::getInstance()->startAnimation(); 60 | 61 | // if you use SimpleAudioEngine, it must resume here 62 | // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); 63 | } 64 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #ifndef _APP_DELEGATE_H_ 2 | #define _APP_DELEGATE_H_ 3 | 4 | #include "cocos2d.h" 5 | 6 | /** 7 | @brief The cocos2d Application. 8 | 9 | The reason for implement as private inheritance is to hide some interface call by Director. 10 | */ 11 | class AppDelegate : private cocos2d::Application 12 | { 13 | public: 14 | AppDelegate(); 15 | virtual ~AppDelegate(); 16 | 17 | virtual void initGLContextAttrs(); 18 | 19 | /** 20 | @brief Implement Director and Scene init code here. 21 | @return true Initialize success, app continue. 22 | @return false Initialize failed, app terminate. 23 | */ 24 | virtual bool applicationDidFinishLaunching(); 25 | 26 | /** 27 | @brief The function be called when the application enter background 28 | @param the pointer of the application 29 | */ 30 | virtual void applicationDidEnterBackground(); 31 | 32 | /** 33 | @brief The function be called when the application enter foreground 34 | @param the pointer of the application 35 | */ 36 | virtual void applicationWillEnterForeground(); 37 | }; 38 | 39 | #endif // _APP_DELEGATE_H_ 40 | 41 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/Classes/FilterSample.h: -------------------------------------------------------------------------------- 1 | /********************************************** 2 | * Author: zrong(zengrong.net) 3 | * Creation: 2014-03-24 4 | * Last Modification: 2015-05-06 5 | **********************************************/ 6 | 7 | #ifndef FILTER_SAMPLE_H 8 | #define FILTER_SAMPLE_H 9 | 10 | #include "cocos2d.h" 11 | #include "extensions/ExtensionMacros.h" 12 | #include "VisibleRect.h" 13 | #include "filters/cocos2dFilters.h" 14 | 15 | USING_NS_CC_EXT; 16 | 17 | typedef enum { 18 | LEFT_TOP, 19 | RIGHT_TOP, 20 | LEFT_BOTTOM, 21 | RIGHT_BOTTOM, 22 | CENTER, 23 | } ccLocation; 24 | 25 | class FilterSample : public cocos2d::Layer 26 | { 27 | public: 28 | static cocos2d::Scene* scene(); 29 | 30 | FilterSample(); 31 | ~FilterSample(); 32 | 33 | // Here's a difference. Method 'init' in cocos2d-x returns bool, 34 | // instead of returning 'id' in cocos2d-iphone 35 | virtual bool init(); 36 | 37 | // a selector callback 38 | void onClose(Ref* pSender); 39 | 40 | void onRestart(Ref* pSender); 41 | void onNext(Ref* pSender); 42 | void onBack(Ref* pSender); 43 | void onClearFilter(Ref* pSender); 44 | 45 | Sprite* getFilteredSprite(int index); 46 | 47 | CREATE_FUNC(FilterSample); 48 | 49 | virtual void update(float delta); 50 | 51 | private: 52 | Label* _nameLabel; 53 | Filters _filters; 54 | std::vector _filterNames; 55 | std::vector _multiFilters; 56 | std::vector _multiFilterNames; 57 | int _filtersNum = 0; 58 | Node* _pNode; 59 | 60 | void initFilters(); 61 | void showFilteredDisplay(int index); 62 | 63 | Sprite* testFilter(Filter* filter, ccLocation location = CENTER, 64 | int order = 0, const char* path = "res/helloworld.png"); 65 | Sprite* testFilter(Filters filters, ccLocation location = CENTER, 66 | int order = 0, const char* path = "res/helloworld.png"); 67 | Sprite* testFilterFromFrame(Filter* filter, ccLocation location = CENTER, 68 | int order = 0, const char* path = "grass.png"); 69 | Sprite* testFilterFromFrame(Filters filters, ccLocation location = CENTER, 70 | int order = 0, const char* path = "grass.png"); 71 | Point getLocation(ccLocation location); 72 | 73 | private: 74 | GLProgram* getEmboss(); 75 | cocos2d::GLProgram* getEmbossMov(); 76 | cocos2d::GLProgram* getColorRamp(); 77 | cocos2d::GLProgram* getGrass(); 78 | 79 | int _timeUniformLocation; 80 | float _totalTime = 0.0f; 81 | }; 82 | 83 | #endif // FILTER_SAMPLE_H -------------------------------------------------------------------------------- /demos/filters-cpp-demo/Classes/VisibleRect.h: -------------------------------------------------------------------------------- 1 | /********************************************** 2 | * author: zrong(zengrong.net) 3 | * Creation: 2014-03-24 4 | * Last Modification: 2015-05-06 5 | **********************************************/ 6 | 7 | #ifndef VISIBLERECT_H 8 | #define VISIBLERECT_H 9 | 10 | #include "cocos2d.h" 11 | 12 | USING_NS_CC; 13 | 14 | class VisibleRect 15 | { 16 | public: 17 | static Rect getVisibleRect(); 18 | static Size getWinSize(); 19 | 20 | static Point left(); 21 | static Point left(const float &ox, const float &oy); 22 | static Point right(); 23 | static Point right(const float &ox, const float &oy); 24 | static Point top(); 25 | static Point top(const float &ox, const float &oy); 26 | static Point bottom(); 27 | static Point bottom(const float &ox, const float &oy); 28 | static Point center(); 29 | static Point center(const float &ox, const float &oy); 30 | static Point leftTop(); 31 | static Point leftTop(const float &ox, const float &oy); 32 | static Point rightTop(); 33 | static Point rightTop(const float &ox, const float &oy); 34 | static Point leftBottom(); 35 | static Point leftBottom(const float &ox, const float &oy); 36 | static Point rightBottom(); 37 | static Point rightBottom(const float &ox, const float &oy); 38 | private: 39 | static void lazyInit(); 40 | static Rect s_visibleRect; 41 | static Size _sSize; 42 | }; 43 | 44 | #endif /* VISIBLERECT_H */ -------------------------------------------------------------------------------- /demos/filters-cpp-demo/cocos2d: -------------------------------------------------------------------------------- 1 | /Volumes/HD1/cocos/cocos2d-x -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/.settings/org.eclipse.cdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | environment/project/0.1230402123/append=true 3 | environment/project/0.1230402123/appendContributed=true 4 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/.settings/org.eclipse.ltk.core.refactoring.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false 3 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 17 | 18 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/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 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/build-cfg.json: -------------------------------------------------------------------------------- 1 | { 2 | "ndk_module_path" :[ 3 | "../cocos2d", 4 | "../cocos2d/cocos", 5 | "../cocos2d/external" 6 | ], 7 | "copy_resources": [ 8 | { 9 | "from": "../Resources", 10 | "to": "" 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | $(call import-add-path,$(LOCAL_PATH)/../../cocos2d) 6 | $(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external) 7 | $(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos) 8 | 9 | LOCAL_MODULE := cocos2dcpp_shared 10 | 11 | LOCAL_MODULE_FILENAME := libcocos2dcpp 12 | 13 | LOCAL_SRC_FILES := hellocpp/main.cpp \ 14 | ../../Classes/AppDelegate.cpp \ 15 | ../../Classes/HelloWorldScene.cpp 16 | 17 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes 18 | 19 | # _COCOS_HEADER_ANDROID_BEGIN 20 | # _COCOS_HEADER_ANDROID_END 21 | 22 | 23 | LOCAL_STATIC_LIBRARIES := cocos2dx_static 24 | 25 | # _COCOS_LIB_ANDROID_BEGIN 26 | # _COCOS_LIB_ANDROID_END 27 | 28 | include $(BUILD_SHARED_LIBRARY) 29 | 30 | $(call import-module,.) 31 | 32 | # _COCOS_LIB_IMPORT_ANDROID_BEGIN 33 | # _COCOS_LIB_IMPORT_ANDROID_END 34 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := gnustl_static 2 | 3 | APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char 4 | APP_LDFLAGS := -latomic 5 | 6 | 7 | ifeq ($(NDK_DEBUG),1) 8 | APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 9 | APP_OPTIM := debug 10 | else 11 | APP_CPPFLAGS += -DNDEBUG 12 | APP_OPTIM := release 13 | endif 14 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/jni/hellocpp/main.cpp: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "cocos2d.h" 3 | #include "platform/android/jni/JniHelper.h" 4 | #include 5 | #include 6 | 7 | #define LOG_TAG "main" 8 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) 9 | 10 | using namespace cocos2d; 11 | 12 | void cocos_android_app_init (JNIEnv* env, jobject thiz) { 13 | LOGD("cocos_android_app_init"); 14 | AppDelegate *pAppDelegate = new AppDelegate(); 15 | } 16 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/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 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.android/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.android/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.android/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | filters-cpp-demo 4 | 5 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.android/src/org/cocos2dx/cpp/AppActivity.java: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2008-2010 Ricardo Quesada 3 | Copyright (c) 2010-2012 cocos2d-x.org 4 | Copyright (c) 2011 Zynga Inc. 5 | Copyright (c) 2013-2014 Chukong Technologies Inc. 6 | 7 | http://www.cocos2d-x.org 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy 10 | of this software and associated documentation files (the "Software"), to deal 11 | in the Software without restriction, including without limitation the rights 12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | copies of the Software, and to permit persons to whom the Software is 14 | furnished to do so, subject to the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be included in 17 | all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 25 | THE SOFTWARE. 26 | ****************************************************************************/ 27 | package org.cocos2dx.cpp; 28 | 29 | import org.cocos2dx.lib.Cocos2dxActivity; 30 | 31 | public class AppActivity extends Cocos2dxActivity { 32 | } 33 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/AppController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class RootViewController; 4 | 5 | @interface AppController : NSObject { 6 | UIWindow *window; 7 | } 8 | 9 | @property(nonatomic, readonly) RootViewController* viewController; 10 | 11 | @end 12 | 13 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Default-568h@2x.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Default-667h@2x.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Default-736h@3x.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Default.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Default@2x.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-100.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-114.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-120.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-144.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-152.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-29.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-40.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-50.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-57.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-58.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-72.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-76.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Icon-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/ios/Icon-80.png -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'iphone' target in the 'iphone' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | 10 | #ifdef __cplusplus 11 | #include "cocos2d.h" 12 | #endif -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/RootViewController.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | Copyright (c) 2013 cocos2d-x.org 3 | Copyright (c) 2013-2014 Chukong Technologies Inc. 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 | - (BOOL) prefersStatusBarHidden; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/ios/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main(int argc, char *argv[]) { 4 | 5 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 6 | int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); 7 | [pool release]; 8 | return retVal; 9 | } 10 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/mac/Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.ios_mac/mac/Icon.icns -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/mac/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | Icon 11 | CFBundleIdentifier 12 | org.zengrong.filters.cppdemo 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSApplicationCategoryType 26 | public.app-category.games 27 | LSMinimumSystemVersion 28 | ${MACOSX_DEPLOYMENT_TARGET} 29 | NSHumanReadableCopyright 30 | Copyright © 2013. All rights reserved. 31 | NSMainNibFile 32 | MainMenu 33 | NSPrincipalClass 34 | NSApplication 35 | 36 | 37 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/mac/Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | 9 | #ifdef __cplusplus 10 | #include "cocos2d.h" 11 | #endif -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.ios_mac/mac/main.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 "AppDelegate.h" 26 | #include "cocos2d.h" 27 | 28 | USING_NS_CC; 29 | 30 | int main(int argc, char *argv[]) 31 | { 32 | AppDelegate app; 33 | return Application::getInstance()->run(); 34 | } 35 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.linux/main.cpp: -------------------------------------------------------------------------------- 1 | #include "../Classes/AppDelegate.h" 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | USING_NS_CC; 9 | 10 | int main(int argc, char **argv) 11 | { 12 | // create the application instance 13 | AppDelegate app; 14 | return Application::getInstance()->run(); 15 | } 16 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/build-cfg.json: -------------------------------------------------------------------------------- 1 | { 2 | "copy_resources": [ 3 | { 4 | "from": "../Resources", 5 | "to": "" 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/filters-cpp-demo.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "filters-cpp-demo", "filters-cpp-demo.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}" 5 | ProjectSection(ProjectDependencies) = postProject 6 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} 7 | EndProjectSection 8 | EndProject 9 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\cocos2d\cocos\2d\libcocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}" 10 | EndProject 11 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libbox2d", "..\cocos2d\external\Box2D\proj.win32\libbox2d.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}" 12 | EndProject 13 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "..\cocos2d\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}" 14 | EndProject 15 | Global 16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 17 | Debug|Win32 = Debug|Win32 18 | Release|Win32 = Release|Win32 19 | EndGlobalSection 20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 21 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32 22 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32 23 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32 24 | {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32 25 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32 26 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32 27 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32 28 | {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32 29 | {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.ActiveCfg = Debug|Win32 30 | {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.Build.0 = Debug|Win32 31 | {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.ActiveCfg = Release|Win32 32 | {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.Build.0 = Release|Win32 33 | {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Debug|Win32.ActiveCfg = Debug|Win32 34 | {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Debug|Win32.Build.0 = Debug|Win32 35 | {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.ActiveCfg = Release|Win32 36 | {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.Build.0 = Release|Win32 37 | EndGlobalSection 38 | GlobalSection(SolutionProperties) = preSolution 39 | HideSolutionNode = FALSE 40 | EndGlobalSection 41 | EndGlobal 42 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/filters-cpp-demo.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {84a8ebd7-7cf0-47f6-b75e-d441df67da40} 6 | 7 | 8 | {715254bc-d70b-4ec5-bf29-467dd3ace079} 9 | 10 | 11 | {bb6c862e-70e9-49d9-81b7-3829a6f50471} 12 | 13 | 14 | 15 | 16 | win32 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | 26 | 27 | win32 28 | 29 | 30 | src 31 | 32 | 33 | src 34 | 35 | 36 | 37 | 38 | resource 39 | 40 | 41 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/game.rc: -------------------------------------------------------------------------------- 1 | // Microsoft Visual C++ generated resource script. 2 | // 3 | #include "resource.h" 4 | 5 | #define APSTUDIO_READONLY_SYMBOLS 6 | ///////////////////////////////////////////////////////////////////////////// 7 | // 8 | // Generated from the TEXTINCLUDE 2 resource. 9 | // 10 | #define APSTUDIO_HIDDEN_SYMBOLS 11 | #include "windows.h" 12 | #undef APSTUDIO_HIDDEN_SYMBOLS 13 | ///////////////////////////////////////////////////////////////////////////// 14 | #undef APSTUDIO_READONLY_SYMBOLS 15 | 16 | ///////////////////////////////////////////////////////////////////////////// 17 | // English (U.S.) resources 18 | 19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 20 | #ifdef _WIN32 21 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 22 | #pragma code_page(1252) 23 | #endif //_WIN32 24 | 25 | #ifdef APSTUDIO_INVOKED 26 | ///////////////////////////////////////////////////////////////////////////// 27 | // 28 | // TEXTINCLUDE 29 | // 30 | 31 | 1 TEXTINCLUDE 32 | BEGIN 33 | "resource.h\0" 34 | END 35 | 36 | #endif // APSTUDIO_INVOKED 37 | 38 | ///////////////////////////////////////////////////////////////////////////// 39 | // 40 | // Icon 41 | // 42 | 43 | // Icon with lowest ID value placed first to ensure application icon 44 | // remains consistent on all systems. 45 | GLFW_ICON ICON "res\\game.ico" 46 | 47 | ///////////////////////////////////////////////////////////////////////////// 48 | // 49 | // Version 50 | // 51 | 52 | VS_VERSION_INFO VERSIONINFO 53 | FILEVERSION 1,0,0,1 54 | PRODUCTVERSION 1,0,0,1 55 | FILEFLAGSMASK 0x3fL 56 | #ifdef _DEBUG 57 | FILEFLAGS 0x1L 58 | #else 59 | FILEFLAGS 0x0L 60 | #endif 61 | FILEOS 0x4L 62 | FILETYPE 0x2L 63 | FILESUBTYPE 0x0L 64 | BEGIN 65 | BLOCK "StringFileInfo" 66 | BEGIN 67 | BLOCK "040904B0" 68 | BEGIN 69 | VALUE "CompanyName", "\0" 70 | VALUE "FileDescription", "game Module\0" 71 | VALUE "FileVersion", "1, 0, 0, 1\0" 72 | VALUE "InternalName", "game\0" 73 | VALUE "LegalCopyright", "Copyright \0" 74 | VALUE "OriginalFilename", "game.exe\0" 75 | VALUE "ProductName", "game Module\0" 76 | VALUE "ProductVersion", "1, 0, 0, 1\0" 77 | END 78 | END 79 | BLOCK "VarFileInfo" 80 | BEGIN 81 | VALUE "Translation", 0x0409, 0x04B0 82 | END 83 | END 84 | 85 | ///////////////////////////////////////////////////////////////////////////// 86 | #endif // !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 87 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/main.cpp: -------------------------------------------------------------------------------- 1 | #include "main.h" 2 | #include "AppDelegate.h" 3 | #include "cocos2d.h" 4 | 5 | USING_NS_CC; 6 | 7 | int APIENTRY _tWinMain(HINSTANCE hInstance, 8 | HINSTANCE hPrevInstance, 9 | LPTSTR lpCmdLine, 10 | int nCmdShow) 11 | { 12 | UNREFERENCED_PARAMETER(hPrevInstance); 13 | UNREFERENCED_PARAMETER(lpCmdLine); 14 | 15 | // create the application instance 16 | AppDelegate app; 17 | return Application::getInstance()->run(); 18 | } 19 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/main.h: -------------------------------------------------------------------------------- 1 | #ifndef __MAIN_H__ 2 | #define __MAIN_H__ 3 | 4 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 5 | 6 | // Windows Header Files: 7 | #include 8 | #include 9 | 10 | // C RunTime Header Files 11 | #include "CCStdC.h" 12 | 13 | #endif // __MAIN_H__ 14 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/res/game.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.win32/res/game.ico -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win32/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by game.RC 4 | // 5 | 6 | #define IDS_PROJNAME 100 7 | #define IDR_TESTJS 100 8 | 9 | #define ID_FILE_NEW_WINDOW 32771 10 | 11 | // Next default values for new objects 12 | // 13 | #ifdef APSTUDIO_INVOKED 14 | #ifndef APSTUDIO_READONLY_SYMBOLS 15 | #define _APS_NEXT_RESOURCE_VALUE 201 16 | #define _APS_NEXT_CONTROL_VALUE 1000 17 | #define _APS_NEXT_SYMED_VALUE 101 18 | #define _APS_NEXT_COMMAND_VALUE 32775 19 | #endif 20 | #endif 21 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | 10 | cpp_tests 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/App.xaml.cpp: -------------------------------------------------------------------------------- 1 | #include "App.xaml.h" 2 | #include "OpenGLESPage.xaml.h" 3 | 4 | using namespace cocos2d; 5 | 6 | App::App() 7 | { 8 | InitializeComponent(); 9 | } 10 | 11 | void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) 12 | { 13 | if (mPage == nullptr) 14 | { 15 | mPage = ref new OpenGLESPage(&mOpenGLES); 16 | } 17 | 18 | // Place the page in the current window and ensure that it is active. 19 | Windows::UI::Xaml::Window::Current->Content = mPage; 20 | Windows::UI::Xaml::Window::Current->Activate(); 21 | } 22 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/App.xaml.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "app.g.h" 4 | #include "OpenGLES.h" 5 | #include "openglespage.xaml.h" 6 | 7 | namespace cocos2d 8 | { 9 | ref class App sealed 10 | { 11 | public: 12 | App(); 13 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; 14 | 15 | private: 16 | OpenGLESPage^ mPage; 17 | OpenGLES mOpenGLES; 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/Cocos2dRenderer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d-x http://www.cocos2d-x.org 3 | * 4 | * Copyright (c) 2010-2014 - cocos2d-x community 5 | * 6 | * Portions Copyright (c) Microsoft Open Technologies, Inc. 7 | * All Rights Reserved 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and limitations under the License. 17 | */ 18 | #pragma once 19 | 20 | #include 21 | 22 | #include "cocos2d.h" 23 | 24 | 25 | class AppDelegate; 26 | 27 | namespace cocos2d 28 | { 29 | class Cocos2dRenderer 30 | { 31 | public: 32 | Cocos2dRenderer(int width, int height, float dpi, 33 | Windows::Graphics::Display::DisplayOrientations orientation, 34 | Windows::UI::Core::CoreDispatcher^ dispathcer, Windows::UI::Xaml::Controls::Panel^ panel); 35 | ~Cocos2dRenderer(); 36 | void Draw(GLsizei width, GLsizei height, float dpi, Windows::Graphics::Display::DisplayOrientations orientation); 37 | void QueuePointerEvent(PointerEventType type, Windows::UI::Core::PointerEventArgs^ args); 38 | void QueueKeyBoardEvent(Cocos2dKeyEvent type, Windows::UI::Core::KeyEventArgs^ e); 39 | void Pause(); 40 | void Resume(); 41 | void DeviceLost(); 42 | 43 | private: 44 | 45 | int m_width; 46 | int m_height; 47 | float m_dpi; 48 | 49 | // The AppDelegate for the Cocos2D app 50 | AppDelegate* m_app; 51 | Platform::Agile m_dispatcher; 52 | Platform::Agile m_panel; 53 | Windows::Graphics::Display::DisplayOrientations m_orientation; 54 | }; 55 | } -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/OpenGLES.h: -------------------------------------------------------------------------------- 1 | /* 2 | * cocos2d-x http://www.cocos2d-x.org 3 | * 4 | * Copyright (c) 2010-2014 - cocos2d-x community 5 | * 6 | * Portions Copyright (c) Microsoft Open Technologies, Inc. 7 | * All Rights Reserved 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and limitations under the License. 17 | */ 18 | 19 | #pragma once 20 | 21 | // OpenGL ES includes 22 | #include 23 | #include 24 | 25 | // EGL includes 26 | #include 27 | #include 28 | #include 29 | #include 30 | 31 | class OpenGLES 32 | { 33 | public: 34 | OpenGLES(); 35 | ~OpenGLES(); 36 | 37 | EGLSurface CreateSurface(Windows::UI::Xaml::Controls::SwapChainPanel^ panel, const Windows::Foundation::Size* renderSurfaceSize); 38 | void DestroySurface(const EGLSurface surface); 39 | void MakeCurrent(const EGLSurface surface); 40 | EGLBoolean SwapBuffers(const EGLSurface surface); 41 | void Reset(); 42 | 43 | private: 44 | void Initialize(); 45 | void Cleanup(); 46 | 47 | private: 48 | EGLDisplay mEglDisplay; 49 | EGLContext mEglContext; 50 | EGLConfig mEglConfig; 51 | }; 52 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/OpenGLESPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/filters-cpp-demo.Shared.vcxitems.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Classes 10 | 11 | 12 | Classes 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | {38ad799c-8c3c-44a2-8e41-516c8f62f556} 24 | 25 | 26 | 27 | 28 | Classes 29 | 30 | 31 | Classes 32 | 33 | 34 | Classes 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Shared/pch.h: -------------------------------------------------------------------------------- 1 | // 2 | // pch.h 3 | // Header for standard system include files. 4 | // 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | 11 | #include "cocos2d.h" 12 | #include "cocos-ext.h" 13 | 14 | 15 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Windows/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | filters-cpp-demo.Windows 6 | dalestam 7 | Assets\StoreLogo.png 8 | 9 | 10 | 6.3.0 11 | 6.3.0 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Windows/filters-cpp-demo.Windows.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {1a9fa652-867e-41d2-8588-962f108d2d8f} 6 | bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Assets 18 | 19 | 20 | Assets 21 | 22 | 23 | Assets 24 | 25 | 26 | Assets 27 | 28 | 29 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.Windows/filters-cpp-demo.Windows_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zrong/cocos2d-x-filters/9cc1b84ff5b6d3cd39e922e63775e1a462916858/demos/filters-cpp-demo/proj.win8.1-universal/App.Windows/filters-cpp-demo.Windows_TemporaryKey.pfx -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | filters-cpp-demo.WindowsPhone 7 | dalestam 8 | Assets\StoreLogo.png 9 | 10 | 11 | 6.3.1 12 | 6.3.1 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.win8.1-universal/App.WindowsPhone/filters-cpp-demo.WindowsPhone.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {c8beb60d-689b-4aaa-9749-99bd3e2dcf75} 6 | bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png 7 | 8 | 9 | Assets 10 | 11 | 12 | Assets 13 | 14 | 15 | Assets 16 | 17 | 18 | Assets 19 | 20 | 21 | Assets 22 | 23 | 24 | Assets 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.wp8-xaml/App/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /demos/filters-cpp-demo/proj.wp8-xaml/App/EditBox.xaml: -------------------------------------------------------------------------------- 1 |  11 | 12 | 13 | 14 | 15 | 16 |