Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRender2DTuning::Ball Struct Referencefinal

#include <match_render_2d_tuning.h>

Static Public Attributes

static constexpr float RADIUS_METRES = 0.36f
 
static constexpr float MIN_RADIUS_PIXELS = 2.5f
 
static constexpr float LIFT_SHARE = 0.5f
 
static constexpr float GROWTH_PER_METRE = 0.035f
 
static constexpr float SHADOW_GROWTH = 0.16f
 
static constexpr float SHADOW_FADE = 0.3f
 
static constexpr std::uint8_t SHADOW_ALPHA = 120
 
static constexpr float SHADOW_SLIDE = 0.22f
 
static constexpr float TRAIL_SECONDS = 0.22f
 
static constexpr float TRAIL_MIN_SPEED = 7.0f
 
static constexpr int TRAIL_SAMPLES = 10
 
static constexpr float JUMP_METRES = 20.0f
 
static constexpr ImU32 COLOR = IM_COL32(250, 250, 252, 255)
 
static constexpr ImU32 OUTLINE_COLOR = IM_COL32(20, 24, 30, 200)
 
static constexpr ImU32 PATCH_COLOR = IM_COL32(36, 40, 50, 255)
 
static constexpr ImU32 TRAIL_COLOR = IM_COL32(255, 255, 255, 120)
 

Member Data Documentation

◆ COLOR

constexpr ImU32 MatchRender2DTuning::Ball::COLOR = IM_COL32(250, 250, 252, 255)
staticconstexpr

◆ GROWTH_PER_METRE

constexpr float MatchRender2DTuning::Ball::GROWTH_PER_METRE = 0.035f
staticconstexpr

Apparent growth per metre of height (closer to the eye).

◆ JUMP_METRES

constexpr float MatchRender2DTuning::Ball::JUMP_METRES = 20.0f
staticconstexpr

A drawn ball moving further in one frame has jumped (a restart or a playback skip): trails and paths are dropped.

◆ LIFT_SHARE

constexpr float MatchRender2DTuning::Ball::LIFT_SHARE = 0.5f
staticconstexpr

A lifted ball is drawn this share of its height up the screen.

◆ MIN_RADIUS_PIXELS

constexpr float MatchRender2DTuning::Ball::MIN_RADIUS_PIXELS = 2.5f
staticconstexpr

◆ OUTLINE_COLOR

constexpr ImU32 MatchRender2DTuning::Ball::OUTLINE_COLOR = IM_COL32(20, 24, 30, 200)
staticconstexpr

◆ PATCH_COLOR

constexpr ImU32 MatchRender2DTuning::Ball::PATCH_COLOR = IM_COL32(36, 40, 50, 255)
staticconstexpr

◆ RADIUS_METRES

constexpr float MatchRender2DTuning::Ball::RADIUS_METRES = 0.36f
staticconstexpr

Drawn larger than life (0.22 m) so it stays readable.

◆ SHADOW_ALPHA

constexpr std::uint8_t MatchRender2DTuning::Ball::SHADOW_ALPHA = 120
staticconstexpr

◆ SHADOW_FADE

constexpr float MatchRender2DTuning::Ball::SHADOW_FADE = 0.3f
staticconstexpr

◆ SHADOW_GROWTH

constexpr float MatchRender2DTuning::Ball::SHADOW_GROWTH = 0.16f
staticconstexpr

◆ SHADOW_SLIDE

constexpr float MatchRender2DTuning::Ball::SHADOW_SLIDE = 0.22f
staticconstexpr

Sun from the top left: the shadow slides this far per metre.

◆ TRAIL_COLOR

constexpr ImU32 MatchRender2DTuning::Ball::TRAIL_COLOR = IM_COL32(255, 255, 255, 120)
staticconstexpr

◆ TRAIL_MIN_SPEED

constexpr float MatchRender2DTuning::Ball::TRAIL_MIN_SPEED = 7.0f
staticconstexpr

◆ TRAIL_SAMPLES

constexpr int MatchRender2DTuning::Ball::TRAIL_SAMPLES = 10
staticconstexpr

◆ TRAIL_SECONDS

constexpr float MatchRender2DTuning::Ball::TRAIL_SECONDS = 0.22f
staticconstexpr

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