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

A varying to a fragment shader. More...

#include "openglobjects.h"

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

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

Detailed Description

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

A varying to a fragment shader.

Definition at line 168 of file openglobjects.h.

Constructor & Destructor Documentation

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

Definition at line 169 of file openglobjects.h.

Member Data Documentation

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

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

The varying index.

Definition at line 171 of file openglobjects.h.

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

The name of the varying in the program.

Definition at line 182 of file openglobjects.h.

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

The number of components in the varying.

Definition at line 180 of file openglobjects.h.

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


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