le2d v0.4.6
2D game engine framework
 
Loading...
Searching...
No Matches
le::Primitive Struct Reference

Draw primitive. More...

#include <le2d/primitive.hpp>

Public Attributes

std::span< Vertex const > vertices {}
 
std::span< std::uint32_t const > indices {}
 
vk::PrimitiveTopology topology {vk::PrimitiveTopology::eTriangleList}
 
ITextureBase const * texture {}
 

Detailed Description

Draw primitive.

Intended to be transient: created, used, and discarded per frame.

Member Data Documentation

◆ indices

std::span<std::uint32_t const> le::Primitive::indices {}

◆ texture

ITextureBase const* le::Primitive::texture {}

◆ topology

vk::PrimitiveTopology le::Primitive::topology {vk::PrimitiveTopology::eTriangleList}

◆ vertices

std::span<Vertex const> le::Primitive::vertices {}

The documentation for this struct was generated from the following file: