¡@

Home 

2014/10/16 ¤W¤È 08:11:03

android Programming Glossary: camera_texture

Android Camera will not work. startPreview fails

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

int gvSamplerHandle private static Context context int camera_texture public void onSurfaceCreated GL10 unused EGLConfig config initShapes.. GLES20.glPixelStorei GLES20.GL_UNPACK_ALIGNMENT 1 camera_texture null private void initShapes float triangleCoords X Y Z 1.0f.. GLES20.GL_COLOR_BUFFER_BIT GLES20.GL_DEPTH_BUFFER_BIT if camera_texture null return Add program to OpenGL environment GLES20.glUseProgram..

Android Camera will not work. startPreview fails

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

int maPositionHandle 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.. gvSamplerHandle GLES20.glGetAttribLocation mProgram s_texture GLES20.glPixelStorei GLES20.GL_UNPACK_ALIGNMENT 1 camera_texture null private void initShapes float triangleCoords X Y Z 1.0f 1.0f 0.0f 1.0f 1.0f 0.0f 1.0f 1.0f 0.0f 1.0f 1.0f 0.0f float.. shader public void onDrawFrame GL10 unused GLES20.glClear GLES20.GL_COLOR_BUFFER_BIT GLES20.GL_DEPTH_BUFFER_BIT if camera_texture null return Add program to OpenGL environment GLES20.glUseProgram mProgram Prepare the triangle data GLES20.glVertexAttribPointer..