Added the possibility of extending Cocos2dxGLSurfaceView and providing a initView() method

This commit is contained in:
Carlos Sessa 2011-05-04 11:18:26 -03:00
parent cf18337926
commit 9d08f9582c
2 changed files with 3 additions and 3 deletions

View File

@ -176,14 +176,14 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView {
initView();
}
private void initView() {
protected void initView() {
mRenderer = new Cocos2dxRenderer();
setFocusableInTouchMode(true);
setRenderer(mRenderer);
mainView = this;
}
public void onPause(){
public void onPause(){
queueEvent(new Runnable() {
@Override
public void run() {

View File

@ -176,7 +176,7 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView {
initView();
}
private void initView() {
protected void initView() {
mRenderer = new Cocos2dxRenderer();
setFocusableInTouchMode(true);
setRenderer(mRenderer);