package org.cocos2dx.cpp_tests;
import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
public class AppActivity extends Cocos2dxActivity {
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
// TestCpp should create stencil buffer
glSurfaceView.setEGLConfigChooser(5,6,5,16,8);
return glSurfaceView;
}
==============
AppActivity在cocos2dx3.2版本指的是:cocos2d-x-3.2 ▸ cocos2d-x-3.2 ▸ cocos ▸ platform ▸ android ▸ java ▸ src ▸ org ▸ cocos2dx ▸ lib 下的Cocos2dxActivity.java
原文链接:/cocos2dx/345069.html