64 return static_cast<std::size_t
>(
91inline constexpr std::byte
HOME_FAN = std::byte{1} << 0U;
92inline constexpr std::byte
AWAY_FAN = std::byte{1} << 1U;
97inline constexpr std::byte
SCARF = std::byte{1} << 4U;
189 std::array<NetPanel, 4>
nets{};
201inline constexpr std::array<SponsorStyle, 8>
SPONSORS{{
202 {
"KESTRELINE", IM_COL32(18, 70, 150, 255), IM_COL32(255, 255, 255, 255)},
203 {
"VOLTRIX", IM_COL32(236, 196, 30, 255), IM_COL32(20, 20, 24, 255)},
204 {
"ORBANO TELECOM", IM_COL32(200, 30, 48, 255),
205 IM_COL32(255, 255, 255, 255)},
206 {
"PINEFORGE", IM_COL32(16, 110, 70, 255), IM_COL32(240, 250, 240, 255)},
207 {
"AQUALYNE", IM_COL32(20, 170, 200, 255), IM_COL32(10, 30, 60, 255)},
208 {
"SOLENTA", IM_COL32(245, 245, 245, 255), IM_COL32(220, 70, 20, 255)},
209 {
"BRIGHTWELL", IM_COL32(30, 30, 36, 255), IM_COL32(250, 210, 60, 255)},
210 {
"TORVANA", IM_COL32(120, 40, 150, 255), IM_COL32(255, 255, 255, 255)},
214inline constexpr std::array<std::array<std::uint8_t, 4>, 6>
BOX_FACES{{
231 std::vector<GroundPolygon>
wear;
const MatchKits & kits
Definition match_stadium_3d.cpp:446
constexpr std::byte CHEERS_AWAY
Definition match_stadium_3d.h:95
constexpr std::byte HOME_FAN
Definition match_stadium_3d.h:91
constexpr std::byte SCARF
Definition match_stadium_3d.h:97
constexpr std::byte CHEERS_HOME
Definition match_stadium_3d.h:94
constexpr std::byte AWAY_FAN
Definition match_stadium_3d.h:92
Definition match_stadium_3d.cpp:19
Box makeAxisBox(Vec3 minimum, Vec3 maximum, ImU32 color)
Definition match_stadium_3d.cpp:1061
constexpr std::array< SponsorStyle, 8 > SPONSORS
Definition match_stadium_3d.h:201
constexpr std::array< std::array< std::uint8_t, 4 >, 6 > BOX_FACES
Definition match_stadium_3d.h:214
Side
Definition match_stadium_3d.h:145
constexpr std::size_t CROWD_PHASES
Definition match_stadium_3d.h:86
std::int64_t minimum
Definition runtime_editor_validation.cpp:46
std::string_view column
Definition runtime_editor_validation.cpp:45
std::int64_t maximum
Definition runtime_editor_validation.cpp:47
Definition match_kit_colors.h:31
Definition match_render_math.h:32
Definition match_stadium_3d.h:164
std::uint8_t sponsor
Definition match_stadium_3d.h:168
Vec3 right
Definition match_stadium_3d.h:166
Vec3 normal
Definition match_stadium_3d.h:167
Vec3 origin
Definition match_stadium_3d.h:165
Definition match_stadium_3d.h:173
ImU32 color
Definition match_stadium_3d.h:175
std::array< Vec3, 8 > corners
Definition match_stadium_3d.h:174
Definition match_stadium_3d.h:130
float halfWidth
Definition match_stadium_3d.h:133
ImU32 color
Definition match_stadium_3d.h:135
std::byte flags
Definition match_stadium_3d.h:139
Vec3 top
Definition match_stadium_3d.h:132
std::uint8_t phase
Definition match_stadium_3d.h:140
std::uint32_t dotBegin
Definition match_stadium_3d.h:136
std::uint32_t dotEnd
Definition match_stadium_3d.h:137
Vec3 base
Definition match_stadium_3d.h:131
Definition match_stadium_3d.h:102
std::byte flags
Definition match_stadium_3d.h:106
ImU32 body
Definition match_stadium_3d.h:104
std::uint8_t phase
Definition match_stadium_3d.h:108
Vec3 base
Definition match_stadium_3d.h:103
ImU32 head
Definition match_stadium_3d.h:105
Definition match_stadium_3d.h:113
Vec3 along
Definition match_stadium_3d.h:115
ImU32 secondary
Definition match_stadium_3d.h:117
Vec3 base
Definition match_stadium_3d.h:114
ImU32 primary
Definition match_stadium_3d.h:116
std::uint8_t phase
Definition match_stadium_3d.h:119
std::byte flags
Definition match_stadium_3d.h:118
Definition match_stadium_3d.h:71
std::array< ImU32, 4 > colors
Definition match_stadium_3d.h:73
std::array< Vec3, 4 > corners
Definition match_stadium_3d.h:72
std::uint32_t flagEnd
Definition match_stadium_3d.h:80
Vec3 normal
Definition match_stadium_3d.h:74
ImU32 glow
Definition match_stadium_3d.h:82
std::uint32_t clumpBegin
Definition match_stadium_3d.h:76
std::uint32_t clumpEnd
Definition match_stadium_3d.h:77
std::uint32_t flagBegin
Definition match_stadium_3d.h:79
Definition match_stadium_3d.h:227
std::array< Vec3, 4 > cornerFlags
Definition match_stadium_3d.h:240
std::array< Goal, 2 > goals
Definition match_stadium_3d.h:239
std::vector< GroundPolygon > ground
Definition match_stadium_3d.h:228
std::vector< GroundPolygon > wear
Definition match_stadium_3d.h:231
std::vector< GroundPolygon > markings
Definition match_stadium_3d.h:232
std::vector< CrowdClump > clumps
Definition match_stadium_3d.h:236
std::vector< AdBoard > boards
Definition match_stadium_3d.h:238
void build(const MatchKits &kits, bool daylightView=false)
Definition match_stadium_3d.cpp:1097
std::vector< CrowdDot > crowd
Definition match_stadium_3d.h:235
bool inStandShadow(Vec3 point) const
Definition match_stadium_3d.cpp:1074
bool day
Definition match_stadium_3d.h:242
std::vector< Face > faces
Definition match_stadium_3d.h:233
std::vector< CrowdFlag > flags
Definition match_stadium_3d.h:237
std::vector< Section > sections
Definition match_stadium_3d.h:234
PitchGrid pitch
Definition match_stadium_3d.h:229
std::vector< GroundPolygon > standShadows
Definition match_stadium_3d.h:245
std::vector< std::array< Vec3, 4 > > shadowAreas
Definition match_stadium_3d.h:246
Definition match_stadium_3d.h:187
std::array< std::array< Vec3, 2 >, 2 > supports
Definition match_stadium_3d.h:190
std::array< NetPanel, 4 > nets
Definition match_stadium_3d.h:189
std::array< Box, 3 > frame
Definition match_stadium_3d.h:188
Definition match_stadium_3d.h:40
std::array< Vec3, 10 > points
Definition match_stadium_3d.h:41
std::uint8_t count
Definition match_stadium_3d.h:43
std::array< ImU32, 10 > colors
Definition match_stadium_3d.h:42
Definition match_stadium_3d.h:180
std::array< Vec3, 4 > corners
Definition match_stadium_3d.h:181
std::uint8_t columns
Definition match_stadium_3d.h:183
std::uint8_t rows
Definition match_stadium_3d.h:182
Definition match_stadium_3d.h:54
int columnVertices() const
Definition match_stadium_3d.h:61
int rows
Definition match_stadium_3d.h:57
std::vector< Vec3 > points
Definition match_stadium_3d.h:58
std::vector< ImU32 > colors
Definition match_stadium_3d.h:59
int stripes
Definition match_stadium_3d.h:55
int columnsPerStripe
Definition match_stadium_3d.h:56
std::size_t index(int stripe, int column, int row) const
Definition match_stadium_3d.h:62
Definition match_stadium_3d.h:155
std::uint32_t faceEnd
Definition match_stadium_3d.h:157
std::uint32_t faceBegin
Definition match_stadium_3d.h:156
Side side
Definition match_stadium_3d.h:159
Vec3 centre
Definition match_stadium_3d.h:158