|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The rotation that turns a card to a view. More...
#include "../../core/Types.hpp"#include "../../math/Math.hpp"#include <glm/gtc/quaternion.hpp>#include <cmath>

Go to the source code of this file.
Classes | |
| struct | esengine::billboard::ViewAxes |
| The view's right, up and toward-the-viewer axes in the world, read off its view-projection. More... | |
Namespaces | |
| namespace | esengine |
| namespace | esengine::billboard |
Functions | |
| ViewAxes | esengine::billboard::viewAxes (const glm::mat4 &viewProjection) |
| The axes a view looks along. | |
| glm::quat | esengine::billboard::facing (i32 mode, const glm::mat4 &viewProjection, const glm::vec4 &eye, const glm::vec3 &position) |
The rotation a card standing at position is drawn with in this view. | |
The rotation that turns a card to a view.
Header-only and free of the renderer: a view-projection, the view's eye and where the card stands are the whole input, so the arithmetic can be held against its claims without a device.
Definition in file BillboardFacing.hpp.