PolySDLCore.h 803 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * PolySDLCore.h
  3. * TAU
  4. *
  5. * Created by Ivan Safrin on 3/12/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Core
  10. /*
  11. #pragma once
  12. #include "PolyGlobals.h"
  13. #include "PolyCore.h"
  14. #include "PolyRectangle.h"
  15. #include <vector>
  16. using std::vector;
  17. #if PLATFORM == PLATFORM_WINDOWS
  18. #include <winsock2.h>
  19. #endif
  20. #ifdef COMPILE_SDL_CORE
  21. namespace Polycode {
  22. class _PolyExport SDLCore : public Core {
  23. public:
  24. SDLCore(int xRes, int yRes, bool fullScreen, int aaLevel);
  25. ~SDLCore();
  26. void enableMouse(bool newval);
  27. unsigned int getTicks();
  28. bool Update();
  29. void setVideoMode(int xRes, int yRes, bool fullScreen, int aaLevel);
  30. void createThread(Threaded *target);
  31. vector<Rectangle> getVideoModes();
  32. private:
  33. };
  34. }
  35. #endif
  36. */