|
Aegis2D
Modular C++26 2D game engine for networked games
|
One layer of a starfield: stars at one depth. More...
#include <aegis2d/render/starfield.hpp>
Public Attributes | |
| std::size_t | count = 100 |
| Number of stars. | |
| float | speed = 60.0F |
| Scroll speed, in logical pixels per second, to the left (negative: to the right). Far layers scroll slower than near ones: that difference is the parallax. | |
| float | size = 1.0F |
| Side of a star, in logical pixels. | |
| Color | color {.r = 0.5F, .g = 0.5F, .b = 0.63F, .a = 1.0F} |
| Color of the stars. | |
One layer of a starfield: stars at one depth.
| Color aegis2d::render::StarLayer::color {.r = 0.5F, .g = 0.5F, .b = 0.63F, .a = 1.0F} |
Color of the stars.
| std::size_t aegis2d::render::StarLayer::count = 100 |
Number of stars.
| float aegis2d::render::StarLayer::size = 1.0F |
Side of a star, in logical pixels.
| float aegis2d::render::StarLayer::speed = 60.0F |
Scroll speed, in logical pixels per second, to the left (negative: to the right). Far layers scroll slower than near ones: that difference is the parallax.