Chronos 0.0
A advanced 2D rendering and animation system
|
This defines the position of a vertex. Used when we need a colored vertex. Does not support textures. 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, 1 > | getAttributeDescriptions () |
Generates the VkVertexInputAttributeDescription for the vertex based on pos attribute of the vertex. | |
Public Attributes | |
glm::vec2 | pos |
This defines the position of a vertex. Used when we need a colored vertex. Does not support textures.
Definition at line 39 of file Vertex.hpp.
|
inlinestatic |
Generates the VkVertexInputAttributeDescription
for the vertex based on pos attribute of the vertex.
Definition at line 61 of file Vertex.hpp.
References pos.
|
inlinestatic |
Creates a VkVertexInputBindingDescription
for the vertex based on the size of the vertex.
Definition at line 46 of file Vertex.hpp.
glm::vec2 Chronos::Engine::ColorVertex::pos |
Definition at line 40 of file Vertex.hpp.