JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::OpenGLShaderProgram::Attribute Struct Reference

Represents an openGL vertex attribute value. More...

#include <juce_OpenGLShaderProgram.h>

Collaboration diagram for juce::OpenGLShaderProgram::Attribute:

Public Member Functions

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

Public Attributes

GLuint attributeID
 The attribute's ID number. More...
 

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.

Constructor & Destructor Documentation

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

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.


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