sgltk 0.6
Simple OpenGL Tool Kit
Loading...
Searching...
No Matches
sgltk::Vertex Struct Reference

A basic vertex structure. More...

#include <mesh.h>

Public Member Functions

 Vertex (glm::vec3 p, glm::vec3 n)
 Vertex (glm::vec3 p, glm::vec3 n, glm::vec3 tc)
 Vertex (glm::vec3 p, glm::vec3 n, glm::vec3 t, glm::vec3 tc)
 Vertex (glm::vec3 p, glm::vec3 n, glm::vec3 t, glm::vec4 c, glm::vec3 tc)

Public Attributes

glm::vec4 position
 Vertex position.
glm::vec3 normal
 Vertex normal.
glm::vec4 tangent
 Vertex tangent.
glm::vec4 bitangent
 Vertex bi-tangent.
glm::vec4 color
 Vertex color.
glm::vec3 tex_coord
 Vertex texture coordinates.

Detailed Description

A basic vertex structure.

Definition at line 16 of file mesh.h.

Constructor & Destructor Documentation

◆ Vertex() [1/5]

sgltk::Vertex::Vertex ( )
inline

Definition at line 42 of file mesh.h.

◆ Vertex() [2/5]

sgltk::Vertex::Vertex ( glm::vec3 p,
glm::vec3 n )
inline
Parameters
pVertex position
nVertex normal

Definition at line 58 of file mesh.h.

◆ Vertex() [3/5]

sgltk::Vertex::Vertex ( glm::vec3 p,
glm::vec3 n,
glm::vec3 tc )
inline
Parameters
pVertex position
nVertex normal
tcTexture coordinates

Definition at line 77 of file mesh.h.

◆ Vertex() [4/5]

sgltk::Vertex::Vertex ( glm::vec3 p,
glm::vec3 n,
glm::vec3 t,
glm::vec3 tc )
inline
Parameters
pVertex position
nVertex normal
tVertex tangent
tcTexture coordinates

Definition at line 97 of file mesh.h.

◆ Vertex() [5/5]

sgltk::Vertex::Vertex ( glm::vec3 p,
glm::vec3 n,
glm::vec3 t,
glm::vec4 c,
glm::vec3 tc )
inline
Parameters
pVertex position
nVertex normal
tVertex tangent
cVertex color
tcTexture coordinates

Definition at line 118 of file mesh.h.

Member Data Documentation

◆ bitangent

glm::vec4 sgltk::Vertex::bitangent

Vertex bi-tangent.

Definition at line 32 of file mesh.h.

◆ color

glm::vec4 sgltk::Vertex::color

Vertex color.

Definition at line 36 of file mesh.h.

◆ normal

glm::vec3 sgltk::Vertex::normal

Vertex normal.

Definition at line 24 of file mesh.h.

◆ position

glm::vec4 sgltk::Vertex::position

Vertex position.

Definition at line 20 of file mesh.h.

◆ tangent

glm::vec4 sgltk::Vertex::tangent

Vertex tangent.

Definition at line 28 of file mesh.h.

◆ tex_coord

glm::vec3 sgltk::Vertex::tex_coord

Vertex texture coordinates.

Definition at line 40 of file mesh.h.


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