|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Describes the layout of vertex data in a buffer. More...
#include <Buffer.hpp>
Public Member Functions | |
| VertexLayout ()=default | |
| Default constructor (empty layout). | |
| VertexLayout (std::initializer_list< VertexAttribute > attributes) | |
| Constructs layout from initializer list. | |
| VertexLayout (std::vector< VertexAttribute > attributes) | |
| const std::vector< VertexAttribute > & | getAttributes () const |
| Gets all vertex attributes. | |
| u32 | getStride () const |
| Gets the stride (total size) of one vertex. | |
| std::vector< VertexAttribute >::iterator | begin () |
| std::vector< VertexAttribute >::iterator | end () |
| std::vector< VertexAttribute >::const_iterator | begin () const |
| std::vector< VertexAttribute >::const_iterator | end () const |
Describes the layout of vertex data in a buffer.
Specifies the attributes that make up each vertex and their arrangement in memory. Used to configure vertex attribute pointers.
Definition at line 126 of file Buffer.hpp.
|
default |
Default constructor (empty layout).
|
inline |
Constructs layout from initializer list.
| attributes | List of vertex attributes |
Definition at line 135 of file Buffer.hpp.
|
inline |
Definition at line 140 of file Buffer.hpp.
|
inline |
Definition at line 158 of file Buffer.hpp.
|
inline |
Definition at line 160 of file Buffer.hpp.
|
inline |
Definition at line 159 of file Buffer.hpp.
|
inline |
Definition at line 161 of file Buffer.hpp.
|
inline |
Gets all vertex attributes.
Definition at line 149 of file Buffer.hpp.
Referenced by esengine::CustomGeometry::init().
|
inline |
Gets the stride (total size) of one vertex.
Definition at line 155 of file Buffer.hpp.
Referenced by esengine::geometry_init(), and esengine::CustomGeometry::init().