mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-16 14:08:59 +07:00
render_system and sprite_system dummy systems
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -25,6 +25,12 @@ namespace e2d
|
||||
class transform3d;
|
||||
}
|
||||
|
||||
namespace systems
|
||||
{
|
||||
class render_system;
|
||||
class sprite_system;
|
||||
}
|
||||
|
||||
class asset;
|
||||
class library;
|
||||
|
||||
|
||||
25
headers/enduro2d/high/systems/render_system.hpp
Normal file
25
headers/enduro2d/high/systems/render_system.hpp
Normal 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_;
|
||||
};
|
||||
}
|
||||
}
|
||||
25
headers/enduro2d/high/systems/sprite_system.hpp
Normal file
25
headers/enduro2d/high/systems/sprite_system.hpp
Normal 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_;
|
||||
};
|
||||
}
|
||||
}
|
||||
35
sources/enduro2d/high/systems/render_system.cpp
Normal file
35
sources/enduro2d/high/systems/render_system.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
35
sources/enduro2d/high/systems/sprite_system.cpp
Normal file
35
sources/enduro2d/high/systems/sprite_system.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user