Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

42 строки
880 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The Video interface
  12. // -------------------
  13. // Helper GL functions to set up the scene.
  14. //
  15. #if !defined __LOL_VIDEO_H__
  16. #define __LOL_VIDEO_H__
  17. #include <stdint.h>
  18. namespace lol
  19. {
  20. class Video
  21. {
  22. public:
  23. static void Setup(int width, int height);
  24. static void Destroy();
  25. static void SetFov(float theta);
  26. static void SetDepth(bool set);
  27. static void Clear();
  28. static void Capture(uint32_t *buffer);
  29. static int GetWidth();
  30. static int GetHeight();
  31. };
  32. } /* namespace lol */
  33. #endif // __LOL_VIDEO_H__