libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
mx::Vertex Struct Reference

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).

Detailed Description

Per-vertex data sent to the Vulkan vertex buffer.

Definition at line 34 of file model.cpp.

Member Function Documentation

◆ operator==()

bool mx::Vertex::operator== ( const Vertex & other) const
inline

Definition at line 39 of file model.cpp.

References normal, position, and texCoord.

Member Data Documentation

◆ normal

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==().

◆ pos

float mx::Vertex::pos[3]

3-D position (x, y, z).

Definition at line 63 of file vk.hpp.

◆ position

float mx::Vertex::position[3]

Definition at line 35 of file model.cpp.

Referenced by mx::Mesh::compressIndices(), mx::VertexHash::operator()(), and operator==().

◆ texCoord

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==().


The documentation for this struct was generated from the following files: