How to use the SDL_CreateSoftwareRenderer?

hi,anyone

How to use the SDL_CreateSoftwareRenderer?

can you write the code?

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 pSurfaceOn Fri, Sep 5, 2014 at 7:26 PM, goxl 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