Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::render::StarLayer Struct Reference

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.
 

Detailed Description

One layer of a starfield: stars at one depth.

Member Data Documentation

◆ color

Color aegis2d::render::StarLayer::color {.r = 0.5F, .g = 0.5F, .b = 0.63F, .a = 1.0F}

Color of the stars.

◆ count

std::size_t aegis2d::render::StarLayer::count = 100

Number of stars.

◆ size

float aegis2d::render::StarLayer::size = 1.0F

Side of a star, in logical pixels.

◆ speed

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.


The documentation for this struct was generated from the following file: