Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
TransformUtils.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <glm/glm.hpp>
4
5
#include <
Components/TransformComponent.hpp
>
6
#include <
ECS/RegistryViewer.hpp
>
7
8
namespace
shkyera::utils::transform
{
9
10
glm::mat4
getRotationMatrix
(
const
TransformComponent& transform);
11
glm::mat4
getTransformMatrix
(
const
TransformComponent& transform);
12
glm::mat4
getGlobalTransformMatrix
(
Entity
entity,
const
RegistryViewer& viewer);
13
glm::mat4
getCameraFacingModelMatrix
(
const
glm::mat4& baseModelMatrix,
const
glm::vec3& cameraPosition,
14
const
glm::mat4& viewMatrix);
15
16
}
// namespace shkyera::utils::transform
RegistryViewer.hpp
TransformComponent.hpp
shkyera::utils::transform
Definition
TransformUtils.cpp:4
shkyera::utils::transform::getCameraFacingModelMatrix
glm::mat4 getCameraFacingModelMatrix(const glm::mat4 &baseMatrix, const glm::vec3 &cameraPosition, const glm::mat4 &viewMatrix)
Definition
TransformUtils.cpp:43
shkyera::utils::transform::getTransformMatrix
glm::mat4 getTransformMatrix(const TransformComponent &transform)
Definition
TransformUtils.cpp:14
shkyera::utils::transform::getGlobalTransformMatrix
glm::mat4 getGlobalTransformMatrix(Entity entity, const RegistryViewer &viewer)
Definition
TransformUtils.cpp:22
shkyera::utils::transform::getRotationMatrix
glm::mat4 getRotationMatrix(const TransformComponent &transform)
Definition
TransformUtils.cpp:6
shkyera::Entity
uint32_t Entity
Definition
Entity.hpp:7
src
Utils
TransformUtils.hpp
Generated by
1.9.8
Franciszek Szewczyk © 2023