MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / SetUniform

Method SetUniform

ZEngine/src/Shader.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void Shader::SetUniform(const char* name, int value) {
76 if (IsActive()) {
77 auto location = _GetLocationUniform(name);
78 if (location != -1) {
79 glUniform1i(location, value);
80 }
81 }
82 }
83
84 void Shader::SetUniform(const char* name, int value_one, int value_two) {
85 if (IsActive()) {

Callers 3

ApplyMethod · 0.80
ApplyMethod · 0.80
RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected