Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Member Functions | Public Attributes | List of all members
jop::Vertex Class Reference

#include <Vertex.hpp>

Public Member Functions

 Vertex ()=default
 Default constructor. More...
 
 Vertex (const glm::vec3 &pos)
 Construct the vertex from its position. More...
 
 Vertex (const glm::vec3 &pos, const glm::vec2 &tc)
 Construct the vertex from its position and texture coordinates. More...
 
 Vertex (const glm::vec3 &pos, const glm::vec3 &nor)
 Construct the vertex from its position and normal vector. More...
 
 Vertex (const glm::vec3 &pos, const glm::vec2 &tc, const glm::vec3 &nor)
 Construct the vertex from its position, texture coordinates and normal vector. More...
 

Public Attributes

glm::vec3 position
 3D position of the vertex More...
 
glm::vec2 texCoords
 Coordinates of the texture's pixel to map to vertex. More...
 
glm::vec3 normal
 Normal vector of the vertex. More...
 

Detailed Description

Definition at line 35 of file Vertex.hpp.

Constructor & Destructor Documentation

jop::Vertex::Vertex ( )
default

Default constructor.

jop::Vertex::Vertex ( const glm::vec3 &  pos)

Construct the vertex from its position.

Parameters
posVertex position
jop::Vertex::Vertex ( const glm::vec3 &  pos,
const glm::vec2 &  tc 
)

Construct the vertex from its position and texture coordinates.

Parameters
posVertex position
tcVertex texture coordinates
jop::Vertex::Vertex ( const glm::vec3 &  pos,
const glm::vec3 &  nor 
)

Construct the vertex from its position and normal vector.

Parameters
posVertex position
norVertex normal vector
jop::Vertex::Vertex ( const glm::vec3 &  pos,
const glm::vec2 &  tc,
const glm::vec3 &  nor 
)

Construct the vertex from its position, texture coordinates and normal vector.

Parameters
posVertex position
tcVertex texture coordinates
norVertex normal vector

Member Data Documentation

glm::vec3 jop::Vertex::normal

Normal vector of the vertex.

Definition at line 73 of file Vertex.hpp.

glm::vec3 jop::Vertex::position

3D position of the vertex

Definition at line 71 of file Vertex.hpp.

glm::vec2 jop::Vertex::texCoords

Coordinates of the texture's pixel to map to vertex.

Definition at line 72 of file Vertex.hpp.


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