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

Method AddUniformFloat

Source/Graphics/drawbatch.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void DrawBatch::AddUniformFloat(std::string _name, GLfloat data) {
61 uniforms.resize(uniforms.size() + 1);
62 uniforms.back().name = _name;
63 uniforms.back().type = _float;
64 uniforms.back().data.resize(1);
65 uniforms.back().data[0] = data;
66}
67
68void DrawBatch::AddUniformVec3(std::string _name, const GLfloat *_data) {
69 uniforms.resize(uniforms.size() + 1);

Callers 2

DrawMethod · 0.80
ItemObjectMethod · 0.80

Calls 3

resizeMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected