Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::gfx::ProgramInfo< T >::Attribute Struct Reference

An attribute to a vertex shader. More...

#include "openglobjects.h"

Collaboration diagram for ion::gfx::ProgramInfo< T >::Attribute:

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...
 

Detailed Description

template<typename T>
struct ion::gfx::ProgramInfo< T >::Attribute

An attribute to a vertex shader.

Definition at line 127 of file openglobjects.h.

Constructor & Destructor Documentation

template<typename T >
ion::gfx::ProgramInfo< T >::Attribute::Attribute ( )
inline

Definition at line 128 of file openglobjects.h.

Member Data Documentation

template<typename T >
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.

template<typename T >
GLint ion::gfx::ProgramInfo< T >::Attribute::index

The attribute index.

Definition at line 130 of file openglobjects.h.

template<typename T >
std::string ion::gfx::ProgramInfo< T >::Attribute::name

The name of the attribute in the program.

Definition at line 141 of file openglobjects.h.

template<typename T >
GLint ion::gfx::ProgramInfo< T >::Attribute::size

The number of components in the attribute.

Definition at line 139 of file openglobjects.h.

template<typename T >
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.


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