MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setUniformMatrix

Method setUniformMatrix

src/eepp/graphics/shaderprogram.cpp:392–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392bool ShaderProgram::setUniformMatrix( const Int32& Location, const float* Value ) {
393 if ( -1 != Location ) {
394#ifdef EE_SHADERS_SUPPORTED
395 glUniformMatrix4fv( Location, 1, false, Value );
396#endif
397
398 return true;
399 }
400
401 return false;
402}
403
404bool ShaderProgram::setUniformMatrix( const std::string Name, const float* Value ) {
405 return setUniformMatrix( getUniformLocation( Name ), Value );

Callers 2

updateMatrixMethod · 0.80
videoResizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected