vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
world_transform.h
1#pragma once
2
3#include <glm/glm.hpp>
4#include <glm/gtc/quaternion.hpp>
5
6#include "ecs/entity.h"
7
8namespace Vkm::Engine {
9
10class Scene;
11struct Transform;
12
20 glm::mat4 model = glm::mat4(1.0f);
21};
22
36glm::mat4 resolvedWorldMatrix(const Scene& scene, EntityId entity, const Transform& local);
37
48glm::vec3 resolvedWorldPosition(const Scene& scene, EntityId entity, const Transform& local);
49
61glm::quat resolvedWorldRotation(const Scene& scene, EntityId entity, const Transform& local);
62
74glm::vec3 resolvedWorldScale(const Scene& scene, EntityId entity, const Transform& local);
75
76} // namespace Vkm::Engine
Central registry managing entities and an open set of component types.
Definition scene.h:29
Names one entity of one Scene, for as long as that slot holds it.
Definition entity.h:23
Local position, rotation and scale of an entity.
Definition transform.h:17
Cached world-space model matrix for entities in a hierarchy.
Definition world_transform.h:19