VVISF & VVGL
|
Subclass of GLCachedProperty that caches the location of an attribute in a GLSL program. More...
#include <GLCachedProperty.hpp>
Inherits VVGL::GLCachedProperty.
Public Member Functions | |
void | enable () |
Enables the attribute. A valid GL context must be current and the program this attribute refers to must be bound before you call this function! | |
void | disable () |
Disables the attribute. A valid GL context must be current and the program this attribute refers to must be bound before you call this function! Protip: don't call this function if you're using VAOs to draw. | |
void | cacheTheLoc (const int32_t &inPgmToCheck) override |
Caches the location of the receiver's attribute in the passed program. A valid GL context must be current and the program this attribute 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 | GLCachedAttribRef = shared_ptr< GLCachedAttrib > |
A GLCachedAttribRef is a shared pointer around a GLCachedAttrib. | |
Subclass of GLCachedProperty that caches the location of an attribute in a GLSL program.