Graphics: Move scissor box from InstancedRenderable to GraphicsComponent

This commit is contained in:
Jérôme Leclercq
2022-02-21 20:44:54 +01:00
parent 29c798a683
commit cc0fc53bd3
16 changed files with 38 additions and 38 deletions

View File

@@ -33,6 +33,7 @@ namespace Nz
inline void DetachRenderable(const std::shared_ptr<InstancedRenderable>& renderable);
inline const std::vector<Renderable>& GetRenderables() const;
inline const Recti& GetScissorBox() const;
inline const WorldInstancePtr& GetWorldInstance() const;
inline void Hide();
@@ -41,6 +42,8 @@ namespace Nz
inline void Show(bool show = true);
inline void UpdateScissorBox(const Recti& scissorBox);
GraphicsComponent& operator=(const GraphicsComponent&) = default;
GraphicsComponent& operator=(GraphicsComponent&&) = default;
@@ -56,6 +59,7 @@ namespace Nz
private:
std::vector<Renderable> m_renderables;
Recti m_scissorBox;
WorldInstancePtr m_worldInstance;
bool m_isVisible;
};