Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. /* Public domain */
  2. /*
  3. * Code common to all drivers using the SDL library.
  4. */
  5.  
  6. #include <agar/config/have_sdl.h>
  7. #ifdef HAVE_SDL
  8.  
  9. /* XXX */
  10. #undef HAVE_SNPRINTF
  11. #undef HAVE_VSNPRINTF
  12. #undef HAVE_SYS_TYPES_H
  13. #undef HAVE_STDIO_H
  14. #undef HAVE_STDLIB_H
  15. #undef HAVE_STDARG_H
  16. #undef Uint8
  17. #undef Sint8
  18. #undef Uint16
  19. #undef Sint16
  20. #undef Uint32
  21. #undef Sint32
  22. #undef Uint64
  23. #undef Sint64
  24. #include <SDL.h>
  25.  
  26. /* Begin generated block */
  27. __BEGIN_DECLS
  28. extern DECLSPEC int AG_InitVideoSDL(void *, Uint);
  29. extern DECLSPEC AG_PixelFormat *AG_SDL_GetPixelFormat(SDL_Surface *);
  30. extern DECLSPEC void AG_SDL_BlitSurface(const AG_Surface *, const AG_Rect *, SDL_Surface *, int, int);
  31. extern DECLSPEC AG_Surface *AG_SDL_ImportSurface(SDL_Surface *);
  32. extern DECLSPEC int AG_SDL_SetRefreshRate(void *, int);
  33. extern DECLSPEC int AG_SDL_InitDefaultCursor(void *);
  34. extern DECLSPEC int AG_SDL_SetCursor(void *, AG_Cursor *);
  35. extern DECLSPEC void AG_SDL_UnsetCursor(void *);
  36. extern DECLSPEC int AG_SDL_CreateCursor(void *, AG_Cursor *);
  37. extern DECLSPEC void AG_SDL_FreeCursor(void *, AG_Cursor *);
  38. extern DECLSPEC int AG_SDL_GetCursorVisibility(void *);
  39. extern DECLSPEC void AG_SDL_SetCursorVisibility(void *, int);
  40. extern DECLSPEC int AG_SDL_PostEventCallback(void *);
  41. extern DECLSPEC int AG_SDL_GetDisplaySize(Uint *, Uint *);
  42. extern DECLSPEC void AG_SDL_BeginEventProcessing(void *);
  43. extern DECLSPEC int AG_SDL_PendingEvents(void *);
  44. extern DECLSPEC int AG_SDL_GetNextEvent(void *, AG_DriverEvent *);
  45. extern DECLSPEC int AG_SDL_ProcessEvent(void *, AG_DriverEvent *);
  46. extern DECLSPEC void AG_SDL_GenericEventLoop(void *);
  47. extern DECLSPEC void AG_SDL_EndEventProcessing(void *);
  48. extern DECLSPEC void AG_SDL_Terminate(void);
  49. __END_DECLS
  50. /* Close generated block */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement