VVISF & VVGL
VVGL::GLCachedUni Struct Reference

Subclass of GLCachedProperty that caches the location of a uniform variable in a GLSL program. More...

#include <GLCachedProperty.hpp>

Inherits VVGL::GLCachedProperty.

Public Member Functions

void cacheTheLoc (const int32_t &inPgmToCheck) override
 Caches the location of the receiver's uniform in the passed program. A valid GL context must be current and the program this uniform refers to must be bound before you call this function!
 
- Public Member Functions inherited from VVGL::GLCachedProperty
int32_t location (const int32_t &inGLProgram)
 Returns the location of the property cached by the receiver. A valid GL context must be current before you call this function. Caches the location if it hasn't been looked up/cached yet. Will only return -1 if there's a problem (if the attrib doesn't exist in the current program in use by the current context).
 

Related Functions

(Note that these are not member functions.)

using GLCachedUniRef = shared_ptr< GLCachedUni >
 A GLCachedUniRef is a shared pointer around a GLCachedUni.
 

Detailed Description

Subclass of GLCachedProperty that caches the location of a uniform variable in a GLSL program.


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