Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2010-10-18 03:21:06
Size: 673
Editor: SheenaSmith
Comment: update content - pointers, structs
Revision 6 as of 2011-02-24 19:32:49
Size: 830
Editor: SheenaSmith
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.

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.


CategoryAPI, CategoryVideo

None: SDL_SetWindowData (last edited 2013-07-23 12:50:11 by axper)

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