-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScene.cpp
More file actions
72 lines (61 loc) · 1.22 KB
/
Copy pathScene.cpp
File metadata and controls
72 lines (61 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
*
* @file Scene.cpp
* @author Gaspard Kirira
*
* Copyright 2026, Gaspard Kirira.
* All rights reserved.
* https://github.com/vixcpp/game
*
* Use of this source code is governed by a MIT license
* that can be found in the LICENSE file.
*
* Vix.cpp
*
*/
#include <vix/game/Scene.hpp>
#include <vix/game/App.hpp>
#include <vix/game/AssetManager.hpp>
#include <vix/game/EventBus.hpp>
#include <vix/game/JobSystem.hpp>
#include <vix/game/GameContext.hpp>
#include <vix/game/GameRuntime.hpp>
#include <vix/game/InputSystem.hpp>
#include <vix/game/Renderer.hpp>
#include <vix/game/Renderer2D.hpp>
#include <vix/game/Window.hpp>
namespace vix::game
{
EventBus &Scene::events()
{
return app().events();
}
AssetManager &Scene::assets()
{
return app().assets();
}
JobSystem &Scene::jobs()
{
return app().jobs();
}
GameContext &Scene::context()
{
return app().runtime().context();
}
InputSystem &Scene::input()
{
return context().input();
}
Window &Scene::window()
{
return context().window();
}
Renderer &Scene::renderer()
{
return context().renderer();
}
Renderer2D &Scene::renderer2d()
{
return context().renderer2d();
}
} // namespace vix::game