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