le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
primitive.hpp
Go to the documentation of this file.
1#pragma once
3#include "le2d/vertex.hpp"
4#include <cstdint>
5#include <span>
6
7namespace le {
10struct Primitive {
11 std::span<Vertex const> vertices{};
12 std::span<std::uint32_t const> indices{};
13 vk::PrimitiveTopology topology{vk::PrimitiveTopology::eTriangleList};
15};
16} // namespace le
Interface for drawable texture.
Definition texture.hpp:15
Definition animation.hpp:8
Draw primitive.
Definition primitive.hpp:10
ITextureBase const * texture
Definition primitive.hpp:14
std::span< Vertex const > vertices
Definition primitive.hpp:11
vk::PrimitiveTopology topology
Definition primitive.hpp:13
std::span< std::uint32_t const > indices
Definition primitive.hpp:12