Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-03-25 21:01:17
Size: 804
Editor: SheenaSmith
Comment: minor change for consistency - error to failure in RV
Revision 3 as of 2011-04-22 16:59:47
Size: 941
Editor: SheenaSmith
Comment: update content - w/ Sam; 4/22 cd2167525827
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Use this function to get an SDL surface associated with the window. Use this function to get the SDL surface associated with the window.
Line 19: Line 19:
Returns a surface in the optimal format for the window, or NULL on failure. Returns the surface associated with the window, or NULL on failure.
Line 27: Line 27:
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.

DRAFT

SDL_GetWindowSurface

Use this function to get the SDL surface associated with the window.

Syntax

SDL_Surface* SDL_GetWindowSurface(SDL_Window* window)

Function Parameters

window

the window to query

Return Value

Returns the surface associated with the window, or NULL on failure.

Code Examples

You can add your code example here

Remarks

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.

You may not combine this with 3D or the rendering API on this window.


CategoryAPI, CategoryVideo

None: SDL_GetWindowSurface (last edited 2015-02-10 21:29:22 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit