![]() |
Lysa
0.0
Lysa 3D Engine
|
A Mesh surface, with counterclockwise triangles
Public Member Functions | |
| MeshSurface (uint32 firstIndex, uint32 count) | |
| bool | operator== (const MeshSurface &other) const |
Public Attributes | |
| uint32 | firstIndex {0} |
| Index of the first vertex index of the surface. More... | |
| uint32 | indexCount {0} |
| Number of vertices. More... | |
| unique_id | material {INVALID_ID} |
| Material. More... | |
Friends | |
| bool | operator== (const std::shared_ptr< MeshSurface > &a, const std::shared_ptr< MeshSurface > &b) |
Constructs a surface with the given index range.
| firstIndex | Index of the first element in the global index buffer. |
| count | Number of indices belonging to this surface. |
|
inline |
Compares two surfaces by index range and material.
|
friend |
Shared-pointer equality delegates to value equality.
| uint32 firstIndex {0} |
Index of the first vertex index of the surface.
| uint32 indexCount {0} |
Number of vertices.