Player12
An open source football management simulator
Loading...
Searching...
No Matches
Stadium3D::CrowdClump Struct Reference

#include <match_stadium_3d.h>

Public Attributes

Vec3 base
 
Vec3 top
 
float halfWidth = 0.0f
 
ImU32 color = 0
 
std::uint32_t dotBegin = 0
 
std::uint32_t dotEnd = 0
 
std::byte flags {}
 
std::uint8_t phase = 0
 

Detailed Description

A few neighbouring spectators (up to CLUMP_SEATS x CLUMP_ROWS) drawn as one quad when they are far away. The quad runs up the tier from the front row to the heads of the next clump's front row, so clumps tile the stand without gaps from any angle. Members are stored back row first so nearer rows overlap the ones behind them.

Member Data Documentation

◆ base

Vec3 Stadium3D::CrowdClump::base

Bottom centre on the front row.

◆ color

ImU32 Stadium3D::CrowdClump::color = 0

Average colour of the members (the far-away look).

◆ dotBegin

std::uint32_t Stadium3D::CrowdClump::dotBegin = 0

◆ dotEnd

std::uint32_t Stadium3D::CrowdClump::dotEnd = 0

◆ flags

std::byte Stadium3D::CrowdClump::flags {}

CHEERS_* bits held by most members (the far clump hops with them).

◆ halfWidth

float Stadium3D::CrowdClump::halfWidth = 0.0f

◆ phase

std::uint8_t Stadium3D::CrowdClump::phase = 0

◆ top

Vec3 Stadium3D::CrowdClump::top

Top centre, over the row behind the clump.


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