¡@

Home 

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

android Programming Glossary: glsurfaceview

Why my opengl output differs for various devices?

http://stackoverflow.com/questions/17187032/why-my-opengl-output-differs-for-various-devices

an android app for drawing of lines circles.. by using GLSurfaceView in OpenGLES 2.0 like an Auto cad app. The app works well with.. Note II.i.e.I want to draw more than one image in the GLSurfaceView at a time. Note Both the Android OS in Google Nexus 7 and Samsung..

Prevent onPause from trashing OpenGL Context

http://stackoverflow.com/questions/2112768/prevent-onpause-from-trashing-opengl-context

I'm writing an Android application that uses OpenGL ES GLSurfaceView and GLSurfaceView.Renderer . The problem is that when the user.. Android application that uses OpenGL ES GLSurfaceView and GLSurfaceView.Renderer . The problem is that when the user switches applications.. switches applications and then switches back to my app the GLSurfaceView destroys and recreates the GL context. This is what it's supposed..

Emulator's camera built-in app buggy in Froyo / 2.2?

http://stackoverflow.com/questions/2948809/emulators-camera-built-in-app-buggy-in-froyo-2-2

09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView BaseConfigChooser.chooseConfig GLSurfaceView.java 760 06 01.. BaseConfigChooser.chooseConfig GLSurfaceView.java 760 06 01 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView.. 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView EglHelper.start GLSurfaceView.java 916 06 01 09 57 15.733 ERROR..

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..

Android: GLES20: Called unimplemented OpenGL ES API

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

reason was because I got an IllegalArgumentException in GLSurfaceView.BaseConfigChooser.chooseconfig so i replaced mGLSurfaceView.setEGLContextClientVersion.. so i replaced mGLSurfaceView.setEGLContextClientVersion 2 The new OnCreateMethod protected.. savedInstanceState super.onCreate savedInstanceState mGLSurfaceView new GLSurfaceView this mGLSurfaceView.setEGLConfigChooser new..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

public class NightCamActivity extends Activity private GLSurfaceView mGLView CameraSurfaceView surface_view @Override public void.. super.onCreate savedInstanceState Create a GLSurfaceView instance and set it as the ContentView for this Activity Debug.out.. MySurfaceView class class MySurfaceView extends GLSurfaceView public MySurfaceView NightCamActivity context super context..

Apply custom filters to camera output

http://stackoverflow.com/questions/8371055/apply-custom-filters-to-camera-output

The other option is to use openGL ES. You need GLSurfaceView where you bind camera frame as a texture in GLSurfaceView implement.. GLSurfaceView where you bind camera frame as a texture in GLSurfaceView implement Camera.previewCallback so you use onPreviewFrame same..

Fill remaining space with fixed aspect ratio surfaceview

http://stackoverflow.com/questions/10510371/fill-remaining-space-with-fixed-aspect-ratio-surfaceview

I would like to place a custom view which inherits from glSurfaceView with the restriction that it must have a fixed aspect ratio..

Modifying camera output using SurfaceTexture and OpenGL

http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl

private Camera mCamera private MyGLSurfaceView glSurfaceView private SurfaceTexture surface MyGL20Renderer renderer @Override.. savedInstanceState super.onCreate savedInstanceState glSurfaceView new MyGLSurfaceView this renderer glSurfaceView.getRenderer.. glSurfaceView new MyGLSurfaceView this renderer glSurfaceView.getRenderer setContentView glSurfaceView public void startCamera..

Is Opengl Development GPU Dependant?

http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant

in this im getting the coordinates of my touch on the glSurfaceView to draw the line and passing those points to the renderer class..

How to overlay GLSurfaceView over a MapView in Android?

http://stackoverflow.com/questions/2825539/how-to-overlay-glsurfaceview-over-a-mapview-in-android

the GLSurfaceView and set its EGLConfigChooser like this glSurfaceView.setEGLConfigChooser 8 8 8 8 16 0 then set the format of the.. 8 8 16 0 then set the format of the holder to translucent glSurfaceView.getHolder .setFormat PixelFormat.TRANSLUCENT and add the GLSurfaceView.. GLSurfaceView and the MapView to the Layout setContentView glSurfaceView addContentView mapView new ViewGroup.LayoutParams ViewGroup.LayoutParams.FILL_PARENT..

Detecting a long press with Android

http://stackoverflow.com/questions/7919865/detecting-a-long-press-with-android

MotionEvent event to detect when the user presses my glSurfaceView is there a way to detect when a long click is made. I'm guessing..

Why my opengl output differs for various devices?

http://stackoverflow.com/questions/17187032/why-my-opengl-output-differs-for-various-devices

my opengl output differs for various devices I have created an android app for drawing of lines circles.. by using GLSurfaceView in OpenGLES 2.0 like an Auto cad app. The app works well with Google Nexus 7 in the sense that if we draw a line then a.. the same output which I get in Google Nexus 7 in Samsung Galaxy Note II.i.e.I want to draw more than one image in the GLSurfaceView at a time. Note Both the Android OS in Google Nexus 7 and Samsung Galaxy Note II are Jelly Bean 4.2. But both devices are..

Prevent onPause from trashing OpenGL Context

http://stackoverflow.com/questions/2112768/prevent-onpause-from-trashing-opengl-context

