Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRender3DTuning::Number Struct Referencefinal

#include <match_render_3d_tuning.h>

Static Public Attributes

static constexpr float HEIGHT = 0.27f
 
static constexpr float CENTRE_UP = 0.3f
 
static constexpr float NAME_HEIGHT = 0.065f
 
static constexpr float NAME_GAP = 0.02f
 
static constexpr float MIN_PIXELS = 5.0f
 
static constexpr float NAME_MIN_PIXELS = 7.5f
 
static constexpr float MIN_FONT_SIZE = 6.0f
 
static constexpr float MAX_FONT_SIZE = 96.0f
 
static constexpr float FONT_STEP = 1.25f
 
static constexpr float MIN_FACING = 0.2f
 
static constexpr float WEIGHT = 0.045f
 

Detailed Description

Shirt numbers (and names) on the players' backs.

Member Data Documentation

◆ CENTRE_UP

constexpr float MatchRender3DTuning::Number::CENTRE_UP = 0.3f
staticconstexpr

◆ FONT_STEP

constexpr float MatchRender3DTuning::Number::FONT_STEP = 1.25f
staticconstexpr

◆ HEIGHT

constexpr float MatchRender3DTuning::Number::HEIGHT = 0.27f
staticconstexpr

Printed digit height and where it sits up the back (metres).

◆ MAX_FONT_SIZE

constexpr float MatchRender3DTuning::Number::MAX_FONT_SIZE = 96.0f
staticconstexpr

◆ MIN_FACING

constexpr float MatchRender3DTuning::Number::MIN_FACING = 0.2f
staticconstexpr

The back must face the camera at least this much (cosine).

◆ MIN_FONT_SIZE

constexpr float MatchRender3DTuning::Number::MIN_FONT_SIZE = 6.0f
staticconstexpr

◆ MIN_PIXELS

constexpr float MatchRender3DTuning::Number::MIN_PIXELS = 5.0f
staticconstexpr

Smallest projected digit (px) worth drawing; names need more.

◆ NAME_GAP

constexpr float MatchRender3DTuning::Number::NAME_GAP = 0.02f
staticconstexpr

◆ NAME_HEIGHT

constexpr float MatchRender3DTuning::Number::NAME_HEIGHT = 0.065f
staticconstexpr

◆ NAME_MIN_PIXELS

constexpr float MatchRender3DTuning::Number::NAME_MIN_PIXELS = 7.5f
staticconstexpr

◆ WEIGHT

constexpr float MatchRender3DTuning::Number::WEIGHT = 0.045f
staticconstexpr

Stroke thickness of the heavy digits as a share of their height.


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