The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
How to use the SDL_CreateSoftwareRenderer?
goxl


Joined: 23 Jan 2014
Posts: 17
hi,anyone

How to use the SDL_CreateSoftwareRenderer?

can you write the code?
How to use the SDL_CreateSoftwareRenderer?
Sam Lantinga


Joined: 10 Sep 2009
Posts: 1765
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 wrote:
Quote:
hi,anyone

How to use the SDL_CreateSoftwareRenderer?

can you write the code?


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org