Add initial support for skeletal entities / components

This commit is contained in:
SirLynix
2022-08-27 03:07:48 +02:00
parent 01f3f350fe
commit 50ed8b4028
55 changed files with 919 additions and 131 deletions

View File

@@ -23,7 +23,7 @@ namespace Nz
struct Renderable;
static constexpr std::size_t MaxRenderableCount = 8;
inline GraphicsComponent(bool initialyVisible = true);
inline GraphicsComponent(bool initiallyVisible = true);
GraphicsComponent(const GraphicsComponent&) = default;
GraphicsComponent(GraphicsComponent&&) = default;
~GraphicsComponent() = default;

View File

@@ -7,9 +7,9 @@
namespace Nz
{
inline GraphicsComponent::GraphicsComponent(bool initialyVisible) :
inline GraphicsComponent::GraphicsComponent(bool initiallyVisible) :
m_scissorBox(-1, -1, -1, -1),
m_isVisible(initialyVisible)
m_isVisible(initiallyVisible)
{
m_worldInstance = std::make_shared<WorldInstance>(); //< FIXME: Use pools
}