// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #pragma once #ifndef NDK_COMPONENTS_GRAPHICSCOMPONENT_HPP #define NDK_COMPONENTS_GRAPHICSCOMPONENT_HPP #include #include namespace Ndk { class NDK_API GraphicsComponent : public Component { public: GraphicsComponent() = default; ~GraphicsComponent() = default; inline void AddToRenderQueue(NzAbstractRenderQueue* renderQueue, const NzMatrix4f& transformMatrix) const; inline void Attach(NzRenderableRef renderable); static ComponentIndex componentIndex; private: struct Renderable { NzBoundingVolumef volume; NzRenderableRef renderable; }; std::vector m_renderables; }; } #include #endif // NDK_COMPONENTS_GRAPHICSCOMPONENT_HPP