feature : render-gl support using frame buffer object to achieve off-screen render
Up to now, render-gl
depend GBM
native window system to achieve off-screen render, using default framebuffer pBuffer.
Using this method, it forces using GBM
when off-screen render.
According to Framebuffers and Framebuffer Objects (Chapter 9)
in es_spec_3.2
, we can create a frame buffer and a texture, attching the texture to the frame buffer. And then render to texture and using ReadPixels
to get the render data.
I tried and succeeded.
Edited by haorui wang