Ocular Engine
MaterialPropertiesDisplayBox.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_MATERIAL_PROPERTIES_DISPLAY_BOX__H__
19 #define __H__OCULAR_EDITOR_MATERIAL_PROPERTIES_DISPLAY_BOX__H__
20 
21 #include "Widgets/Properties/PropertiesDisplayBox.hpp"
22 #include "Graphics/Material/Material.hpp"
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Editor
37  {
42  {
43  public:
44 
45  MaterialPropertiesDisplayBox(std::string const& displayName, QWidget* parent);
47 
48  //------------------------------------------------------------
49 
50  virtual void setObject(Core::SceneObject* object) override;
51  virtual void setMaterial(Graphics::Material* material);
52 
53  virtual void updateProperties() override;
54  virtual void onApply();
55 
56  protected:
57 
58  void releaseProperties();
59 
60  std::vector<PropertyWidget*> m_Properties;
61  Graphics::Material* m_Material;
62 
63  private:
64  };
65  }
69 }
74 //------------------------------------------------------------------------------------------
75 
76 #endif#pragma once
Definition: MaterialPropertiesDisplayBox.hpp:41
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: SceneObject.hpp:93
Definition: PropertiesDisplayBox.hpp:46
Definition: Material.hpp:62