Euphoria
imguizmo.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "base/mat4.h"
4 #include "base/vec3.h"
5 #include "base/quat.h"
6 #include "base/angle.h"
7 
8 #include <optional>
9 
10 
12 {
13  void setup();
14  void begin();
15 
16  bool
17  translate
18  (
19  bool is_local,
20  const std::optional<vec3f>& snap,
21  const mat4f& camera_view,
22  const mat4f& camera_projection,
23  const mat4f& model,
24  bool x, bool y, bool z,
25  vec3f* new_position
26  );
27 
28  bool
29  rotate
30  (
31  bool is_local,
32  const std::optional<Angle>& snap,
33  const mat4f& camera_view,
34  const mat4f& camera_projection,
35  const mat4f& model,
36  bool y, bool p, bool r,
37  quatf* new_rotation
38  );
39 }
bool translate(bool is_local, const std::optional< vec3f > &snap, const mat4f &camera_view, const mat4f &camera_projection, const mat4f &model, bool tx, bool ty, bool tz, vec3f *new_position)
Definition: imguizmo.cc:53
bool rotate(bool is_local, const std::optional< Angle > &snap, const mat4f &camera_view, const mat4f &camera_projection, const mat4f &model, bool rx, bool ry, bool rz, quatf *new_rotation)
Definition: imguizmo.cc:113