[−][src]Function sdl2_sys::SDL_GetWindowSurface
pub unsafe extern "C" fn SDL_GetWindowSurface(
window: *mut SDL_Window
) -> *mut SDL_Surface
\brief Get the SDL surface associated with the window.
\return The window's framebuffer surface, or NULL on error.
A new surface will be created with the optimal format for the window, if necessary. This surface will be freed when the window is destroyed.
\note You may not combine this with 3D or the rendering API on this window.
\sa SDL_UpdateWindowSurface() \sa SDL_UpdateWindowSurfaceRects()