|
Size: 673
Comment: update content - pointers, structs
|
Size: 830
Comment: update page - 2/3 changeset 5165 (2/23 5391); camelcase pragma change
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| #pragma disable-camelcase | #pragma camelcase off |
| Line 5: | Line 5: |
| Use this function to associate an arbitrary pointer with a window. | Use this function to associate an arbitrary named pointer with a window. |
| Line 11: | Line 11: |
| void SDL_SetWindowData(SDL_Window* window, | void* SDL_SetWindowData(SDL_Window* window, const char* name, |
| Line 17: | Line 18: |
| ||'''name'''||the name of the pointer|| | |
| Line 18: | Line 20: |
== Return Value == Returns the previous value associated with '''name'''. |
|
| Line 25: | Line 30: |
| ''You can add useful comments here'' | '''name''' is case-sensitive. |
SDL_SetWindowData
Use this function to associate an arbitrary named pointer with a window.
Contents
Syntax
void* SDL_SetWindowData(SDL_Window* window,
const char* name,
void* userdata)
Function Parameters
window |
the window to associate with the pointer |
name |
the name of the pointer |
userdata |
the associated pointer |
Return Value
Returns the previous value associated with name.
Code Examples
You can add your code example here
Remarks
name is case-sensitive.
