Untitled Game engine no.5
1.0
|
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. | |
Constructs the layout of a vertex buffer.
|
inline |
Constructor
elements | an initializer list of buffer element to create this |
|
inline |