|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Where parallax is measured from, when it is not the camera drawing the frame. More...
#include <RenderTypePlugin.hpp>
Public Attributes | |
| bool | set = false |
| glm::dvec2 | at {0.0} |
Where parallax is measured from, when it is not the camera drawing the frame.
A parallax layer is placed by where the camera is, which is the game's camera in a game. The editor draws the scene through its own eye, and measuring from that made layers slide whenever the view panned or zoomed, while moving the game's camera moved nothing. The editor sets this to the game camera's centre (or to the world origin, where layers sit as authored); a game leaves it unset. World units; one anchor serves every collect of the frame, so it is set between frames.
Definition at line 142 of file RenderTypePlugin.hpp.
| glm::dvec2 esengine::ParallaxAnchor::at {0.0} |
Definition at line 144 of file RenderTypePlugin.hpp.
Referenced by esengine::computeCameraView().
| bool esengine::ParallaxAnchor::set = false |
Definition at line 143 of file RenderTypePlugin.hpp.
Referenced by esengine::computeCameraView().