Wiki Page Content

DRAFT

SDL_AddHintCallback

Use this function to add a function to watch a particular hint.

Syntax

void SDL_AddHintCallback(const char*      name,
                         SDL_HintCallback callback,
                         void*            userdata)

Function Parameters

name

the hint to watch

callback

the function to call when the hint value changes

userdata

a pointer to pass to the callback function

Code Examples

You can add your code example here

Remarks

The function prototype for callback is:

  • void SDL_HintCallback(void*       userdata,
                          const char* name,
                          const char* oldValue,
                          const char* newValue)
    
  • where its parameters are:

    userdata

    what was passed as userdata to SDL_AddHintCallback()

    name

    what was passed as name to SDL_AddHintCallback()

    oldValue

    the old value

    newValue

    the new value

Version

This function is available since SDL 2.0.0.


CategoryAPI, CategoryHints

None: SDL_AddHintCallback (last edited 2013-10-30 21:03:35 by PhilippWiesemann)

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