Ocular Engine
TextureResourceSaver_PNG.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_GRAPHICS_TEXTURE_RESOURCE_SAVER_PNG__H__
19 #define __H__OCULAR_GRAPHICS_TEXTURE_RESOURCE_SAVER_PNG__H__
20 
21 #include "TextureResourceSaver.hpp"
22 #include <fstream>
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Graphics
37  {
42  {
43  public:
44 
46  virtual ~TextureResourceSaver_PNG();
47 
48  protected:
49 
59  virtual bool saveFile(Core::File const& file, std::vector<Core::Color> const& pixels, unsigned const width, unsigned const height);
60 
61  private:
62 
63  };
64  }
68 }
73 //------------------------------------------------------------------------------------------
74 
75 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: File.hpp:41
Definition: TextureResourceSaver_PNG.hpp:41
virtual bool saveFile(Core::File const &file, std::vector< Core::Color > const &pixels, unsigned const width, unsigned const height)
Definition: TextureResourceSaver_PNG.cpp:55
Definition: TextureResourceSaver.hpp:51