|
cangine
|
#include <array>#include "../util/color.hpp"#include "../types/vector3.hpp"#include "vertex.hpp"#include "rectangle.hpp"

Go to the source code of this file.
Classes | |
| struct | cangine::Triangle |
| A triangle defined by three vertices. More... | |
Namespaces | |
| namespace | cangine |
Functions | |
| Triangle | cangine::makeTriangle (const Vector3 &a, const Vector3 &b, const Vector3 &c, const Color &color) noexcept |
| Builds a triangle from three positions sharing a single color. | |
| std::array< Triangle, 2 > | cangine::rectToTriangle (const Rectangle &r) noexcept |
| Splits a rectangle into the two triangles that cover it. | |