StevEngine
StevEngine is a customizable C++ game engine.
Loading...
Searching...
No Matches
Vertex Struct Reference

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.
 

Detailed Description

3D mesh vertex data structure

Contains position, texture coordinates, normal, and tangent data for a single vertex in a 3D mesh.

Constructor & Destructor Documentation

◆ Vertex()

StevEngine::Utilities::Vertex::Vertex ( Vector3 position,
Vector2 uv,
Vector3 normal,
Vector3 tangent )
inline

Create vertex with all attributes.

Parameters
positionVertex position
uvTexture coordinates
normalSurface normal
tangentTangent vector

Member Function Documentation

◆ operator==()

bool StevEngine::Utilities::Vertex::operator== ( const Vertex o) const

Compare vertices for equality.

Parameters
oOther vertex
Returns
true if all attributes match

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