[SDL] pixel from SDL_Texture

Sam Lantinga slouken at libsdl.org
Wed Sep 10 09:15:53 PDT 2014


Er, SDL_RenderReadPixels()

On Wed, Sep 10, 2014 at 9:15 AM, Sam Lantinga <slouken at libsdl.org> wrote:

> There is, it's called SDL_RendererReadPixels() :)
>
> On Fri, Sep 5, 2014 at 6:02 AM, Jonathan Dearborn <grimfang4 at gmail.com>
> wrote:
>
>> Well, there *should* be some API to pull the texture data back from the
>> GPU.  With render targets, you can manipulate texture data on the GPU, so
>> it is important to be able to read the changed data later, even if it
>> causes a GPU flush, block, and data transfer as necessary costs.
>>
>> Jonny D
>>
>> _______________________________________________
>> SDL mailing list
>> SDL at lists.libsdl.org
>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140910/bed81966/attachment-0002.htm>


More information about the SDL mailing list