Support Forum       G3D Web Page     
Public Attributes | List of all members
G3D::Shader::ShaderProgram::AttributeDeclaration Class Reference

Vertex Attribute (stream) variable declaration discovered in the program. More...

Public Attributes

bool dummy
 If true, this attribute is not used by the shader program, so we never try to bind a value to it. More...
 
GLint elementNum
 The number of elements in this variable. More...
 
GLint location
 OpenGL location returned by glGetAttribLocation, -1 if this uniform is inactive. More...
 
String name
 
GLenum type
 OpenGL type of the variable (e.g. More...
 

Detailed Description

Vertex Attribute (stream) variable declaration discovered in the program.

Array-valued attributes are untested

Member Data Documentation

◆ dummy

bool G3D::Shader::ShaderProgram::AttributeDeclaration::dummy

If true, this attribute is not used by the shader program, so we never try to bind a value to it.

◆ elementNum

GLint G3D::Shader::ShaderProgram::AttributeDeclaration::elementNum

The number of elements in this variable.

For non-arrays, this is 1.

◆ location

GLint G3D::Shader::ShaderProgram::AttributeDeclaration::location

OpenGL location returned by glGetAttribLocation, -1 if this uniform is inactive.

◆ name

String G3D::Shader::ShaderProgram::AttributeDeclaration::name

◆ type

GLenum G3D::Shader::ShaderProgram::AttributeDeclaration::type

OpenGL type of the variable (e.g.

GL_INT)


documentation generated on Wed Nov 24 2021 08:02:00 using doxygen 1.8.15