vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
axes.h
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace Vkm::Engine::Math {
6
18inline const glm::vec3 WORLD_AXIS_X = {1.0f, 0.0f, 0.0f};
19inline const glm::vec3 WORLD_AXIS_Y = {0.0f, 1.0f, 0.0f};
20inline const glm::vec3 WORLD_AXIS_Z = {0.0f, 0.0f, 1.0f};
21
22// Written out, not copied from the axes: glm is not constexpr with intrinsics, and
23// Clang on Windows would run the copy before the axis is set.
24inline const glm::vec3 WORLD_UP = {0.0f, 1.0f, 0.0f};
25inline const glm::vec3 WORLD_FORWARD = {0.0f, 0.0f, -1.0f};
26inline const glm::vec3 WORLD_RIGHT = {1.0f, 0.0f, 0.0f};
27
28} // namespace Vkm::Engine::Math