Nameless Engine
Loading...
Searching...
No Matches
ne::MeshVertex Struct Reference

#include <MeshNode.h>

Public Member Functions

 MeshVertex (const MeshVertex &)=default
 
MeshVertexoperator= (const MeshVertex &)=default
 
 MeshVertex (MeshVertex &&) noexcept=default
 
MeshVertexoperator= (MeshVertex &&) noexcept=default
 
bool operator== (const MeshVertex &other) const
 

Public Attributes

glm::vec3 position = glm::vec3(0.0f, 0.0f, 0.0f)
 
glm::vec3 normal = glm::vec3(0.0f, 0.0f, 0.0f)
 
glm::vec2 uv = glm::vec2(0.0f, 0.0f)
 

Detailed Description

Vertex of a mesh.

Remarks
Equal to the vertex struct we use in shaders.

Constructor & Destructor Documentation

◆ MeshVertex() [1/2]

ne::MeshVertex::MeshVertex ( const MeshVertex )
default

Copy constructor.

◆ MeshVertex() [2/2]

ne::MeshVertex::MeshVertex ( MeshVertex &&  )
defaultnoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

MeshVertex & ne::MeshVertex::operator= ( const MeshVertex )
default

Copy assignment.

Returns
This.

◆ operator=() [2/2]

MeshVertex & ne::MeshVertex::operator= ( MeshVertex &&  )
defaultnoexcept

Move assignment.

Returns
This.

◆ operator==()

bool ne::MeshVertex::operator== ( const MeshVertex other) const

Equality operator.

Parameters
otherOther object.
Returns
Whether objects are equal or not.

Member Data Documentation

◆ normal

glm::vec3 ne::MeshVertex::normal = glm::vec3(0.0f, 0.0f, 0.0f)

Normal vector of the vertex.

◆ position

glm::vec3 ne::MeshVertex::position = glm::vec3(0.0f, 0.0f, 0.0f)

Position of the vertex in a 3D space.

◆ uv

glm::vec2 ne::MeshVertex::uv = glm::vec2(0.0f, 0.0f)

UV coordinates of the vertex.


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