render_system and sprite_system dummy systems

This commit is contained in:
2019-01-14 22:37:03 +07:00
parent aca1e4d8bf
commit deebe6c5ff
6 changed files with 129 additions and 0 deletions

View File

@@ -17,3 +17,6 @@
#include "components/camera.hpp"
#include "components/sprite.hpp"
#include "components/transform.hpp"
#include "systems/render_system.hpp"
#include "systems/sprite_system.hpp"

View File

@@ -25,6 +25,12 @@ namespace e2d
class transform3d;
}
namespace systems
{
class render_system;
class sprite_system;
}
class asset;
class library;

View File

@@ -0,0 +1,25 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#pragma once
#include "../_high.hpp"
namespace e2d
{
namespace systems
{
class render_system final : public ecs::system {
public:
render_system();
~render_system() noexcept final;
void process(ecs::registry& owner) override;
private:
class internal_state;
std::unique_ptr<internal_state> state_;
};
}
}

View File

@@ -0,0 +1,25 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#pragma once
#include "../_high.hpp"
namespace e2d
{
namespace systems
{
class sprite_system : public ecs::system {
public:
sprite_system();
~sprite_system() noexcept final;
void process(ecs::registry& owner) override;
private:
class internal_state;
std::unique_ptr<internal_state> state_;
};
}
}

View File

@@ -0,0 +1,35 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#include <enduro2d/high/systems/render_system.hpp>
namespace e2d
{
namespace systems
{
//
// render_system
//
class render_system::internal_state final : private noncopyable {
public:
internal_state() = default;
~internal_state() noexcept = default;
};
//
// render_system
//
render_system::render_system()
: state_(new internal_state()) {}
render_system::~render_system() noexcept = default;
void render_system::process(ecs::registry& owner) {
E2D_UNUSED(owner);
}
}
}

View File

@@ -0,0 +1,35 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#include <enduro2d/high/systems/sprite_system.hpp>
namespace e2d
{
namespace systems
{
//
// sprite_system::internal_state
//
class sprite_system::internal_state final : private noncopyable {
public:
internal_state() = default;
~internal_state() noexcept = default;
};
//
// sprite_system
//
sprite_system::sprite_system()
: state_(new internal_state) {}
sprite_system::~sprite_system() noexcept = default;
void sprite_system::process(ecs::registry& owner) {
E2D_UNUSED(owner);
}
}
}