comparison include/SDL_video.h @ 3091:32efcc94b3da

Fixed return value for SDL_CreateRenderer()
author Sam Lantinga <slouken@libsdl.org>
date Sun, 15 Mar 2009 15:50:18 +0000
parents 089a77aebb7d
children 7dc982143c06
comparison
equal deleted inserted replaced
3090:37f9304df6a9 3091:32efcc94b3da
812 * 812 *
813 * \param windowID The window used for rendering 813 * \param windowID The window used for rendering
814 * \param index The index of the rendering driver to initialize, or -1 to initialize the first one supporting the requested flags. 814 * \param index The index of the rendering driver to initialize, or -1 to initialize the first one supporting the requested flags.
815 * \param flags SDL_RendererFlags 815 * \param flags SDL_RendererFlags
816 * 816 *
817 * \return 0 on success, -1 if the flags were not supported, or -2 if 817 * \return 0 on success, -1 if there was an error creating the renderer.
818 * there isn't enough memory to support the requested flags
819 * 818 *
820 * \sa SDL_SelectRenderer() 819 * \sa SDL_SelectRenderer()
821 * \sa SDL_GetRendererInfo() 820 * \sa SDL_GetRendererInfo()
822 * \sa SDL_DestroyRenderer() 821 * \sa SDL_DestroyRenderer()
823 */ 822 */