MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / setUniform3f

Method setUniform3f

cpp/5_Domain_Specific/smokeParticles/GLSLProgram.cpp:80–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void GLSLProgram::setUniform3f(const char *name, float x, float y, float z)
81{
82 GLint loc = glGetUniformLocation(mProg, name);
83
84 if (loc >= 0) {
85 glUniform3f(loc, x, y, z);
86 }
87 else {
88#if _DEBUG
89 fprintf(stderr, "Error setting parameter '%s'\n", name);
90#endif
91 }
92}
93
94void GLSLProgram::setUniform4f(const char *name, float x, float y, float z, float w)
95{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected