Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::Mesh::Vertex Struct Reference

#include <Mesh.hpp>

Public Member Functions

 Vertex (const glm::vec3 &pos, const glm::vec3 &norm, const glm::vec2 &tex)
 
 Vertex (const glm::vec3 &pos)
 
void calculateTangent ()
 

Public Attributes

glm::vec3 position
 
glm::vec3 normal
 
glm::vec3 tangent
 
glm::vec2 texcoord
 

Constructor & Destructor Documentation

◆ Vertex() [1/2]

shkyera::Mesh::Vertex::Vertex ( const glm::vec3 &  pos,
const glm::vec3 &  norm,
const glm::vec2 &  tex 
)
inline

◆ Vertex() [2/2]

shkyera::Mesh::Vertex::Vertex ( const glm::vec3 &  pos)
inline

Member Function Documentation

◆ calculateTangent()

void shkyera::Mesh::Vertex::calculateTangent ( )
inline

Member Data Documentation

◆ normal

glm::vec3 shkyera::Mesh::Vertex::normal

◆ position

glm::vec3 shkyera::Mesh::Vertex::position

◆ tangent

glm::vec3 shkyera::Mesh::Vertex::tangent

◆ texcoord

glm::vec2 shkyera::Mesh::Vertex::texcoord

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