Wiki Page Content

Differences between revisions 11 and 12
Revision 11 as of 2012-01-07 19:06:19
Size: 776
Editor: Sam Lantinga
Comment:
Revision 12 as of 2014-12-12 21:10:13
Size: 929
Comment: Added a remark.
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
''You can add useful comments here'' In some cases (e.g. OpenGL) and on some platforms (e.g. Microsoft Windows) the hint [[SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT]] needs to be configured before using SDL_!CreateWindowFrom().

SDL_CreateWindowFrom

Use this function to create an SDL window from an existing native window.

Syntax

SDL_Window* SDL_CreateWindowFrom(const void* data)

Function Parameters

data

a pointer to driver-dependent window creation data, typically your native window cast to a void*

Return Value

Returns the window that was created or NULL on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

In some cases (e.g. OpenGL) and on some platforms (e.g. Microsoft Windows) the hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT needs to be configured before using SDL_CreateWindowFrom().


CategoryAPI, CategoryVideo

None: SDL_CreateWindowFrom (last edited 2015-05-08 19:40:51 by PhilippWiesemann)

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