|
lmgl 1.0.0
A lightweight OpenGL graphics engine library written in C++
|
Represents a single vertex in 3D space. More...
#include <mesh.hpp>
Public Member Functions | |
| Vertex (const glm::vec3 &pos=glm::vec3(0.0f), const glm::vec3 &norm=glm::vec3(0.0f, 1.0f, 0.0f), const glm::vec4 &col=glm::vec4(1.0f), const glm::vec2 &uv=glm::vec2(0.0f)) | |
| Constructor for the Vertex struct. | |
Represents a single vertex in 3D space.
The Vertex struct encapsulates the properties of a vertex, including its position, normal vector, color, and texture coordinates (UVs). This structure is commonly used in 3D graphics applications to define the attributes of vertices in a mesh.
|
inline |
Constructor for the Vertex struct.
Initializes a Vertex with specified position, normal, color, and UVs. Default values are provided for each attribute.
| pos | Position of the vertex (default is (0.0, 0.0, 0.0)). |
| norm | Normal vector at the vertex (default is (0.0, 1.0, 0.0)). |
| col | Color of the vertex (default is (1.0, 1.0, 1.0, 1.0)). |
| uv | Texture coordinates of the vertex (default is (0.0, 0.0)). |