Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
profiler_sections.hpp
Go to the documentation of this file.
1
7
#pragma once
8
9
#include <cstdint>
10
#include <string>
11
#include <string_view>
12
13
namespace
toast {
14
15
class
ProfilerSections {
16
public
:
17
enum class
Mode : uint8_t {
18
none,
19
editor
,
20
play,
21
simulate,
22
};
23
24
ProfilerSections() =
default
;
25
ProfilerSections(
const
ProfilerSections&) =
delete
;
26
auto
operator=(
const
ProfilerSections&) -> ProfilerSections& =
delete
;
27
~ProfilerSections();
28
29
void
update(Mode mode, std::string_view world);
30
31
private
:
32
Mode m_mode = Mode::none;
33
std::string m_world;
34
uint32_t m_mode_id = 0;
35
uint32_t m_world_id = 0;
36
37
void
leaveAll();
38
};
39
}
editor
Definition
App.axaml.cs:9
engine
src
toast
profiler_sections.hpp
Generated by
1.17.0