SDEngine
Game Engine
Loading...
Searching...
No Matches
Layer.hpp
Go to the documentation of this file.
1#pragma once
2
4#include "SD/export.hpp"
5
6namespace sd {
7
8struct Application;
9struct Scene;
10struct View;
11
13 bool is_active = true;
14 const char* debug_name = nullptr;
15 Scene* scene = nullptr;
16 Application* app = nullptr;
17 int stage_id = 0;
18 ViewId view_id = ViewId{0};
19 View* view = nullptr;
20};
21
22template<typename T> concept IsLayer = std::is_base_of_v<Layer, T>;
23
24struct Panel : Layer {};
25struct System : Layer {};
26struct RenderStage : Layer {};
27
28} // namespace sd
Definition Layer.hpp:22
Definition Application.hpp:22
Definition Application.hpp:42
Definition Layer.hpp:12
Definition Layer.hpp:24
Definition Layer.hpp:26
Definition Scene.hpp:9
Definition Layer.hpp:25
Definition id_types.hpp:7
Definition View.hpp:55
consteval U64 type_id_of()
Definition type_id.hpp:6