|
Chronos 0.0
A advanced 2D rendering and animation system
|
This defines the position and texture coordinates of a vertex. Used when we need a textured vertex. More...
#include <Vertex.hpp>
Static Public Member Functions | |
| static VkVertexInputBindingDescription | getBindingDescription () |
Creates a VkVertexInputBindingDescription for the vertex based on the size of the vertex. | |
| static std::array< VkVertexInputAttributeDescription, 2 > | getAttributeDescriptions () |
Generates the VkVertexInputAttributeDescription for the vertex based on attributes(pos, texCoord) of the vertex. | |
Public Attributes | |
| glm::vec2 | pos |
| glm::vec2 | texCoord |
This defines the position and texture coordinates of a vertex. Used when we need a textured vertex.
Definition at line 78 of file Vertex.hpp.
|
inlinestatic |
Generates the VkVertexInputAttributeDescription for the vertex based on attributes(pos, texCoord) of the vertex.
Definition at line 101 of file Vertex.hpp.

|
inlinestatic |
Creates a VkVertexInputBindingDescription for the vertex based on the size of the vertex.
Definition at line 86 of file Vertex.hpp.

| glm::vec2 Chronos::Engine::TexturedVertex::pos |
Definition at line 79 of file Vertex.hpp.
| glm::vec2 Chronos::Engine::TexturedVertex::texCoord |
Definition at line 80 of file Vertex.hpp.