You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
GLSurfaceView: call SurfaceHolderCallback.surfaceCreated in case the app expects that; compensate for mismatch between touch input and the rendering area
This commit is contained in:
@@ -15,13 +15,20 @@ import android.view.View;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
|
||||
public class GLSurfaceView extends View { // TODO: have this extend SurfaceView once that one is implemented?
|
||||
import android.view.SurfaceHolder;
|
||||
|
||||
public class GLSurfaceView extends View implements SurfaceHolder.Callback { // TODO: have this extend SurfaceView once that one is implemented?
|
||||
EGLContextFactory context_factory = new default_ContextFactory();
|
||||
EGLConfigChooser config_chooser = new boolean_ConfigChooser(true);
|
||||
EGL10 java_egl_wrapper;
|
||||
GL10 java_gl_wrapper;
|
||||
int opengl_version = 1;
|
||||
|
||||
// from SurfaceHolder.Callback
|
||||
public void surfaceCreated(SurfaceHolder surfaceHolder) {}
|
||||
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {}
|
||||
public void surfaceDestroyed(SurfaceHolder holder) {}
|
||||
|
||||
public GLSurfaceView(AttributeSet attrs) {
|
||||
super(attrs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user