Ion
|
#include "openglobjects.h"
Public Member Functions | |
Attribute () | |
Public Attributes | |
GLuint | buffer |
The OpenGL name of the array buffer when the attribute pointer was set. More... | |
GLboolean | enabled |
Whether the attribute is enabled. More... | |
GLuint | size |
The number of values in each component of each element of the data array, e.g., a vec3 has size 3. More... | |
GLuint | stride |
The number of bytes between successive elements in the data array. More... | |
GLenum | type |
The type of the attribute values in the data array. More... | |
GLboolean | normalized |
Whether the attribute data will be normalized when sent to OpenGL. More... | |
GLvoid * | pointer |
The value of the attribute pointer. More... | |
math::Vector4f | value |
The value of float and vec[2-4] attributes. More... | |
GLuint | divisor |
The rate at which new attributes are presented to the vertex shader. More... | |
Definition at line 43 of file openglobjects.h.
|
inline |
Definition at line 44 of file openglobjects.h.
GLuint ion::gfx::ArrayInfo< T >::Attribute::buffer |
The OpenGL name of the array buffer when the attribute pointer was set.
Definition at line 55 of file openglobjects.h.
GLuint ion::gfx::ArrayInfo< T >::Attribute::divisor |
The rate at which new attributes are presented to the vertex shader.
A divisor value of 0 turns off the instancing for a specified attribute. If divisor is two, the value of the attribute is updated every second instance.
Definition at line 77 of file openglobjects.h.
GLboolean ion::gfx::ArrayInfo< T >::Attribute::enabled |
Whether the attribute is enabled.
Definition at line 57 of file openglobjects.h.
GLboolean ion::gfx::ArrayInfo< T >::Attribute::normalized |
Whether the attribute data will be normalized when sent to OpenGL.
Definition at line 68 of file openglobjects.h.
GLvoid* ion::gfx::ArrayInfo< T >::Attribute::pointer |
The value of the attribute pointer.
Definition at line 70 of file openglobjects.h.
GLuint ion::gfx::ArrayInfo< T >::Attribute::size |
The number of values in each component of each element of the data array, e.g., a vec3 has size 3.
Definition at line 60 of file openglobjects.h.
GLuint ion::gfx::ArrayInfo< T >::Attribute::stride |
The number of bytes between successive elements in the data array.
Definition at line 62 of file openglobjects.h.
GLenum ion::gfx::ArrayInfo< T >::Attribute::type |
The type of the attribute values in the data array.
Possible values are GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_FIXED, and GL_FLOAT.
Definition at line 66 of file openglobjects.h.
math::Vector4f ion::gfx::ArrayInfo< T >::Attribute::value |
The value of float and vec[2-4] attributes.
Definition at line 72 of file openglobjects.h.