mirror of https://github.com/axmolengine/axmol.git
Fix for Android build issue (#2225)
* Fix Android build issue * Add copyright notice * Add required empty line
This commit is contained in:
parent
1e633a015d
commit
f03efb8cf7
|
@ -1,6 +1,7 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2015-2016 Chukong Technologies Inc.
|
||||
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
||||
Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md).
|
||||
|
||||
https://axmol.dev/
|
||||
|
||||
|
@ -49,15 +50,15 @@ public class AppActivity extends AxmolActivity{
|
|||
return;
|
||||
}
|
||||
// DO OTHER INITIALIZATION BELOW
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cocos2dxGLSurfaceView onCreateView() {
|
||||
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
|
||||
public AxmolGLSurfaceView onCreateView() {
|
||||
AxmolGLSurfaceView glSurfaceView = new AxmolGLSurfaceView(this);
|
||||
// Tests should create stencil buffer
|
||||
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
|
||||
|
||||
|
||||
return glSurfaceView;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2010-2012 cocos2d-x.org
|
||||
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
||||
Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md).
|
||||
|
||||
https://axmol.dev/
|
||||
|
||||
|
@ -27,13 +28,13 @@ package org.axmol.sample.LuaJavaBridgeTest;
|
|||
import org.axmol.lib.LuaBridge;
|
||||
|
||||
public class LuaJavaBridgeTest
|
||||
{
|
||||
{
|
||||
public static int addTwoNumbers(final int num1,final int num2){
|
||||
return num1 + num2;
|
||||
}
|
||||
|
||||
|
||||
public static void callbackLua(final String tipInfo,final int luaFunc){
|
||||
Cocos2dxLuaJavaBridge.callLuaFunctionWithString(luaFunc, "success");
|
||||
Cocos2dxLuaJavaBridge.releaseLuaFunction(luaFunc);
|
||||
LuaBridge.callLuaFunctionWithString(luaFunc, "success");
|
||||
LuaBridge.releaseLuaFunction(luaFunc);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue