Untitled Game engine no.5  1.0
Public Member Functions | List of all members
Engine::BufferLayout Class Reference

Constructs the layout of a vertex buffer. More...

#include <Buffer.hpp>

Public Member Functions

const std::vector< BufferElement > & GetElements () const
 
const uint32_t GetStride () const
 @retuns the stride of the elements of this buffer
 
 BufferLayout (const std::initializer_list< BufferElement > &elements)
 
 BufferLayout ()
 Creates an empty buffer layout.
 
std::vector< BufferElement >::iterator begin ()
 Wrapper around the elements vectory.
 
std::vector< BufferElement >::iterator end ()
 Wrapper around the elements vectory.
 

Detailed Description

Constructs the layout of a vertex buffer.

Constructor & Destructor Documentation

◆ BufferLayout()

Engine::BufferLayout::BufferLayout ( const std::initializer_list< BufferElement > &  elements)
inline

Constructor

Parameters
elementsan initializer list of buffer element to create this

Member Function Documentation

◆ GetElements()

const std::vector<BufferElement>& Engine::BufferLayout::GetElements ( ) const
inline
Returns
a reference to the element vector of this buffer

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