SDL_hints.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #ifndef _SDL_hints_h
  2. #define _SDL_hints_h
  3. #include "SDL_stdinc.h"
  4. #include "begin_code.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define SDL_HINT_FRAMEBUFFER_ACCELERATION "SDL_FRAMEBUFFER_ACCELERATION"
  9. #define SDL_HINT_RENDER_DRIVER "SDL_RENDER_DRIVER"
  10. #define SDL_HINT_RENDER_OPENGL_SHADERS "SDL_RENDER_OPENGL_SHADERS"
  11. #define SDL_HINT_RENDER_SCALE_QUALITY "SDL_RENDER_SCALE_QUALITY"
  12. #define SDL_HINT_RENDER_VSYNC "SDL_RENDER_VSYNC"
  13. #define SDL_HINT_VIDEO_X11_XVIDMODE "SDL_VIDEO_X11_XVIDMODE"
  14. #define SDL_HINT_VIDEO_X11_XINERAMA "SDL_VIDEO_X11_XINERAMA"
  15. #define SDL_HINT_VIDEO_X11_XRANDR "SDL_VIDEO_X11_XRANDR"
  16. #define SDL_HINT_GRAB_KEYBOARD "SDL_GRAB_KEYBOARD"
  17. #define SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"
  18. #define SDL_HINT_IDLE_TIMER_DISABLED "SDL_IOS_IDLE_TIMER_DISABLED"
  19. #define SDL_HINT_ORIENTATIONS "SDL_IOS_ORIENTATIONS"
  20. #define SDL_HINT_XINPUT_ENABLED "SDL_XINPUT_ENABLED"
  21. #define SDL_HINT_GAMECONTROLLERCONFIG "SDL_GAMECONTROLLERCONFIG"
  22. #define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS"
  23. #define SDL_HINT_ALLOW_TOPMOST "SDL_ALLOW_TOPMOST"
  24. #define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
  25. typedef enum
  26. {
  27. SDL_HINT_DEFAULT,
  28. SDL_HINT_NORMAL,
  29. SDL_HINT_OVERRIDE
  30. } SDL_HintPriority;
  31. typedef SDL_bool SDLCALL tSDL_SetHintWithPriority(const char *name,
  32. const char *value,
  33. SDL_HintPriority priority);
  34. typedef SDL_bool SDLCALL tSDL_SetHint(const char *name,
  35. const char *value);
  36. typedef const char * SDLCALL tSDL_GetHint(const char *name);
  37. typedef void (*SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
  38. typedef void SDLCALL tSDL_AddHintCallback(const char *name,
  39. SDL_HintCallback callback,
  40. void *userdata);
  41. typedef void SDLCALL tSDL_DelHintCallback(const char *name,
  42. SDL_HintCallback callback,
  43. void *userdata);
  44. typedef void SDLCALL tSDL_ClearHints(void);
  45. extern tSDL_SetHintWithPriority *SDL_SetHintWithPriority;
  46. extern tSDL_SetHint *SDL_SetHint;
  47. extern tSDL_GetHint *SDL_GetHint;
  48. extern tSDL_AddHintCallback *SDL_AddHintCallback;
  49. extern tSDL_DelHintCallback *SDL_DelHintCallback;
  50. extern tSDL_ClearHints *SDL_ClearHints;
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #include "close_code.h"
  55. #endif