Mercurial > sdl-ios-xcode
diff include/SDL_render.h @ 5169:4d39eeaad00b
Added a way to get a framebuffer interface for a window, and also a way to create a software renderer for an arbitrary surface.
The software renderer has been re-routed to use the framebuffer interface, which makes it possible to have software rendering available even on simple ports.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 03 Feb 2011 15:49:37 -0800 |
parents | 97423d858a1a |
children | 16d5e8e90e01 |
line wrap: on
line diff
--- a/include/SDL_render.h Thu Feb 03 11:16:57 2011 -0800 +++ b/include/SDL_render.h Thu Feb 03 15:49:37 2011 -0800 @@ -154,6 +154,7 @@ * * \return A valid rendering context or NULL if there was an error. * + * \sa SDL_CreateSoftwareRenderer() * \sa SDL_GetRendererInfo() * \sa SDL_DestroyRenderer() */ @@ -161,6 +162,18 @@ int index, Uint32 flags); /** + * \brief Create a 2D software rendering context for a surface. + * + * \param surface The surface where rendering is done. + * + * \return A valid rendering context or NULL if there was an error. + * + * \sa SDL_CreateRenderer() + * \sa SDL_DestroyRenderer() + */ +extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface * surface); + +/** * \brief Get information about a rendering context. */ extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,