vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
axes.h
1#pragma once
2
3#include <cstdint>
4
5#include <glm/glm.hpp>
6
7namespace Vkm::Engine::Math {
8
20inline const glm::vec3 WORLD_AXIS_X = {1.0f, 0.0f, 0.0f};
21inline const glm::vec3 WORLD_AXIS_Y = {0.0f, 1.0f, 0.0f};
22inline const glm::vec3 WORLD_AXIS_Z = {0.0f, 0.0f, 1.0f};
23
24// Written out, not copied from the axes: glm is not constexpr with intrinsics, and
25// Clang on Windows would run the copy before the axis is set.
26inline const glm::vec3 WORLD_UP = {0.0f, 1.0f, 0.0f};
27inline const glm::vec3 WORLD_FORWARD = {0.0f, 0.0f, -1.0f};
28inline const glm::vec3 WORLD_RIGHT = {1.0f, 0.0f, 0.0f};
29
31struct AxisColor {
32 uint8_t r;
33 uint8_t g;
34 uint8_t b;
35};
36
44inline constexpr AxisColor AXIS_COLORS[3] = {
45 {220, 60, 60},
46 { 80, 190, 60},
47 { 60, 100, 220},
48};
49
50} // namespace Vkm::Engine::Math
An axis's colour as the display shows it: 8-bit sRGB.
Definition axes.h:31