include/SDL_video.h
changeset 5546 cd2167525827
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
equal deleted inserted replaced
5545:978cc06ed5ad 5546:cd2167525827
   549  */
   549  */
   550 extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window,
   550 extern DECLSPEC int SDLCALL SDL_SetWindowFullscreen(SDL_Window * window,
   551                                                     SDL_bool fullscreen);
   551                                                     SDL_bool fullscreen);
   552 
   552 
   553 /**
   553 /**
   554  *  \brief Get an SDL surface associated with the window.
   554  *  \brief Get the SDL surface associated with the window.
   555  *
   555  *
   556  *  \return A surface in the optimal format for the window, or NULL on error.
   556  *  \return The window's framebuffer surface, or NULL on error. 
       
   557  *
       
   558  *  A new surface will be created with the optimal format for the window,
       
   559  *  if necessary. This surface will be freed when the window is destroyed.
   557  *
   560  *
   558  *  \note You may not combine this with 3D or the rendering API on this window.
   561  *  \note You may not combine this with 3D or the rendering API on this window.
   559  *
   562  *
   560  *  \sa SDL_UpdateWindowSurface()
   563  *  \sa SDL_UpdateWindowSurface()
   561  *  \sa SDL_UpdateWindowSurfaceRects()
   564  *  \sa SDL_UpdateWindowSurfaceRects()