Loading...
Searching...
No Matches
juce::OpenGLShaderProgram::Attribute Struct Reference

Detailed Description

Represents an openGL vertex attribute value.

After a program has been linked, you can create Attribute objects to let you set the attributes that your vertex shaders use.


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

Public Member Functions

 Attribute (const OpenGLShaderProgram &, const char *attributeName)
 Initialises an attribute.

Public Attributes

GLuint attributeID
 The attribute's ID number.

Constructors and Destructors

◆ Attribute()

juce::OpenGLShaderProgram::Attribute::Attribute ( const OpenGLShaderProgram & ,
const char * attributeName )

Initialises an attribute.

The program must have been successfully linked when this constructor is called.

References juce::OpenGLShaderProgram::OpenGLShaderProgram().

Member Data Documentation

◆ attributeID

GLuint juce::OpenGLShaderProgram::Attribute::attributeID

The attribute's ID number.

If the uniform couldn't be found, this value will be < 0.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram