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

Drawable vertex array. More...

#include <le2d/vertex_array.hpp>

Public Member Functions

void reserve (std::size_t vertex_count, std::size_t index_count)
 
void clear ()
 
auto append (std::span< Vertex const > vertices, std::span< std::uint32_t const > indices) -> VertexArray &
 

Public Attributes

std::vector< Vertexvertices {}
 
std::vector< std::uint32_t > indices {}
 

Detailed Description

Drawable vertex array.

Member Function Documentation

◆ append()

auto le::VertexArray::append ( std::span< Vertex const >  vertices,
std::span< std::uint32_t const >  indices 
) -> VertexArray &

◆ clear()

void le::VertexArray::clear ( )

◆ reserve()

void le::VertexArray::reserve ( std::size_t  vertex_count,
std::size_t  index_count 
)

Member Data Documentation

◆ indices

std::vector<std::uint32_t> le::VertexArray::indices {}

◆ vertices

std::vector<Vertex> le::VertexArray::vertices {}

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