onPause from trashing OpenGL Context I'm writing an Android application that uses OpenGL ES GLSurfaceView and GLSurfaceView.Renderer . The problem is that when the user switches applications and then switches back to my app the.. onPause from trashing OpenGL Context I'm writing an Android application that uses OpenGL ES GLSurfaceView and GLSurfaceView.Renderer . The problem is that when the user switches applications and then switches back to my app the GLSurfaceView destroys.. GLSurfaceView.Renderer . The problem is that when the user switches applications and then switches back to my app the GLSurfaceView destroys and recreates the GL context. This is what it's supposed to do according to the documentation but is there a way..

Emulator's camera built-in app buggy in Froyo / 2.2?

http://stackoverflow.com/questions/2948809/emulators-camera-built-in-app-buggy-in-froyo-2-2

No configs match configSpec 06 01 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView BaseConfigChooser.chooseConfig GLSurfaceView.java 760 06 01 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView.. configSpec 06 01 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView BaseConfigChooser.chooseConfig GLSurfaceView.java 760 06 01 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView EglHelper.start GLSurfaceView.java.. BaseConfigChooser.chooseConfig GLSurfaceView.java 760 06 01 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView EglHelper.start GLSurfaceView.java 916 06 01 09 57 15.733 ERROR AndroidRuntime 5212 at android.opengl.GLSurfaceView GLThread.guardedRun..

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..

Android: GLES20: Called unimplemented OpenGL ES API

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

by developer.android.com. I modified the sample though. The reason was because I got an IllegalArgumentException in GLSurfaceView.BaseConfigChooser.chooseconfig so i replaced mGLSurfaceView.setEGLContextClientVersion 2 The new OnCreateMethod protected.. 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..

Android Camera will not work. startPreview fails

http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails

Native Method Here is the Activity class public class NightCamActivity extends Activity private GLSurfaceView mGLView CameraSurfaceView surface_view @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState.. surface_view @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState Create a GLSurfaceView instance and set it as the ContentView for this Activity Debug.out Welcome surface_view new CameraSurfaceView this mGLView.. onPause this is a good place to re allocate them. mGLView.onResume MySurfaceView class class MySurfaceView extends GLSurfaceView public MySurfaceView NightCamActivity context super context Create an OpenGL ES 2.0 context. Debug.out Mysurfaceview welcome..

Apply custom filters to camera output

http://stackoverflow.com/questions/8371055/apply-custom-filters-to-camera-output

to RGB with native code and android NDK but that's quite complicated. The other option is to use openGL ES. You need GLSurfaceView where you bind camera frame as a texture in GLSurfaceView implement Camera.previewCallback so you use onPreviewFrame same.. complicated. The other option is to use openGL ES. You need GLSurfaceView where you bind camera frame as a texture in GLSurfaceView implement Camera.previewCallback so you use onPreviewFrame same way as in regular surface . But there is the same problem..

Fill remaining space with fixed aspect ratio surfaceview

http://stackoverflow.com/questions/10510371/fill-remaining-space-with-fixed-aspect-ratio-surfaceview

number of dp for height Filling the remaining vertical space I would like to place a custom view which inherits from glSurfaceView with the restriction that it must have a fixed aspect ratio which will be programatically set but known before the activity..

Modifying camera output using SurfaceTexture and OpenGL

http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl

extends Activity implements SurfaceTexture.OnFrameAvailableListener private Camera mCamera private MyGLSurfaceView glSurfaceView private SurfaceTexture surface MyGL20Renderer renderer @Override public void onCreate Bundle savedInstanceState super.onCreate.. MyGL20Renderer renderer @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState glSurfaceView new MyGLSurfaceView this renderer glSurfaceView.getRenderer setContentView glSurfaceView public void startCamera int texture.. onCreate Bundle savedInstanceState super.onCreate savedInstanceState glSurfaceView new MyGLSurfaceView this renderer glSurfaceView.getRenderer setContentView glSurfaceView public void startCamera int texture surface new SurfaceTexture texture surface.setOnFrameAvailableListener..

Is Opengl Development GPU Dependant?

http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant

GLSurfaceView.RENDERMODE_CONTINUOUSLY MyGLSurfaceView.java in this im getting the coordinates of my touch on the glSurfaceView to draw the line and passing those points to the renderer class public MyGLsurfaceview Context context super context Log.i..

How to overlay GLSurfaceView over a MapView in Android?

http://stackoverflow.com/questions/2825539/how-to-overlay-glsurfaceview-over-a-mapview-in-android

opengl es share improve this question You need to create the GLSurfaceView and set its EGLConfigChooser like this glSurfaceView.setEGLConfigChooser 8 8 8 8 16 0 then set the format of the holder to translucent glSurfaceView.getHolder .setFormat PixelFormat.TRANSLUCENT.. like this glSurfaceView.setEGLConfigChooser 8 8 8 8 16 0 then set the format of the holder to translucent glSurfaceView.getHolder .setFormat PixelFormat.TRANSLUCENT and add the GLSurfaceView and the MapView to the Layout setContentView glSurfaceView.. .setFormat PixelFormat.TRANSLUCENT and add the GLSurfaceView and the MapView to the Layout setContentView glSurfaceView addContentView mapView new ViewGroup.LayoutParams ViewGroup.LayoutParams.FILL_PARENT ViewGroup.LayoutParams.FILL_PARENT..

Detecting a long press with Android

http://stackoverflow.com/questions/7919865/detecting-a-long-press-with-android

a long press with Android I am currently using onTouchEvent MotionEvent event to detect when the user presses my glSurfaceView is there a way to detect when a long click is made. I'm guessing if I can't find much in the dev docs then it will be some..