Ocular Engine
MaterialResourceSaver.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_GRAPHICS_MATERIAL_RESOURCE_SAVER__H__
19 #define __H__OCULAR_GRAPHICS_MATERIAL_RESOURCE_SAVER__H__
20 
21 #include "Resources/ResourceSaver.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Graphics
36  {
37  class ShaderProgram;
38 
44  {
45  public:
46 
48  virtual ~MaterialResourceSaver();
49 
50  virtual bool saveResource(Core::Resource* resource, Core::File const& file) override;
51 
52  protected:
53 
54  bool validateResource(Core::Resource const* resource) const;
55 
56  private:
57  };
58  }
62 }
67 //------------------------------------------------------------------------------------------
68 
69 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Saves a Material object to an Ocular Material file (.omat)
Definition: MaterialResourceSaver.hpp:43
virtual bool saveResource(Core::Resource *resource, Core::File const &file) override
Definition: MaterialResourceSaver.cpp:64
Definition: File.hpp:41
Definition: ResourceSaver.hpp:49
Definition: Resource.hpp:46