├── Resources ├── res │ └── .gitkeep ├── CloseNormal.png ├── HelloWorld.png ├── CloseSelected.png └── fonts │ └── Marker Felt.ttf ├── .cocos-project.json ├── proj.wp8-xaml ├── AppComponent │ ├── src │ │ ├── pch.cpp │ │ ├── pch.h │ │ ├── EditBoxEvent.cpp │ │ ├── EditBoxEvent.h │ │ ├── DirectXHelper.h │ │ ├── Direct3DContentProvider.h │ │ ├── Direct3DContentProvider.cpp │ │ ├── Cocos2dRenderer.h │ │ ├── DirectXBase.h │ │ ├── Direct3DInterop.h │ │ ├── Cocos2dRenderer.cpp │ │ ├── Direct3DInterop.cpp │ │ └── DirectXBase.cpp │ └── ModelViewerComponent.vcxproj.filters ├── App │ ├── SplashScreenImage.jpg │ ├── Assets │ │ ├── AlignmentGrid.png │ │ ├── ApplicationIcon.png │ │ └── Tiles │ │ │ ├── IconicTileSmall.png │ │ │ ├── FlipCycleTileLarge.png │ │ │ ├── FlipCycleTileSmall.png │ │ │ ├── FlipCycleTileMedium.png │ │ │ └── IconicTileMediumLarge.png │ ├── Properties │ │ ├── AppManifest.xml │ │ ├── AssemblyInfo.cs │ │ └── WMAppManifest.xml │ ├── LocalizedStrings.cs │ ├── App.xaml │ ├── EditBox.xaml │ ├── MainPage.xaml │ ├── Resources │ │ ├── AppResources.Designer.cs │ │ └── AppResources.resx │ ├── EditBox.xaml.cs │ ├── ModelViewer.csproj │ └── MainPage.xaml.cs └── ModelViewer.sln ├── .gitmodules ├── proj.win32 ├── res │ └── game.ico ├── build-cfg.json ├── main.h ├── resource.h ├── main.cpp ├── ModelViewer.vcxproj.user ├── ModelViewer.vcxproj.filters ├── game.rc ├── ModelViewer.sln └── ModelViewer.vcxproj ├── proj.ios_mac ├── ios │ ├── Default.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 │ ├── Icon-100.png │ ├── Icon-114.png │ ├── Icon-120.png │ ├── Icon-144.png │ ├── Icon-152.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── Default-667h@2x.png │ ├── Default-736h@3x.png │ ├── AppController.h │ ├── Prefix.pch │ ├── main.m │ ├── RootViewController.h │ ├── RootViewController.mm │ ├── Info.plist │ └── AppController.mm └── mac │ ├── Icon.icns │ ├── Prefix.pch │ ├── Info.plist │ └── main.cpp ├── proj.android ├── res │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ └── values │ │ └── strings.xml ├── .settings │ ├── org.eclipse.ltk.core.refactoring.prefs │ ├── org.eclipse.cdt.core.prefs │ └── org.eclipse.cdt.codan.core.prefs ├── build-cfg.json ├── jni │ ├── Application.mk │ ├── hellocpp │ │ └── main.cpp │ └── Android.mk ├── project.properties ├── .classpath ├── ant.properties ├── proguard-project.txt ├── src │ └── org │ │ └── cocos2dx │ │ └── cpp │ │ └── AppActivity.java ├── AndroidManifest.xml ├── build.xml ├── .project └── build_native.py ├── .gitignore ├── proj.linux └── main.cpp ├── README.md ├── Classes ├── AppDelegate.h ├── HelloWorldScene.h ├── AppDelegate.cpp └── HelloWorldScene.cpp └── CMakeLists.txt /Resources/res/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.cocos-project.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_type": "cpp" 3 | } -------------------------------------------------------------------------------- /proj.wp8-xaml/AppComponent/src/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "cocos2d"] 2 | path = cocos2d 3 | url = https://github.com/cocos2d/cocos2d-x 4 | -------------------------------------------------------------------------------- /proj.win32/res/game.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.win32/res/game.ico -------------------------------------------------------------------------------- /Resources/CloseNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/Resources/CloseNormal.png -------------------------------------------------------------------------------- /Resources/HelloWorld.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/Resources/HelloWorld.png -------------------------------------------------------------------------------- /Resources/CloseSelected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/Resources/CloseSelected.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Default.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-29.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-40.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-50.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-57.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-58.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-72.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-76.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-80.png -------------------------------------------------------------------------------- /proj.ios_mac/mac/Icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/mac/Icon.icns -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-100.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-114.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-120.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-144.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Icon-152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Icon-152.png -------------------------------------------------------------------------------- /Resources/fonts/Marker Felt.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/Resources/fonts/Marker Felt.ttf -------------------------------------------------------------------------------- /proj.ios_mac/ios/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Default@2x.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Default-568h@2x.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Default-667h@2x.png -------------------------------------------------------------------------------- /proj.ios_mac/ios/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.ios_mac/ios/Default-736h@3x.png -------------------------------------------------------------------------------- /proj.android/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.android/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /proj.android/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.android/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /proj.android/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.android/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /proj.wp8-xaml/App/SplashScreenImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/SplashScreenImage.jpg -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Assets/AlignmentGrid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/Assets/AlignmentGrid.png -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Assets/ApplicationIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/Assets/ApplicationIcon.png -------------------------------------------------------------------------------- /proj.android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ModelViewer 4 | 5 | -------------------------------------------------------------------------------- /proj.win32/build-cfg.json: -------------------------------------------------------------------------------- 1 | { 2 | "copy_resources": [ 3 | { 4 | "from": "../Resources", 5 | "to": "" 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Assets/Tiles/IconicTileSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/Assets/Tiles/IconicTileSmall.png -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Assets/Tiles/FlipCycleTileLarge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/Assets/Tiles/FlipCycleTileLarge.png -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Assets/Tiles/FlipCycleTileSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/Assets/Tiles/FlipCycleTileSmall.png -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Assets/Tiles/FlipCycleTileMedium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/Assets/Tiles/FlipCycleTileMedium.png -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Assets/Tiles/IconicTileMediumLarge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/songchengjiang/cocos2d-x-ModelViewer/HEAD/proj.wp8-xaml/App/Assets/Tiles/IconicTileMediumLarge.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /proj.wp8-xaml/AppComponent/src/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "targetver.h" 4 | 5 | #ifndef WIN32_LEAN_AND_MEAN 6 | #define WIN32_LEAN_AND_MEAN 7 | #endif 8 | 9 | #include 10 | #include "cocos2d.h" 11 | #include "cocos-ext.h" -------------------------------------------------------------------------------- /proj.wp8-xaml/App/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Compiled Dynamic libraries 8 | *.so 9 | *.dylib 10 | *.dll 11 | 12 | # Compiled Static libraries 13 | *.lai 14 | *.la 15 | *.a 16 | *.lib 17 | 18 | # Executables 19 | *.exe 20 | *.out 21 | *.app 22 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /proj.android/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := c++_static 2 | NDK_TOOLCHAIN_VERSION=clang 3 | 4 | APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char 5 | APP_LDFLAGS := -latomic 6 | 7 | 8 | ifeq ($(NDK_DEBUG),1) 9 | APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 10 | APP_OPTIM := debug 11 | else 12 | APP_CPPFLAGS += -DNDEBUG 13 | APP_OPTIM := release 14 | endif 15 | -------------------------------------------------------------------------------- /proj.wp8-xaml/App/LocalizedStrings.cs: -------------------------------------------------------------------------------- 1 | using PhoneDirect3DXamlAppInterop.Resources; 2 | 3 | namespace PhoneDirect3DXamlAppInterop 4 | { 5 | /// 6 | /// Provides access to string resources. 7 | /// 8 | public class LocalizedStrings 9 | { 10 | private static AppResources _localizedResources = new AppResources(); 11 | 12 | public AppResources LocalizedResources { get { return _localizedResources; } } 13 | } 14 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-10 12 | 13 | android.library.reference.1=../cocos2d/cocos/platform/android/java 14 | -------------------------------------------------------------------------------- /proj.android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## ModelViewer version 0.1 ## 2 | It is for cocos2d-x after version v3.5 beta0 3 | 4 | View .c3t/.c3b Model 5 | 6 | View .pu (ParticleUniverse File Format: http://www.fxpression.com/) 7 | 8 | Source code is here, 9 | https://github.com/songchengjiang/cocos2d-x-ModelViewer 10 | 11 | USAGE: 12 | 13 | Command line 14 | WIN/MAC: 15 | cd [path of ModelViewer] 16 | ./ModelViewer MODELFILEPATH or PUFILEPATH 17 | 18 | Note: 19 | LEFT_MOUSE_BUTTON --- Rotate Camera 20 | 21 | RIGHT_MOUSE_BUTTON --- Translate Camera 22 | 23 | MIDDLE_MOUSE_BUTTON --- Scale Camera 24 | 25 | SPACE_KEYBOARD --- Reset Camera -------------------------------------------------------------------------------- /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 | LOCAL_STATIC_LIBRARIES := cocos2dx_static 20 | 21 | include $(BUILD_SHARED_LIBRARY) 22 | 23 | $(call import-module,.) 24 | -------------------------------------------------------------------------------- /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 | std::wstring cmdline(lpCmdLine); 16 | std::string path; 17 | for (auto iter : cmdline){ 18 | if (iter == '\\') 19 | iter = '/'; 20 | 21 | path.push_back(iter); 22 | } 23 | // create the application instance 24 | AppDelegate app(path); 25 | return Application::getInstance()->run(); 26 | } 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /proj.win32/ModelViewer.vcxproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(ProjectDir)..\Resources 5 | WindowsLocalDebugger 6 | D:/Develop/cocos2d-x/tests/cpp-tests/Resources/Particle3D/scripts/blackHole.pu 7 | 8 | 9 | $(ProjectDir)..\Resources 10 | WindowsLocalDebugger 11 | 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /proj.wp8-xaml/App/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /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(const std::string &filePath); 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 | private: 39 | 40 | std::string _modelFilePath; 41 | }; 42 | 43 | #endif // _APP_DELEGATE_H_ 44 | 45 | -------------------------------------------------------------------------------- /proj.win32/ModelViewer.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 | 20 | 21 | 22 | 23 | win32 24 | 25 | 26 | 27 | 28 | 29 | 30 | resource 31 | 32 | 33 | -------------------------------------------------------------------------------- /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.cocos2dx.ModelViewer 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 | -------------------------------------------------------------------------------- /proj.wp8-xaml/App/EditBox.xaml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 |