You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
885 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(ivec2 size);
  24. static void Destroy();
  25. static void SetFov(float theta);
  26. static void SetDepth(bool set);
  27. static void SetClearColor(vec4 color);
  28. static void Clear();
  29. static void Capture(uint32_t *buffer);
  30. static ivec2 GetSize();
  31. };
  32. } /* namespace lol */
  33. #endif // __LOL_VIDEO_H__