summaryrefslogtreecommitdiff
path: root/assetFactory/plane.cpp
blob: 28fb6903e31094b0a15508802003acc5d4558748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "plane.h"
#include "modelFactoryMesh.h"

Plane::CreatedFaces
Plane::createMesh(ModelFactoryMesh & mesh, float) const
{
	static constexpr std::array<Position3D, 4> VERTICES {{
			{n, n, z},
			{y, n, z},
			{y, y, z},
			{n, y, z},
	}};

	return {mesh.add_namedFace("plane", addToMesh(mesh, VERTICES))};
}