Ndk/GraphicsComponent: Add Attach method

It will evolve, don't worry.


Former-commit-id: 6529d47e076ef102d54fde0a741df72eb80f5ca7
This commit is contained in:
Lynix
2015-06-04 00:19:53 +02:00
parent 3fdd41cc6b
commit fac893f379
2 changed files with 13 additions and 2 deletions

View File

@@ -7,8 +7,8 @@
#ifndef NDK_COMPONENTS_GRAPHICSCOMPONENT_HPP
#define NDK_COMPONENTS_GRAPHICSCOMPONENT_HPP
#include <NDK/Component.hpp>
#include <Nazara/Graphics/Renderable.hpp>
#include <NDK/Component.hpp>
namespace Ndk
{
@@ -18,7 +18,9 @@ namespace Ndk
GraphicsComponent() = default;
~GraphicsComponent() = default;
void AddToRenderQueue(NzAbstractRenderQueue* renderQueue, const NzMatrix4f& transformMatrix) const;
inline void AddToRenderQueue(NzAbstractRenderQueue* renderQueue, const NzMatrix4f& transformMatrix) const;
inline void Attach(NzRenderableRef renderable);
static ComponentIndex componentIndex;