|
StevEngine
StevEngine is a customizable C++ game engine.
|
3D mesh vertex data structure More...
#include <utilities/Vertex.hpp>
Public Member Functions | |
| Vertex (Vector3 position, Vector2 uv, Vector3 normal, Vector3 tangent) | |
| Create vertex with all attributes. | |
| Vertex () | |
| Create empty vertex. | |
| bool | operator== (const Vertex o) const |
| Compare vertices for equality. | |
Public Attributes | |
| Vector3 | position |
| Position in 3D space. | |
| Vector2 | uv |
| Texture coordinates. | |
| Vector3 | normal |
| Surface normal. | |
| Vector3 | tangent |
| Tangent vector for normal mapping. | |
3D mesh vertex data structure
Contains position, texture coordinates, normal, and tangent data for a single vertex in a 3D mesh.
|
inline |
Create vertex with all attributes.
| position | Vertex position |
| uv | Texture coordinates |
| normal | Surface normal |
| tangent | Tangent vector |
| bool StevEngine::Utilities::Vertex::operator== | ( | const Vertex | o | ) | const |
Compare vertices for equality.
| o | Other vertex |