¡@

Home 

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

android Programming Glossary: gl10.gl_unsigned_byte

Trying to draw textured triangles on device fails, but the emulator works. Why?

http://stackoverflow.com/questions/2113638/trying-to-draw-textured-triangles-on-device-fails-but-the-emulator-works-why

textures textureid Draw the vertices as triangles gl.glDrawElements GL10.GL_TRIANGLES indices.length GL10.GL_UNSIGNED_BYTE indexBuffer Pop the matrix back to where we left it gl.glPopMatrix Disable the client state before leaving gl.glDisableClientState..

Taking screenshot of Android OpenGL

http://stackoverflow.com/questions/3310990/taking-screenshot-of-android-opengl

ByteBuffer.allocateDirect size 4 buf.order ByteOrder.nativeOrder glContext.glReadPixels 0 0 width height GL10.GL_RGBA GL10.GL_UNSIGNED_BYTE buf int data new int size buf.asIntBuffer .get data buf null Bitmap bitmap Bitmap.createBitmap width height Bitmap.Config.RGB_565.. screenshotSize 4 bb.order ByteOrder.nativeOrder gl.glReadPixels 0 0 width height GL10.GL_RGBA GL10.GL_UNSIGNED_BYTE bb int pixelsBuffer new int screenshotSize bb.asIntBuffer .get pixelsBuffer bb null Bitmap bitmap Bitmap.createBitmap..

Android: How can you get framebuffer (screenshot) on rooted device?

http://stackoverflow.com/questions/4998527/android-how-can-you-get-framebuffer-screenshot-on-rooted-device

screenshotSize 4 bb.order ByteOrder.nativeOrder gl.glReadPixels 0 0 width height GL10.GL_RGBA GL10.GL_UNSIGNED_BYTE bb int pixelsBuffer new int screenshotSize bb.asIntBuffer .get pixelsBuffer bb null Bitmap bitmap Bitmap.createBitmap width..

Android Camera will not work. startPreview fails

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

GLES20.glBindTexture GL10.GL_TEXTURE_2D tex GLES20.glTexImage2D GL10.GL_TEXTURE_2D 0 GL10.GL_RGB 256 256 0 GL10.GL_RGB GL10.GL_UNSIGNED_BYTE ByteBuffer.wrap pixels GLES20.glTexParameterf GL10.GL_TEXTURE_2D GL10.GL_TEXTURE_MIN_FILTER GL10.GL_LINEAR Thank you for..

Apply custom filters to camera output

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

tex gl.glTexImage2D GL10.GL_TEXTURE_2D 0 GL10.GL_LUMINANCE this.prevX this.prevY 0 GL10.GL_LUMINANCE GL10.GL_UNSIGNED_BYTE ByteBuffer.wrap this.cameraFrame cameraFrame is the first half od byte from onPreviewFrame gl.glTexParameterf GL10.GL_TEXTURE_2D..