Android OpenGL Image Processing - No SurfaceView

I want to do some background image processing using OpenGL ES 2 and shaders, but not draw on the surface (i.e. drawing the screen for framebuffers only). Although I have already done this on iOS, I am struggling with this on Android.

I think I'm close to creating an OpenGL working context, but I haven't figured out how to do this without SurfaceView.

+5
source share
1 answer

Check out this gamedev post (click to open full code). The code creates a GL context and uses an interface GLSurfaceView.Rendererto allow the renderer to write accordingly. When called getBitmap(), the renderer is called to draw a frame, which is then read and converted to a bitmap.

Please note that there is a selected question that may interest you.

+3
source

All Articles