|
⇤ ← Revision 1 as of 2014-02-15 22:15:28
Size: 1619
Comment: Created page using content from SDL_hints.h
|
← Revision 2 as of 2014-02-25 21:57:30 ⇥
Size: 1562
Comment: Removed DRAFT by request, see docs mailing list.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| |
SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT
A hint that specifies the address of another SDL_Window* (as a hex string formatted with "%p").
Values
X |
the address (as a string "%p") of the SDL_Window* that new windows created with SDL_CreateWindowFrom() should share a pixel format with |
Default
By default this hint is not set.
Code Examples
You can add your code example here
Remarks
If this hint is set before SDL_CreateWindowFrom() and the SDL_Window* it is set to has SDL_WINDOW_OPENGL set (and running on WGL only, currently), then two things will occur on the newly created SDL_Window:
- Its pixel format will be set to the same pixel format as this SDL_Window. This is needed for example when sharing an OpenGL context across multiple windows.
- The flag SDL_WINDOW_OPENGL will be set on the new window so it can be used for OpenGL rendering.
Version
This hint is available since SDL 2.0.2.
