MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetUniformFloat

Method SetUniformFloat

Source/Graphics/drawbatch.cpp:448–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void DrawBatch::SetUniformFloat(std::string _name, GLfloat data) {
449 for (auto &uniform : uniforms) {
450 if (uniform.name == _name) {
451 uniform.data[0] = data;
452 return;
453 }
454 }
455 AddUniformFloat(_name, data);
456}
457
458void DrawBatch::MakeUniformIndividual(std::string _name) {
459 for (auto &uniform : uniforms) {

Callers 2

ApplyMethod · 0.45
SetStartStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected