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

Method SetUniformVec3

Source/Graphics/drawbatch.cpp:474–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void DrawBatch::SetUniformVec3(std::string _name, const vec3 &_data) {
475 for (auto &uniform : uniforms) {
476 if (uniform.name == _name) {
477 memcpy(&uniform.data[0],
478 (const GLfloat *)_data.entries,
479 3 * sizeof(GLfloat));
480 }
481 }
482}
483
484void DrawBatch::AddUniformVec4(std::string _name, const GLfloat *_data) {
485 uniforms.resize(uniforms.size() + 1);

Callers 2

ApplyMethod · 0.45
SetStartStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected