Skip to content

Commit

Permalink
Added a usage example for SDL_GetWMInfo()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 30, 2004
1 parent ab31999 commit f67e11e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/SDL_syswm.h
Expand Up @@ -188,6 +188,11 @@ typedef struct SDL_SysWMinfo {
* It fills the structure pointed to by 'info' with custom information and
* returns 1 if the function is implemented. If it's not implemented, or
* the version member of the 'info' structure is invalid, it returns 0.
*
* You typically use this function like this:
* SDL_SysWMInfo info;
* SDL_VERSION(&info.version);
* if ( SDL_GetWMInfo(&info) ) { ... }
*/
extern DECLSPEC int SDLCALL SDL_GetWMInfo(SDL_SysWMinfo *info);

Expand Down

0 comments on commit f67e11e

Please sign in to comment.