MCPcopy Create free account
hub / github.com/axmolengine/axmol / getMappedLocation

Method getMappedLocation

core/renderer/backend/opengl/ProgramGL.cpp:496–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494
495#if AX_ENABLE_CACHE_TEXTURE_DATA
496int ProgramGL::getMappedLocation(int location) const
497{
498 if (_mapToCurrentActiveLocation.find(location) != _mapToCurrentActiveLocation.end())
499 return _mapToCurrentActiveLocation.at(location);
500 else
501 return -1;
502}
503
504int ProgramGL::getOriginalLocation(int location) const
505{

Callers 1

resetUniformsMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected