Ocular Engine
ShadersDisplayBox.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_MATERIAL_SHADERS_DISPLAY_BOX__H__
19 #define __H__OCULAR_EDITOR_MATERIAL_SHADERS_DISPLAY_BOX__H__
20 
21 #include "MaterialPropertiesDisplayBox.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
37  class ResourceProperty;
38 
43  {
44  public:
45 
46  ShadersDisplayBox(QWidget* parent = nullptr);
48 
49  //------------------------------------------------------------
50 
51  virtual void setMaterial(Graphics::Material* material) override;
52  virtual void updateProperties() override;
53  virtual void onApply() override;
54 
55  protected:
56 
57  void buildWidgets();
58 
59  private:
60 
61  ResourceProperty* m_PropertyVertexShader;
62  ResourceProperty* m_PropertyGeometryShader;
63  ResourceProperty* m_PropertyFragmentShader;
64  ResourceProperty* m_PropertyPreTessShader;
65  ResourceProperty* m_PropertyPostTessShader;
66  };
67  }
71 }
76 //------------------------------------------------------------------------------------------
77 
78 #endif
Definition: MaterialPropertiesDisplayBox.hpp:41
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: ShadersDisplayBox.hpp:42
Definition: ResourceProperty.hpp:46
Definition: Material.hpp:62