android Programming Glossary: onsurfacecreated
Android getOrientation() method returns bad results http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results indices _indexBuffer.position 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glEnable GL10.GL_CULL_FACE enable..
Modifying camera output using SurfaceTexture and OpenGL http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl MainActivity _delegate delegate _delegate public void onSurfaceCreated GL10 unused EGLConfig config mDirectVideo new DirectVideo texture..
Is Opengl Development GPU Dependant? http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant GL10 gl line.draw dx dy ux uy @Override public void onSurfaceCreated GL10 gl EGLConfig config Log.i JO onSurfaceCreated Set the background.. void onSurfaceCreated GL10 gl EGLConfig config Log.i JO onSurfaceCreated Set the background frame color GLES20.glClearColor 0.0f 0.0f..
Android OpenGL ES Transparent Background http://stackoverflow.com/questions/2034822/android-opengl-es-transparent-background get this to work. On my GLSurfaceView.Renderer public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint..
Android Camera without Preview http://stackoverflow.com/questions/2386025/android-camera-without-preview and focus. I've created a surfaceview and listener but the onSurfaceCreated event never gets fired. I guess the reason is the surface is..
How to use onSensorChanged sensor data in combination with OpenGL http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl gl.glLoadIdentity gl.glFrustumf r r 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glClearColor..
Overlay images onto Camera preview SurfaceView http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview gl.glFrustumf ratio ratio 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint..
Using OpenGL to replace Canvas - Android http://stackoverflow.com/questions/3597323/using-opengl-to-replace-canvas-android gl.glEnable GL10.GL_TEXTURE_2D @Override public void onSurfaceCreated GL10 gl EGLConfig config gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT.. GLU.gluOrtho2D gl 0 mViewWidth mViewHeight 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.5f 0.5f 0.5f 1 gl.glHint..
How to get rid of Jagged edges in Android OpenGL ES? http://stackoverflow.com/questions/4934367/how-to-get-rid-of-jagged-edges-in-android-opengl-es Android OpenGL ES I have the following code public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.0f 0.0f 0.0f 0.5f..
Android: GLES20: Called unimplemented OpenGL ES API http://stackoverflow.com/questions/5926316/android-gles20-called-unimplemented-opengl-es-api I called gl.glGetString GLES20.GL_VERSION in public void onSurfaceCreated GL10 gl EGLConfig config . glGetString returned OpenGL ES CM..
Problem drawing a sphere in OPENGL ES http://stackoverflow.com/questions/6072308/problem-drawing-a-sphere-in-opengl-es new RateCounter TAG fpsCalculator.start public void onSurfaceCreated GL10 gl EGLConfig config initialize all the things required..
Threading textures load process for android opengl game http://stackoverflow.com/questions/6318311/threading-textures-load-process-for-android-opengl-game glTexImage2D is only available in GLSurfaceView.Renderer's onSurfaceCreated and OnDrawFrame methods. I can't unpack all my textures and.. methods. I can't unpack all my textures and then in onSurfaceCreated ... load them in opnegl because they probably won't fit in limited..
Show my Layout while SurfaceView is loading Camera Preview http://stackoverflow.com/questions/7119164/show-my-layout-while-surfaceview-is-loading-camera-preview is inflated as well. That again means that the SurfaceView onSurfaceCreated Methods is called which triggers opening the Camera etc. So..
How to do Multisampling in Android OpenGL ES? [duplicate] http://stackoverflow.com/questions/7379710/how-to-do-multisampling-in-android-opengl-es doesn't work no matter what I did. My code is public void onSurfaceCreated GL10 gl EGLConfig config g10 gl gl.glClearColor 0f 0 0.0f 1.0f..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails static Context context int camera_texture public void onSurfaceCreated GL10 unused EGLConfig config initShapes GLES20.glClearColor..
Android OpenGL Texture Compression http://stackoverflow.com/questions/9148795/android-opengl-texture-compression in the device if you're not using ETC1 public void onSurfaceCreated GL10 gl EGLConfig config String s gl.glGetString GL10.GL_EXTENSIONS..
Android getOrientation() method returns bad results http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results 0 short indices 0 1 2 _indexBuffer InitShortBuffer indices _indexBuffer.position 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glEnable GL10.GL_CULL_FACE enable the differentiation of which side may be visible gl.glShadeModel..
Modifying camera output using SurfaceTexture and OpenGL http://stackoverflow.com/questions/12519235/modifying-camera-output-using-surfacetexture-and-opengl surface MainActivity delegate public MyGL20Renderer MainActivity _delegate delegate _delegate public void onSurfaceCreated GL10 unused EGLConfig config mDirectVideo new DirectVideo texture texture createTexture GLES20.glClearColor 0.5f 0.5f 0.5f..
Is Opengl Development GPU Dependant? http://stackoverflow.com/questions/17229066/is-opengl-development-gpu-dependant mainActivity myGlsurface myGlsurfaceView public void onDrawFrame GL10 gl line.draw dx dy ux uy @Override public void onSurfaceCreated GL10 gl EGLConfig config Log.i JO onSurfaceCreated Set the background frame color GLES20.glClearColor 0.0f 0.0f 0.0f 1.0f.. onDrawFrame GL10 gl line.draw dx dy ux uy @Override public void onSurfaceCreated GL10 gl EGLConfig config Log.i JO onSurfaceCreated Set the background frame color GLES20.glClearColor 0.0f 0.0f 0.0f 1.0f Create the GLText glText new GLText main.getAssets..
Android OpenGL ES Transparent Background http://stackoverflow.com/questions/2034822/android-opengl-es-transparent-background this question Just some simple changes that I did to get this to work. On my GLSurfaceView.Renderer public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST gl.glClearColor..
Android Camera without Preview http://stackoverflow.com/questions/2386025/android-camera-without-preview black since android camera needs preview to setup exposure and focus. I've created a surfaceview and listener but the onSurfaceCreated event never gets fired. I guess the reason is the surface is not being created visually. I've also seen some examples of..
How to use onSensorChanged sensor data in combination with OpenGL http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl float r float width height gl.glMatrixMode GL10.GL_PROJECTION gl.glLoadIdentity gl.glFrustumf r r 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glClearColor 1 1 1 1 gl.glEnable GL10.GL_CULL_FACE gl.glShadeModel..
Overlay images onto Camera preview SurfaceView http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview width height gl.glMatrixMode GL10.GL_PROJECTION gl.glLoadIdentity gl.glFrustumf ratio ratio 1 1 1 10 public void onSurfaceCreated GL10 gl EGLConfig config gl.glDisable GL10.GL_DITHER gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST if..
Using OpenGL to replace Canvas - Android http://stackoverflow.com/questions/3597323/using-opengl-to-replace-canvas-android gl.glColor4x 0x10000 0x10000 0x10000 0x10000 gl.glEnable GL10.GL_TEXTURE_2D @Override public void onSurfaceCreated GL10 gl EGLConfig config gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST gl.glClearColor 0.5f 0.5f 0.5f 1.. gl.glViewport 0 0 mViewWidth mViewHeight gl.glLoadIdentity GLU.gluOrtho2D gl 0 mViewWidth mViewHeight 0 public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.5f 0.5f 0.5f 1 gl.glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT GL10.GL_FASTEST..
How to get rid of Jagged edges in Android OpenGL ES? http://stackoverflow.com/questions/4934367/how-to-get-rid-of-jagged-edges-in-android-opengl-es to get rid of Jagged edges in Android OpenGL ES I have the following code public void onSurfaceCreated GL10 gl EGLConfig config gl.glClearColor 0.0f 0.0f 0.0f 0.5f gl.glShadeModel GL10.GL_SMOOTH gl.glClearDepthf 1.0f gl.glEnable..
Android: GLES20: Called unimplemented OpenGL ES API http://stackoverflow.com/questions/5926316/android-gles20-called-unimplemented-opengl-es-api . I thought maybe to check the version so I called gl.glGetString GLES20.GL_VERSION in public void onSurfaceCreated GL10 gl EGLConfig config . glGetString returned OpenGL ES CM 1.0 . OnSurfaceCreated is called after choosing the config..
Problem drawing a sphere in OPENGL ES http://stackoverflow.com/questions/6072308/problem-drawing-a-sphere-in-opengl-es will help us in calculating the frames per second fpsCalculator new RateCounter TAG fpsCalculator.start public void onSurfaceCreated GL10 gl EGLConfig config initialize all the things required for openGL configurations gl.glClearColor 0.0f 0.0f 0.0f 0.0f..
Threading textures load process for android opengl game http://stackoverflow.com/questions/6318311/threading-textures-load-process-for-android-opengl-game quite sure how to do this. OpenGL handler needed to execute glTexImage2D is only available in GLSurfaceView.Renderer's onSurfaceCreated and OnDrawFrame methods. I can't unpack all my textures and then in onSurfaceCreated ... load them in opnegl because they.. in GLSurfaceView.Renderer's onSurfaceCreated and OnDrawFrame methods. I can't unpack all my textures and then in onSurfaceCreated ... load them in opnegl because they probably won't fit in limited vm's memory 20 40MB That means I have to unpack and load..
Show my Layout while SurfaceView is loading Camera Preview http://stackoverflow.com/questions/7119164/show-my-layout-while-surfaceview-is-loading-camera-preview the XML file is inflated. That means the SurfaceView is inflated as well. That again means that the SurfaceView onSurfaceCreated Methods is called which triggers opening the Camera etc. So this whole process takes a while hence your previous Activity..
How to do Multisampling in Android OpenGL ES? [duplicate] http://stackoverflow.com/questions/7379710/how-to-do-multisampling-in-android-opengl-es OpenGL ES I want to do Antialiasing in my appliction.But it doesn't work no matter what I did. My code is public void onSurfaceCreated GL10 gl EGLConfig config g10 gl gl.glClearColor 0f 0 0.0f 1.0f gl.glEnableClientState GL10.GL_VERTEX_ARRAY gl.glEnableClientState..
Android Camera will not work. startPreview fails http://stackoverflow.com/questions/7942378/android-camera-will-not-work-startpreview-fails private int gvTexCoordHandle private int gvSamplerHandle private static Context context int camera_texture public void onSurfaceCreated GL10 unused EGLConfig config initShapes GLES20.glClearColor 0.0f 1.0f 0.2f 1.0f Debug.out Hello init. Shaders int vertexShader..
Android OpenGL Texture Compression http://stackoverflow.com/questions/9148795/android-opengl-texture-compression to your project assets. Determine which extensions are available in the device if you're not using ETC1 public void onSurfaceCreated GL10 gl EGLConfig config String s gl.glGetString GL10.GL_EXTENSIONS if s.contains GL_IMG_texture_compression_pvrtc Use..
|