MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / glGetUniformLocation

Function glGetUniformLocation

GTE/Graphics/GL46/GL46.cpp:3782–3801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3780}
3781
3782GLint APIENTRY glGetUniformLocation(GLuint program, const GLchar* name)
3783{
3784 GLint result;
3785 if (sglGetUniformLocation)
3786 {
3787 result = sglGetUniformLocation(program, name);
3788 ReportGLError("glGetUniformLocation");
3789 }
3790 else
3791 {
3792 ReportGLNullFunction("glGetUniformLocation");
3793 result = 0;
3794 }
3795
3796#if defined(GTE_ENABLE_GLTRACE)
3797 gsTrace.Call("glGetUniformLocation", std::to_string(result),
3798 program, name);
3799#endif
3800 return result;
3801}
3802
3803void APIENTRY glGetUniformfv(GLuint program, GLint location, GLfloat* params)
3804{

Callers 1

ReflectUniformsMethod · 0.85

Calls 3

ReportGLErrorFunction · 0.85
ReportGLNullFunctionFunction · 0.85
CallMethod · 0.80

Tested by

no test coverage detected