#include <match_stadium_3d.h>
◆ build()
| void Stadium3D::Geometry::build |
( |
const MatchKits & |
kits, |
|
|
bool |
daylightView = false |
|
) |
| |
Rebuilds every static element; the crowd wears the given kits. The lighting is baked into the colours: floodlights at night, the sun (with the roofs' shadows) by day.
◆ inStandShadow()
| bool Stadium3D::Geometry::inStandShadow |
( |
Vec3 |
point | ) |
const |
Whether a ground point lies in a stand's shadow (always false at night).
◆ boards
| std::vector<AdBoard> Stadium3D::Geometry::boards |
◆ clumps
| std::vector<CrowdClump> Stadium3D::Geometry::clumps |
◆ cornerFlags
| std::array<Vec3, 4> Stadium3D::Geometry::cornerFlags {} |
◆ crowd
| std::vector<CrowdDot> Stadium3D::Geometry::crowd |
◆ day
| bool Stadium3D::Geometry::day = false |
Daylight build: sunlit and shaded stands, lamps off.
◆ faces
| std::vector<Face> Stadium3D::Geometry::faces |
◆ flags
| std::vector<CrowdFlag> Stadium3D::Geometry::flags |
◆ goals
| std::array<Goal, 2> Stadium3D::Geometry::goals {} |
◆ ground
◆ markings
◆ pitch
◆ sections
| std::vector<Section> Stadium3D::Geometry::sections |
◆ shadowAreas
| std::vector<std::array<Vec3, 4> > Stadium3D::Geometry::shadowAreas |
◆ standShadows
By day: the roofs' shadows on the ground (drawn over the grass) and the same areas as plain quads for testing who stands in them.
◆ wear
Soft worn patches (goalmouths, spots, centre) over the grass.
The documentation for this struct was generated from the following files: