RIT VEXU Core API
Toggle main menu visibility
Loading...
Searching...
No Matches
screen_controller.h
1
#pragma once
2
3
#include <functional>
4
#include <optional>
5
6
#include "core/utils/math/geometry/point2d.h"
7
8
namespace
ScreenController {
9
11
using
screen_handle = void();
12
22
bool
set(std::function<screen_handle> handle, std::function<screen_handle> draw =
nullptr
,
bool
clear =
true
);
23
25
void
unset();
26
31
bool
was_initialized();
32
34
void
pause();
35
37
void
resume();
38
43
bool
is_running();
44
50
std::optional<Point2d> get_press_pos();
51
57
std::optional<Point2d> get_last_press_pos();
58
64
std::optional<Point2d> get_first_press_pos();
65
70
uint64_t get_frame_count();
71
76
uint64_t get_frame_delta_time();
77
78
}
// namespace ScreenController
include
core
subsystems
screen
screen_controller.h
Generated by
1.17.0