¡@

Home 

2014/10/16 ¤W¤È 08:19:18

android Programming Glossary: mglsurfaceview

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

SurfaceHolder mSurfaceHolder private TouchSurfaceView mGLSurfaceView ShutterCallback shutter new ShutterCallback @Override public.. WindowManager.LayoutParams.FLAG_FULLSCREEN mGLSurfaceView new TouchSurfaceView this addContentView mGLSurfaceView new.. mGLSurfaceView new TouchSurfaceView this addContentView mGLSurfaceView new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT..

Fighting with SurfaceView, Camera and OpenGL

http://stackoverflow.com/questions/5648221/fighting-with-surfaceview-camera-and-opengl

If we try to setContentView mCameraPreview addContentView mGLSurfaceView new LayoutParams LayoutParams.WRAP_CONTENT LayoutParams.WRAP_CONTENT.. one is still shown . If instead we try to setContentView mGLSurfaceView addContentView mCameraPreview new LayoutParams LayoutParams.WRAP_CONTENT.. initOpenGL initCamView ... with private void initOpenGL mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser 8..

Android: GLES20: Called unimplemented OpenGL ES API

http://stackoverflow.com/questions/5926316/android-gles20-called-unimplemented-opengl-es-api

GLSurfaceView.BaseConfigChooser.chooseconfig so i replaced mGLSurfaceView.setEGLContextClientVersion 2 The new OnCreateMethod protected.. savedInstanceState super.onCreate savedInstanceState mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new.. savedInstanceState mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

Callback private Camera camera private SurfaceView mSurfaceView SurfaceHolder mSurfaceHolder private TouchSurfaceView mGLSurfaceView ShutterCallback shutter new ShutterCallback @Override public void onShutter TODO Auto generated method stub No action.. getWindow .setFlags WindowManager.LayoutParams.FLAG_FULLSCREEN WindowManager.LayoutParams.FLAG_FULLSCREEN mGLSurfaceView new TouchSurfaceView this addContentView mGLSurfaceView new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT.. WindowManager.LayoutParams.FLAG_FULLSCREEN mGLSurfaceView new TouchSurfaceView this addContentView mGLSurfaceView new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT mSurfaceView new SurfaceView this addContentView mSurfaceView..

Fighting with SurfaceView, Camera and OpenGL

http://stackoverflow.com/questions/5648221/fighting-with-surfaceview-camera-and-opengl

SurfaceViews apparently don't get on well with each other. If we try to setContentView mCameraPreview addContentView mGLSurfaceView new LayoutParams LayoutParams.WRAP_CONTENT LayoutParams.WRAP_CONTENT addContentView mInfoView new LayoutParams LayoutParams.WRAP_CONTENT.. that the GLSurfaceView just disappears not the InfoView that one is still shown . If instead we try to setContentView mGLSurfaceView addContentView mCameraPreview new LayoutParams LayoutParams.WRAP_CONTENT LayoutParams.WRAP_CONTENT addContentView mInfoView.. ... if savedInstanceState null initCamView initOpenGL else initOpenGL initCamView ... with private void initOpenGL mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser 8 8 8 8 16 0 mGLSurfaceView.getHolder .setFormat PixelFormat.TRANSLUCENT..

Android: GLES20: Called unimplemented OpenGL ES API

http://stackoverflow.com/questions/5926316/android-gles20-called-unimplemented-opengl-es-api

The reason was because I got an IllegalArgumentException in GLSurfaceView.BaseConfigChooser.chooseconfig so i replaced mGLSurfaceView.setEGLContextClientVersion 2 The new OnCreateMethod protected void onCreate Bundle savedInstanceState super.onCreate savedInstanceState.. 2 The new OnCreateMethod protected void onCreate Bundle savedInstanceState super.onCreate savedInstanceState mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig chooseConfig.. void onCreate Bundle savedInstanceState super.onCreate savedInstanceState mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new EGLConfigChooser @Override public EGLConfig chooseConfig EGL10 egl EGLDisplay display EGLConfig..