MCPcopy Create free account
hub / github.com/cginternals/globjects / update

Method update

source/globjects/source/AbstractUniform.cpp:106–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void AbstractUniform::update(const Program * program, bool invalidateLocation) const
107{
108 assert(program != nullptr);
109
110 if (invalidateLocation)
111 {
112 m_locations.erase(program);
113 }
114
115 if (!program->isLinked())
116 {
117 return;
118 }
119
120 updateAt(program, locationFor(program));
121}
122
123void AbstractUniform::setValue(const Program * program, const GLint location, const float & value) const
124{

Callers 7

addUniformMethod · 0.45
updateUniformsMethod · 0.45
InvokeWithModifiedEnvFunction · 0.45
RunAndReturnOutputFunction · 0.45
_ReplaceEnvDictMethod · 0.45
GetShellCommandOutputFunction · 0.45
GenTestFunction · 0.45

Calls 1

isLinkedMethod · 0.80

Tested by 5

InvokeWithModifiedEnvFunction · 0.36
RunAndReturnOutputFunction · 0.36
_ReplaceEnvDictMethod · 0.36
GetShellCommandOutputFunction · 0.36
GenTestFunction · 0.36