Re: reading pixels from a TARGET texture
Sanette <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
thanks, I will try; this brings some questions: * do you means that the current GL_RenderReadPixels does not work ? * the doc says "WARNING: This is a very slow operation, and should not be used frequently." Is this still the case with your version ? * Ideally I'd rather use an "official" method. Will these changes be included in the official SDL2 ? S. Le 05/08/2016 à 12:25, ancientcc a écrit : > As far as I know, you need to change RenderReadPixels method of > SDL_Renderer. Below is my modified version. > ---------------------------------------------------------------------------- > ------ > OpenGL(function GL_RenderReadPixels): > https://github.com/freeors/SDL/blob/master/SDL2-2.0.4/src/render/opengl/SDL_ > render_gl.c > OpenGL ES2(function GLES2_RenderReadPixels): > https://github.com/freeors/SDL/blob/master/SDL2-2.0.4/src/render/opengles2/S > DL_render_gles2.c > > _______________________________________________ > SDL mailing list > [email protected] > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org