Ion
|
An attribute to a vertex shader. More...
#include "openglobjects.h"
Public Member Functions | |
Attribute () | |
Public Attributes | |
GLint | index |
The attribute index. More... | |
std::vector< GLint > | array_indices |
The attribute's array locations. More... | |
GLenum | type |
The type of the attribute, one of GL_FLOAT, GL_FLOAT_VEC2, GL_FLOAT_VEC3, GL_FLOAT_VEC4, GL_FLOAT_MAT2, GL_FLOAT_MAT3, or GL_FLOAT_MAT4. More... | |
GLint | size |
The number of components in the attribute. More... | |
std::string | name |
The name of the attribute in the program. More... | |
An attribute to a vertex shader.
Definition at line 127 of file openglobjects.h.
|
inline |
Definition at line 128 of file openglobjects.h.
std::vector<GLint> ion::gfx::ProgramInfo< T >::Attribute::array_indices |
The attribute's array locations.
Scalar attributes (e.g., vec2 attr;) have size == 1, and no array indices, while array attributes (e.g., vec2 attr[2];) have indices for each element (including 0) of the array.
Definition at line 134 of file openglobjects.h.
GLint ion::gfx::ProgramInfo< T >::Attribute::index |
The attribute index.
Definition at line 130 of file openglobjects.h.
std::string ion::gfx::ProgramInfo< T >::Attribute::name |
The name of the attribute in the program.
Definition at line 141 of file openglobjects.h.
GLint ion::gfx::ProgramInfo< T >::Attribute::size |
The number of components in the attribute.
Definition at line 139 of file openglobjects.h.
GLenum ion::gfx::ProgramInfo< T >::Attribute::type |
The type of the attribute, one of GL_FLOAT, GL_FLOAT_VEC2, GL_FLOAT_VEC3, GL_FLOAT_VEC4, GL_FLOAT_MAT2, GL_FLOAT_MAT3, or GL_FLOAT_MAT4.
Definition at line 137 of file openglobjects.h.