A procedurally generated flat triangle in the XY plane, centered at the origin. The surface normal points toward +Z. The apex is at the top (+Y), the base spans the bottom (-Y). UV (0.5,0) is at the apex, (0,1) at the bottom-left corner, (1,1) at the bottom-right corner.
|
| | TriangleMesh (float width, float height, unique_id material, MeshAlignment alignment=MeshAlignment::CENTER, float xOffset=0.f, float yOffset=0.f, const std::string &name="TriangleMesh") |
| |
| | Mesh (const std::vector< Vertex > &vertices, const std::vector< uint32 > &indices, const std::vector< MeshSurface > &surfaces, const std::string &name) |
| |
| | Mesh (const std::string &name) |
| |
| | ~Mesh () override |
| |
| unique_id | getSurfaceMaterial (const uint32 surfaceIndex) const |
| |
| void | setSurfaceMaterial (uint32 surfaceIndex, unique_id material) |
| |
| std::vector< MeshSurface > & | getSurfaces () |
| |
| const std::vector< MeshSurface > & | getSurfaces () const |
| |
| std::vector< Vertex > & | getVertices () |
| |
| std::vector< uint32 > & | getIndices () |
| |
| const std::vector< Vertex > & | getVertices () const |
| |
| const std::vector< uint32 > & | getIndices () const |
| |
| const AABB & | getAABB () const |
| |
| bool | operator== (const Mesh &other) const |
| |
| auto | getMeshIndex () const |
| |
| auto | getVerticesIndex () const |
| |
| auto | getIndicesIndex () const |
| |
| auto | getSurfacesIndex () const |
| |
| auto & | getMaterials () |
| |
| const auto & | getMaterials () const |
| |
| void | buildAABB () |
| |
| constexpr const std::string & | getName () const |
| |
| | ManagedResource () = default |
| |
| | ManagedResource (UniqueResource &) = delete |
| |
| ManagedResource & | operator= (ManagedResource &) = delete |
| |
| bool | operator== (const Resource &other) const |
| |
| | Resource () = default |
| |
| | Resource (const unique_id id) |
| |
| virtual | ~Resource () = default |
| |