TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
tb_gif_exporter.hpp
1 
8 #ifndef TurtleBrains_GifExporter_hpp
9 #define TurtleBrains_GifExporter_hpp
10 
11 #include <turtle_brains/graphics/tb_texture_manager.hpp> //Included for PixelSpace typedef.
12 
13 namespace TurtleBrains::Graphics
14 {
15 
16  enum class GifOutputSize
17  {
18  Full,
19  Half,
20  };
21 
34  void GifPerformCapture(const float deltaTime, const bool toggleCapture, const GifOutputSize& outputSize = GifOutputSize::Half);
35 
40  void GifCaptureCleanup(void);
41 
42  namespace Unstable
43  { //This is NOT the correct location, just hacking a feature in for Turbo Boom!
44 
45  void TakeScreenshot(const String& filename = "", PixelSpace x = 0, PixelSpace y = 0, PixelSpace width = 0, PixelSpace height = 0);
46 
47  };
48 
49 }; /* namespace TurtleBrains::Graphics */
50 
52 
53 #endif /* TurtleBrains_GifExporter_hpp */
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
void GifCaptureCleanup(void)
void GifPerformCapture(const float deltaTime, const bool toggleCapture, const GifOutputSize &outputSize=GifOutputSize::Half)
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.hpp:34