SimpleEngine/include/simpleengine/scene.h

34 lines
682 B
C
Raw Normal View History

#pragma once
#include "entt/entity/fwd.hpp"
2022-09-22 02:52:06 +00:00
#include "gfx/mesh.h"
#include "event/event.h"
#include "renderable.h"
#include "simpleengine/gfx/renderer.h"
#include <memory>
#include <GLFW/glfw3.h>
#include <vector>
#include <entt/entt.hpp>
namespace simpleengine {
namespace ecs {
class Entity;
}
class Scene : public simpleengine::Event {
protected:
entt::registry registry;
std::shared_ptr<gfx::Renderer> renderer;
public:
Scene(std::shared_ptr<gfx::Renderer> renderer);
ecs::Entity create_entity();
virtual void update(const float& delta_time) override;
2022-10-13 03:18:47 +00:00
virtual void destroy() override;
};
}