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

Method SetUniformVec4

Source/Graphics/drawbatch.cpp:496–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void DrawBatch::SetUniformVec4(std::string _name, const vec4 &_data) {
497 for (auto &uniform : uniforms) {
498 if (uniform.name == _name) {
499 memcpy(&uniform.data[0],
500 (const GLfloat *)_data.entries,
501 4 * sizeof(GLfloat));
502 }
503 }
504}
505
506void DrawBatch::SetTransform(const mat4 &_transform) {
507 transform = _transform;

Callers 2

ApplyMethod · 0.45
SetStartStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected