comparison include/SDL_video.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 2b1989f59674
children 3a8a452b49f0
comparison
equal deleted inserted replaced
5168:2b1989f59674 5169:4d39eeaad00b
606 */ 606 */
607 extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window, 607 extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window,
608 int fullscreen); 608 int fullscreen);
609 609
610 /** 610 /**
611 * \brief Get an SDL surface associated with the window.
612 *
613 * \return A surface in the optimal format for the window, or NULL on error.
614 *
615 * \note You may not combine this with 3D or the rendering API on this window.
616 *
617 * \sa SDL_UpdateWindowSurface()
618 * \sa SDL_UpdateWindowSurfaceRects()
619 */
620 extern DECLSPEC SDL_Surface * SDLCALL SDL_GetWindowSurface(SDL_Window * window);
621
622 /**
623 * \brief Copy the window surface to the screen.
624 *
625 * \return 0 on success, or -1 on error.
626 *
627 * \sa SDL_GetWindowSurface()
628 * \sa SDL_UpdateWindowSurfaceRects()
629 */
630 extern DECLSPEC int SDLCALL SDL_UpdateWindowSurface(SDL_Window * window);
631
632 /**
633 * \brief Copy a number of rectangles on the window surface to the screen.
634 *
635 * \return 0 on success, or -1 on error.
636 *
637 * \sa SDL_GetWindowSurface()
638 * \sa SDL_UpdateWindowSurfaceRect()
639 */
640 extern DECLSPEC int SDLCALL SDL_UpdateWindowSurfaceRects(SDL_Window * window,
641 int numrects,
642 SDL_Rect * rects);
643
644 /**
611 * \brief Set a window's input grab mode. 645 * \brief Set a window's input grab mode.
612 * 646 *
613 * \param mode This is 1 to grab input, and 0 to release input. 647 * \param mode This is 1 to grab input, and 0 to release input.
614 * 648 *
615 * \sa SDL_GetWindowGrab() 649 * \sa SDL_GetWindowGrab()