Skip to content
Permalink
Browse files

Added a usage example for SDL_GetWMInfo()

  • Loading branch information
slouken committed Nov 30, 2004
1 parent ab31999 commit f67e11e17d90a19a4ea149d6f4da22f84ef77662
Showing with 5 additions and 0 deletions.
  1. +5 −0 include/SDL_syswm.h
@@ -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);

0 comments on commit f67e11e

Please sign in to comment.