PolyGlobals.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #pragma once
  2. // TAU CORE LIBRARY CONFIGURATION SECTION
  3. // Compile support for lua bindings.
  4. //#define _COMPILE_LUA
  5. #define COMPILE_GL_RENDERER
  6. #ifdef MSVC
  7. #define WIN32_LEAN_AND_MEAN
  8. #pragma warning(disable:4251)
  9. #pragma warning(disable:4305)
  10. #pragma warning(disable:4244)
  11. #pragma warning(disable:4018)
  12. #pragma warning(disable:4996)
  13. #pragma warning(disable:4309)
  14. #define NULL 0
  15. #endif
  16. #define PI 3.14159265
  17. #define RADIANS 57.2957795
  18. #define TODEGREES 57.2957795
  19. #define TORADIANS 0.0174532925
  20. #ifdef _WINDOWS
  21. #define _PolyExport __declspec(dllexport)
  22. #else
  23. #define _PolyExport
  24. #endif
  25. //#define COMPILE_SDL_CORE 1
  26. #define PLATFORM_WINDOWS 1
  27. #define PLATFORM_MAC 2
  28. #define PLATFORM_UNIX 3
  29. #ifdef _WINDOWS
  30. #define PLATFORM PLATFORM_WINDOWS
  31. #elif defined(__APPLE__) && defined(__MACH__)
  32. #define PLATFORM PLATFORM_MAC
  33. #else
  34. #define PLATFORM PLATFORM_UNIX
  35. #endif
  36. // NETWORK STUFF
  37. #define MAX_PACKET_SIZE 1400
  38. // if set to 1, will create a thread for each network socket
  39. #define USE_THREADED_SOCKETS 0
  40. // Socket poll interval time in msecs
  41. #define SOCKET_POLL_INTERVAL 5
  42. #define PACKET_TYPE_USERDATA 0
  43. #define PACKET_TYPE_SETCLIENT_ID 1
  44. #define PACKET_TYPE_CLIENT_READY 2
  45. #define PACKET_TYPE_DISONNECT 3
  46. #define PACKET_TYPE_CLIENT_DATA 4