Ocular Engine
EditorForwardRenderer.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_FORWARD_RENDERER__H__
19 #define __H__OCULAR_EDITOR_FORWARD_RENDERER__H__
20 
21 #include "Renderer/Renderer.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
43  {
44  public:
45 
47  virtual ~ForwardRenderer();
48 
52  virtual void render(std::vector<Core::SceneObject*>& objects) override;
53 
57  virtual void render(std::vector<Core::SceneObject*>& objects, Graphics::Material* material) override;
58 
59  protected:
60 
61  void buildSelectedMaterial();
62 
63  private:
64 
65  Graphics::Material* m_SelectedMaterial; // Material used when rendering the selected object
66  };
67  }
71 }
76 //------------------------------------------------------------------------------------------
77 
78 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
virtual void render(std::vector< Core::SceneObject * > &objects) override
Definition: EditorForwardRenderer.cpp:51
Definition: Renderer.hpp:49
Definition: EditorForwardRenderer.hpp:42
Definition: Material.hpp:62