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
14 {
15  namespace Graphics
16  {
17  enum class GifOutputSize
18  {
19  Full,
20  Half,
21  };
22 
35  void GifPerformCapture(const float deltaTime, const bool toggleCapture, const GifOutputSize& outputSize = GifOutputSize::Half);
36 
41  void GifCaptureCleanup(void);
42 
43  namespace Unstable
44  { //This is NOT the correct location, just hacking a feature in for Turbo Boom!
45 
46  void TakeScreenshot(const tbCore::tbString& filename = "", PixelSpace x = 0, PixelSpace y = 0, PixelSpace width = 0, PixelSpace height = 0);
47 
48  };
49 
50  }; /* namespace Graphics */
51 }; /* namespace TurtleBrains */
52 
54 
55 #endif /* TurtleBrains_GifExporter_hpp */
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
void GifCaptureCleanup(void)
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.hpp:36
void GifPerformCapture(const float deltaTime, const bool toggleCapture, const GifOutputSize &outputSize=GifOutputSize::Half)
std::string tbString
Definition: tb_string.hpp:335