|
Player12
An open source football management simulator
|
#include <match_stadium_3d.h>
Public Member Functions | |
| int | columnVertices () const |
| std::size_t | index (int stripe, int column, int row) const |
Public Attributes | |
| int | stripes = 0 |
| int | columnsPerStripe = 0 |
| int | rows = 0 |
| std::vector< Vec3 > | points |
| std::vector< ImU32 > | colors |
The playing surface as a vertex grid: each mowing stripe owns its columns of vertices (so stripes keep sharp edges) and every vertex carries its floodlit, gently mottled grass colour. The renderer only tints the two stripe directions per frame, since mown grass looks lighter when its blades lean away from the viewer.
|
inline |
|
inline |
| std::vector<ImU32> Stadium3D::PitchGrid::colors |
| int Stadium3D::PitchGrid::columnsPerStripe = 0 |
| std::vector<Vec3> Stadium3D::PitchGrid::points |
| int Stadium3D::PitchGrid::rows = 0 |
| int Stadium3D::PitchGrid::stripes = 0 |