[SDL] How to use the SDL_CreateSoftwareRenderer?

Sam Lantinga slouken at libsdl.org
Wed Sep 10 09:14:37 PDT 2014


Here's a quick example:

        SDL_Surface *pSurface = SDL_CreateRGBSurface( 0, nWidth, nHeight,
32, 0, 0, 0, 0 );
        m_pRenderer = SDL_CreateSoftwareRenderer( pSurface );

... do any rendering using m_pRenderer, and it will be visible on the
surface pSurface

On Fri, Sep 5, 2014 at 7:26 PM, goxl <twtfcu3 at hotmail.com> wrote:

>  hi,anyone
>
> How to use the SDL_CreateSoftwareRenderer?
>
> can you write the code?
>
> _______________________________________________
> 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/2947eb3c/attachment-0002.htm>


More information about the SDL mailing list