COCOS2DX Creating a Win32 Project general steps

Source: Internet
Author: User

1. Import a new project step-by:
Solution: Add Existing projects, add-on, right-click
Add Dependent Project Libcocostudio
D:\work\CannonDefender\cocos2d\cocos\editor-support\cocostudio\proj.win32
Add Dependent Project Libextensions
D:\work\CannonDefender\cocos2d\extensions\proj.win32
Add Dependent Project Libgui
D:\work\CannonDefender\cocos2d\cocos\ui\proj.win32

2. Project Right-select reference add Required reference

3. Solution, add Project dependencies, select New dependencies

4. Select a new dependency by adding a new reference, right-click on a project

5. Add two files to the vs2012 installation file E:\vs2012\VC\include jni.h jni_md.h

Click to download Jni.zip

6. Configuration Properties---project Properties--->c/c++-> additional include directory->$ (engineroot) cocos\audio\include;$ (engineroot) external;$ ( Engineroot) external\chipmunk\include\chipmunk;$ (engineroot) extensions;.. \classes, ...; $ (engineroot) cocos\editor-support;$ (engineroot);% ( Additionalincludedirectories)

Public Cocos2dxglsurfaceview Oncreateview () {
Cocos2dxglsurfaceview Glsurfaceview = new Cocos2dxglsurfaceview (this);
Glsurfaceview.seteglconfigchooser (5, 6, 5, 0, 16, 8);
return glsurfaceview;
}

COCOS2DX Creating a Win32 Project general steps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.