SDL.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef _SDL_H
  2. #define _SDL_H
  3. #include "SDL_main.h"
  4. #include "SDL_stdinc.h"
  5. #include "SDL_assert.h"
  6. #include "SDL_atomic.h"
  7. #include "SDL_audio.h"
  8. #include "SDL_clipboard.h"
  9. #include "SDL_cpuinfo.h"
  10. #include "SDL_endian.h"
  11. #include "SDL_error.h"
  12. #include "SDL_events.h"
  13. #include "SDL_joystick.h"
  14. #include "SDL_gamecontroller.h"
  15. #include "SDL_haptic.h"
  16. #include "SDL_hints.h"
  17. #include "SDL_loadso.h"
  18. #include "SDL_log.h"
  19. #include "SDL_messagebox.h"
  20. #include "SDL_mutex.h"
  21. #include "SDL_power.h"
  22. #include "SDL_render.h"
  23. #include "SDL_rwops.h"
  24. #include "SDL_system.h"
  25. #include "SDL_thread.h"
  26. #include "SDL_timer.h"
  27. #include "SDL_version.h"
  28. #include "SDL_video.h"
  29. #include "begin_code.h"
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. #define SDL_INIT_TIMER 0x00000001
  34. #define SDL_INIT_AUDIO 0x00000010
  35. #define SDL_INIT_VIDEO 0x00000020
  36. #define SDL_INIT_JOYSTICK 0x00000200
  37. #define SDL_INIT_HAPTIC 0x00001000
  38. #define SDL_INIT_GAMECONTROLLER 0x00002000
  39. #define SDL_INIT_EVENTS 0x00004000
  40. #define SDL_INIT_NOPARACHUTE 0x00100000
  41. #define SDL_INIT_EVERYTHING ( \
  42. SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | \
  43. SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER \
  44. )
  45. typedef int SDLCALL tSDL_Init(Uint32 flags);
  46. typedef int SDLCALL tSDL_InitSubSystem(Uint32 flags);
  47. typedef void SDLCALL tSDL_QuitSubSystem(Uint32 flags);
  48. typedef Uint32 SDLCALL tSDL_WasInit(Uint32 flags);
  49. typedef void SDLCALL tSDL_Quit(void);
  50. extern tSDL_Init *SDL_Init;
  51. extern tSDL_InitSubSystem *SDL_InitSubSystem;
  52. extern tSDL_QuitSubSystem *SDL_QuitSubSystem;
  53. extern tSDL_WasInit *SDL_WasInit;
  54. extern tSDL_Quit *SDL_Quit;
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #include "close_code.h"
  59. #endif