opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
gui_ruler.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <optional>
7
8namespace osc { class Rect; }
9namespace osc { struct PolarPerspectiveCamera; }
10
11namespace osc
12{
14 public:
15 void on_draw(
17 const Rect& render_rect,
18 std::optional<SceneCollision>
19 );
23 bool is_measuring() const;
24
25 private:
26 enum class State { Inactive, WaitingForFirstPoint, WaitingForSecondPoint };
27
28 State state_ = State::Inactive;
29 Vector3 start_world_pos_ = {};
30 };
31}
Definition gui_ruler.h:13
void on_draw(const PolarPerspectiveCamera &, const Rect &render_rect, std::optional< SceneCollision >)
void start_measuring()
void stop_measuring()
bool is_measuring() const
void toggle_measuring()
Definition rect.h:17
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56
Definition polar_perspective_camera.h:14