Antkeeper
0.0.1
|
Describes a vertex attribute within a vertex buffer. More...
#include <vertex-attribute.hpp>
Public Attributes | |
const vertex_buffer * | buffer {nullptr} |
Pointer to the vertex buffer containing vertex attribute data. More... | |
std::size_t | offset {0} |
Offset to the first component of the first instance of this attribute in the vertex buffer, in bytes. More... | |
std::size_t | stride {0} |
Number of bytes between consecutive instances of this attribute in the vertex buffer. A value of 0 indicates attribute instances are tightly packed. More... | |
vertex_attribute_type | type {0} |
Data type of each component in the attribute. More... | |
std::uint8_t | components {0} |
Number of components per attribute instance. Supported values are 1 , 2 , 3 , and 4 . More... | |
bool | normalized {} |
true if fixed point data should be normalized, false otherwise. More... | |
Describes a vertex attribute within a vertex buffer.
Definition at line 49 of file gl/vertex-attribute.hpp.
const vertex_buffer* gl::vertex_attribute::buffer {nullptr} |
Pointer to the vertex buffer containing vertex attribute data.
Definition at line 52 of file gl/vertex-attribute.hpp.
std::uint8_t gl::vertex_attribute::components {0} |
Number of components per attribute instance. Supported values are 1
, 2
, 3
, and 4
.
Definition at line 64 of file gl/vertex-attribute.hpp.
bool gl::vertex_attribute::normalized {} |
true
if fixed point data should be normalized, false
otherwise.
Definition at line 67 of file gl/vertex-attribute.hpp.
std::size_t gl::vertex_attribute::offset {0} |
Offset to the first component of the first instance of this attribute in the vertex buffer, in bytes.
Definition at line 55 of file gl/vertex-attribute.hpp.
std::size_t gl::vertex_attribute::stride {0} |
Number of bytes between consecutive instances of this attribute in the vertex buffer. A value of 0
indicates attribute instances are tightly packed.
Definition at line 58 of file gl/vertex-attribute.hpp.
vertex_attribute_type gl::vertex_attribute::type {0} |
Data type of each component in the attribute.
Definition at line 61 of file gl/vertex-attribute.hpp.