Deep Learning Visualizer
Interactive visualization of basic applications of deep learning
Loading...
Searching...
No Matches
application.h
Go to the documentation of this file.
1#pragma once
2
5#include <memory>
6#include <utility>
7
10#include "engine/scene.h"
11#include "engine/window.h"
12
13namespace engine {
14
21public:
27 void run();
28
36 void set_scene(std::unique_ptr<scene> scene) {
37 current_scene_ = std::move(scene);
38 }
39
40 graphics::renderer &renderer() {
41 return renderer_;
42 };
43
44 input::event_bus &event_bus() {
45 return bus_;
46 };
47
48private:
49 input::event_bus bus_{};
50 window window_{bus_};
51 graphics::renderer renderer_{};
52 std::unique_ptr<scene> current_scene_{};
53};
54
55} // namespace engine
Desktop GUI manager that handles the application lifecycle.
Definition application.h:20
void run()
Runs the update and render loop with the current scene.
Definition application.cpp:5
void set_scene(std::unique_ptr< scene > scene)
Sets the active scene.
Definition application.h:36
OpenGL renderer that uses batch rendering.
Definition renderer.h:18
An abstract interface representing a complete application scene.
Definition scene.h:10