COCOS2DX Implementing Masks

Source: Internet
Author: User

Reference post: http://blog.csdn.net/myarrow/article/details/19913653

Reference post: http://blog.csdn.net/song_hui_xiang/article/details/22809647

Highlight the wrong place in the Android section:

    1. Public Cocos2dxglsurfaceview (Final context context) {
    2. Super (context);
    3. This.seteglconfigchooser (5, 6, 5, 0, 16, 8); //Add this sentence
    4. This.initview ();
    5. }

If you set some models according to the location in the blog post will not start, direct crash.

Should be placed in:

    1. Public abstract class Cocos2dxactivity extends Activity implements Cocos2dxhelperlistener {

    2. Public Cocos2dxglsurfaceview Oncreateview () {
    3. Cocos2dxglsurfaceview Glsurfaceview = new Cocos2dxglsurfaceview (this);
    4. Glsurfaceview.seteglconfigchooser (5, 6, 5, 0, +, 8);
    5. return glsurfaceview;
    6. }      
    7. }

COCOS2DX Implementation Matte

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.