|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Describes a single vertex attribute. More...
#include <Buffer.hpp>
Public Member Functions | |
| VertexAttribute ()=default | |
| Default constructor. | |
| VertexAttribute (ShaderDataType type, const std::string &name, bool normalized=false) | |
| Constructs a vertex attribute. | |
Public Attributes | |
| std::string | name |
| Attribute name (for debugging). | |
| ShaderDataType | type |
| Data type of the attribute. | |
| u32 | size |
| Size in bytes. | |
| u32 | offset |
| Byte offset within the vertex. | |
| bool | normalized |
| Whether to normalize integer data to [0,1] or [-1,1]. | |
Describes a single vertex attribute.
Contains all information needed to configure a vertex attribute pointer in OpenGL/WebGL.
Definition at line 83 of file Buffer.hpp.
|
default |
Default constructor.
|
inline |
Constructs a vertex attribute.
| type | Data type |
| name | Attribute name |
| normalized | Whether to normalize integer data |
Definition at line 104 of file Buffer.hpp.
References name, normalized, offset, esengine::shaderDataTypeSize(), size, and type.
| std::string esengine::VertexAttribute::name |
Attribute name (for debugging).
Definition at line 85 of file Buffer.hpp.
Referenced by VertexAttribute().
| bool esengine::VertexAttribute::normalized |
Whether to normalize integer data to [0,1] or [-1,1].
Definition at line 93 of file Buffer.hpp.
Referenced by VertexAttribute().
| u32 esengine::VertexAttribute::offset |
Byte offset within the vertex.
Definition at line 91 of file Buffer.hpp.
Referenced by VertexAttribute().
| u32 esengine::VertexAttribute::size |
| ShaderDataType esengine::VertexAttribute::type |
Data type of the attribute.
Definition at line 87 of file Buffer.hpp.
Referenced by VertexAttribute().