|
libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
|
Per-vertex data sent to the Vulkan vertex buffer. More...
#include <vk.hpp>
Public Member Functions | |
| bool | operator== (const Vertex &other) const |
Public Attributes | |
| float | position [3] |
| float | normal [3] |
| Surface normal vector. | |
| float | texCoord [2] |
| UV texture coordinates. | |
| float | pos [3] |
| 3-D position (x, y, z). | |
|
inline |
| float mx::Vertex::normal |
Surface normal vector.
Definition at line 36 of file model.cpp.
Referenced by mx::Mesh::compressIndices(), mx::VertexHash::operator()(), and operator==().
| float mx::Vertex::position[3] |
Definition at line 35 of file model.cpp.
Referenced by mx::Mesh::compressIndices(), mx::VertexHash::operator()(), and operator==().
| float mx::Vertex::texCoord |
UV texture coordinates.
Definition at line 37 of file model.cpp.
Referenced by mx::Mesh::compressIndices(), mx::VertexHash::operator()(), and operator==().