Ion
|
A varying to a fragment shader. More...
#include "openglobjects.h"
Public Member Functions | |
Varying () | |
Public Attributes | |
GLint | index |
The varying index. More... | |
std::vector< GLint > | array_indices |
The varying's array locations. More... | |
GLenum | type |
The type of the varying, 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 varying. More... | |
std::string | name |
The name of the varying in the program. More... | |
A varying to a fragment shader.
Definition at line 168 of file openglobjects.h.
|
inline |
Definition at line 169 of file openglobjects.h.
std::vector<GLint> ion::gfx::ProgramInfo< T >::Varying::array_indices |
The varying's array locations.
Scalar varyings (e.g., vec2 vary;) have size == 1, and no array indices, while array varyings (e.g., vec2 vary[2];) have indices for each element (including 0) of the array.
Definition at line 175 of file openglobjects.h.
GLint ion::gfx::ProgramInfo< T >::Varying::index |
The varying index.
Definition at line 171 of file openglobjects.h.
std::string ion::gfx::ProgramInfo< T >::Varying::name |
The name of the varying in the program.
Definition at line 182 of file openglobjects.h.
GLint ion::gfx::ProgramInfo< T >::Varying::size |
The number of components in the varying.
Definition at line 180 of file openglobjects.h.
GLenum ion::gfx::ProgramInfo< T >::Varying::type |
The type of the varying, 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 178 of file openglobjects.h.