Add Scene with systems

- Add Scene class which populates the engine with Systems which handles
  all logic in the game
- Add Systems to ecs
This commit is contained in:
Thraix
2023-05-20 19:45:15 +02:00
parent 05d2c2940b
commit 84b24457a0
20 changed files with 626 additions and 42 deletions
@@ -0,0 +1,41 @@
#pragma once
#include "copium/asset/AssetRef.h"
#include <string>
#include <glm/glm.hpp>
namespace Copium
{
struct TransformC
{
glm::vec2 position;
glm::vec2 size;
};
struct ColorC
{
glm::vec3 color;
};
struct TextureC
{
AssetRef asset;
glm::vec2 texCoord1;
glm::vec2 texCoord2;
};
struct TextC
{
AssetRef font;
std::string text;
float fontSize;
};
struct MouseFollowC
{};
struct FrameCountC
{};
}