|
gdk-graphics
1b6d84e044c2c953fd7c9501e628a67e80f4da0d
|
A vertex attribute is a component of a vertex. Typical definitions would include: position, uv, normal, color. Strictly speaking though they are entirely arbitrary. More...
#include <webgl1es2_vertex_attribute.h>
Public Types | |
| using | size_type = unsigned short |
Public Member Functions | |
| bool | operator== (const webgl1es2_vertex_attribute &) const |
| equality semantics | |
| bool | operator!= (const webgl1es2_vertex_attribute &) const |
| equality semantics | |
| webgl1es2_vertex_attribute (const webgl1es2_vertex_attribute &)=default | |
| copy semantics | |
| webgl1es2_vertex_attribute & | operator= (const webgl1es2_vertex_attribute &)=default |
| copy semantics | |
| webgl1es2_vertex_attribute (webgl1es2_vertex_attribute &&)=default | |
| move semantics | |
| webgl1es2_vertex_attribute & | operator= (webgl1es2_vertex_attribute &&)=default |
| move semantics | |
| webgl1es2_vertex_attribute (const std::string &aName, const unsigned short &aSize) | |
| constructs an attribute with a given name and number of components | |
Public Attributes | |
| std::string | name |
| name of the vertex attribute, used to access its value within a programmable shader stage. e.g: "a_uv" | |
| size_type | size = 0 |
| number of components in the attribute. TODO: consider renaming to count? size is a bit confusing | |
A vertex attribute is a component of a vertex. Typical definitions would include: position, uv, normal, color. Strictly speaking though they are entirely arbitrary.
Vertex attributes are made up of an arbitrary set of components. In the context of OpenGL, a component is a floating-point value.
1.8.13