Component to store vertices coords data.
More...
#include <Component.hpp>
|
std::vector< glm::vec3 > | getVertexCoords () const |
| Retrieves all mesh vertices coords.
|
void | setVertexCoords (const std::vector< glm::vec3 > &vertex) |
| Sets the vertices coords vector.
|
void | appendVertex (const std::vector< glm::vec3 > &vertex) |
| Add at the end of the vertices vector the given vertex.
|
std::vector< glm::vec3 > | getNormalsCoords () const |
| Retrieves all mesh normals coords.
|
void | setNormalsCoords (const std::vector< glm::vec3 > &normals) |
| Sets the vertices coords vector.
|
void | appendNormal (const std::vector< glm::vec3 > &normal) |
| Add at the end of the normal vector the given normal.
|
std::vector< glm::vec4 > | getColorsCoords () const |
| Retrieves all mesh color values.
|
void | setColorsCoords (const std::vector< glm::vec4 > &colors) |
| Sets the colors values vector.
|
void | appendColor (const std::vector< glm::vec4 > &colors) |
| Add at the end of the colors vector the given colors.
|
std::vector< glm::vec2 > | getTexCoords () const |
| Retrieves all mesh texture coords.
|
void | setTexCoords (const std::vector< glm::vec2 > &texCoords) |
| Sets the texture coords vector.
|
void | appendTexCoords (const std::vector< glm::vec2 > &coords) |
| Add at the end of the texture coords vector the given texture coords.
|
std::vector< unsigned int > | getIndexCoords () const |
| Retrieves all mesh indices.
|
void | setIndexCoords (const std::vector< unsigned int > &index) |
| Sets the indices coords vector.
|
void | appendIndex (const std::vector< unsigned int > &index) |
| Add at the end of the indives vector the given indices.
|
| VertexComponent (const std::vector< glm::vec3 > &vertex, const std::vector< glm::vec4 > &colors, const std::vector< unsigned int > &indices) |
| Instances the VertexComponent object with the given data.
|
Component to store vertices coords data.
◆ VertexComponent()
VertexComponent::VertexComponent |
( |
const std::vector< glm::vec3 > & | vertex, |
|
|
const std::vector< glm::vec4 > & | colors, |
|
|
const std::vector< unsigned int > & | indices ) |
|
inline |
Instances the VertexComponent object with the given data.
- Parameters
-
vertex | a std::vector<glm::vec3> containing vertices coords |
colors | a std::vector<glm::vec4> containing colors values |
indices | a std::vector<unsigned int> containing indices |
◆ appendColor()
void VertexComponent::appendColor |
( |
const std::vector< glm::vec4 > & | colors | ) |
|
|
inline |
Add at the end of the colors vector the given colors.
- Parameters
-
colors | a std::vector<glm::vec4> to be added |
◆ appendIndex()
void VertexComponent::appendIndex |
( |
const std::vector< unsigned int > & | index | ) |
|
|
inline |
Add at the end of the indives vector the given indices.
- Parameters
-
index | a std::vector<unsigned int> to be added |
◆ appendNormal()
void VertexComponent::appendNormal |
( |
const std::vector< glm::vec3 > & | normal | ) |
|
|
inline |
Add at the end of the normal vector the given normal.
- Parameters
-
normal | a std::vector<glm::vec3> to be added |
◆ appendTexCoords()
void VertexComponent::appendTexCoords |
( |
const std::vector< glm::vec2 > & | coords | ) |
|
|
inline |
Add at the end of the texture coords vector the given texture coords.
- Parameters
-
coords | a std::vector<glm::vec2> to be added |
◆ appendVertex()
void VertexComponent::appendVertex |
( |
const std::vector< glm::vec3 > & | vertex | ) |
|
|
inline |
Add at the end of the vertices vector the given vertex.
- Parameters
-
vertex | a std::vector<glm::vec3> to be added |
◆ getColorsCoords()
std::vector< glm::vec4 > VertexComponent::getColorsCoords |
( |
| ) |
const |
|
inline |
Retrieves all mesh color values.
- Returns
- Retrieves a std::vector<glm::vec4> vector containing mesh color values
◆ getIndexCoords()
std::vector< unsigned int > VertexComponent::getIndexCoords |
( |
| ) |
const |
|
inline |
Retrieves all mesh indices.
- Returns
- Retrieves a std::vector<unsigned int> vector containing mesh indices for rendering
◆ getNormalsCoords()
std::vector< glm::vec3 > VertexComponent::getNormalsCoords |
( |
| ) |
const |
|
inline |
Retrieves all mesh normals coords.
- Returns
- Retrieves a std::vector<glm::vec3> vector containing mesh normals coords
◆ getTexCoords()
std::vector< glm::vec2 > VertexComponent::getTexCoords |
( |
| ) |
const |
|
inline |
Retrieves all mesh texture coords.
- Returns
- Retrieves a std::vector<glm::vec2> vector containing mesh texture coords
◆ getVertexCoords()
std::vector< glm::vec3 > VertexComponent::getVertexCoords |
( |
| ) |
const |
|
inline |
Retrieves all mesh vertices coords.
- Returns
- Retrieves a std::vector<glm::vec3> vector containing mesh vertices coords.
◆ setColorsCoords()
void VertexComponent::setColorsCoords |
( |
const std::vector< glm::vec4 > & | colors | ) |
|
|
inline |
Sets the colors values vector.
- Parameters
-
colors | a std::vector<glm::vec4> containing colors values |
◆ setIndexCoords()
void VertexComponent::setIndexCoords |
( |
const std::vector< unsigned int > & | index | ) |
|
|
inline |
Sets the indices coords vector.
- Parameters
-
index | a std::vector<unsigned int> containing indices for render |
◆ setNormalsCoords()
void VertexComponent::setNormalsCoords |
( |
const std::vector< glm::vec3 > & | normals | ) |
|
|
inline |
Sets the vertices coords vector.
- Parameters
-
normals | a std::vector<glm::vec3> containing normals coords |
◆ setTexCoords()
void VertexComponent::setTexCoords |
( |
const std::vector< glm::vec2 > & | texCoords | ) |
|
|
inline |
Sets the texture coords vector.
- Parameters
-
texCoords | a std::vector<glm::vec2> containing texture coords |
◆ setVertexCoords()
void VertexComponent::setVertexCoords |
( |
const std::vector< glm::vec3 > & | vertex | ) |
|
|
inline |
Sets the vertices coords vector.
- Parameters
-
vertex | a std::vector<glm::vec3> containing vertices coords |
The documentation for this class was generated from the following file: