redraw 썸네일형 리스트형 [ Android ] Opengl es 2.0 다시 그리기 ByteBuffer pixelBuffer; void storePixels() { try { GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fbuf); pixelBuffer = ByteBuffer.allocateDirect(width * height * 4).order(ByteOrder.nativeOrder()); GLES20.glReadPixels(0, 0, width, height, GL20.GL_RGBA, GL20.GL_UNSIGNED_BYTE, pixelBuffer); GLES20.glBindFrameBuffer(GLES20.GL_FRAMEBUFFER, 0); gfx.checkGlError("store Pixels"); }catch (OutOfMemoryErr.. 더보기 이전 1 다음