mirror of https://github.com/axmolengine/axmol.git
Added the possibility of extending Cocos2dxGLSurfaceView and providing a initView() method
This commit is contained in:
parent
cf18337926
commit
9d08f9582c
|
@ -176,7 +176,7 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView {
|
|||
initView();
|
||||
}
|
||||
|
||||
private void initView() {
|
||||
protected void initView() {
|
||||
mRenderer = new Cocos2dxRenderer();
|
||||
setFocusableInTouchMode(true);
|
||||
setRenderer(mRenderer);
|
||||
|
|
|
@ -176,7 +176,7 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView {
|
|||
initView();
|
||||
}
|
||||
|
||||
private void initView() {
|
||||
protected void initView() {
|
||||
mRenderer = new Cocos2dxRenderer();
|
||||
setFocusableInTouchMode(true);
|
||||
setRenderer(mRenderer);
|
||||
|
|
Loading…
Reference in New Issue