gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Public Types | Public Member Functions | Public Attributes | List of all members
gdk::webgl1es2_vertex_attribute Struct Referencefinal

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_attributeoperator= (const webgl1es2_vertex_attribute &)=default
 copy semantics
 
 webgl1es2_vertex_attribute (webgl1es2_vertex_attribute &&)=default
 move semantics
 
webgl1es2_vertex_attributeoperator= (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
 

Detailed Description

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.


The documentation for this struct was generated from the following file: