Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGl render direcly to bitmap (without any view)

I need to apply some pixel shaders to a bitmap (using OpenGL) and send result to server. Rendering is supposed to be made in background so I can't create GLSurfaceView for this purpose. So my question is: is it possible to make OpenGL rendering on Android without using GLSurfaceView? Like rendering directly to bitmap, or canvas or some sort of buffer/array? Or may by it is possible to use some kind of dummy GLSurfaceView?

like image 519
Dmitry Ryadnenko Avatar asked Mar 21 '12 11:03

Dmitry Ryadnenko


1 Answers

This SO post contains a link to an anddev post. A bit downwards, somebody created a PixelBuffer class that reuses the GLSurfaceView.Renderer interface, but apart from that, only EGL.

like image 113
Stefan Hanke Avatar answered Sep 22 '22 04:09

Stefan Hanke