Finality Engine
Loading...
Searching...
No Matches
ImGuizmoBridge.h
Go to the documentation of this file.
1
6
7#pragma once
8
9#include <Core/Core.h>
10#include <glm/glm.hpp>
11
12namespace FINALITY
13{
14 struct TransformComponent;
15
18 {
19 public:
20 static void BeginFrame();
21 static bool IsActive();
22 static bool Manipulate(const glm::mat4& view,
23 const glm::mat4& projection,
24 int operation,
25 glm::mat4& worldTransform, bool local = false);
26
27 static void DecomposeTransform(const glm::mat4& transform,
28 glm::vec3& position,
29 glm::vec3& rotationDegrees,
30 glm::vec3& scale);
31 static void SetLocalTransform(TransformComponent& component, const glm::mat4& local);
32 };
33}
#define FAPI
Definition Core.h:22
static void SetLocalTransform(TransformComponent &component, const glm::mat4 &local)
static void BeginFrame()
static bool Manipulate(const glm::mat4 &view, const glm::mat4 &projection, int operation, glm::mat4 &worldTransform, bool local=false)
static void DecomposeTransform(const glm::mat4 &transform, glm::vec3 &position, glm::vec3 &rotationDegrees, glm::vec3 &scale)