MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / bind

Method bind

src/3D/TextureManager.cpp:180–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179
180bool TextureManager::bind(int id) {
181 TextureIDMap::iterator it = textureIDs.find(id);
182 if (it == textureIDs.end()) {
183 debugf(1, "Unable to bind texture (by id): %d\n", id);
184 return false;
185 }
186
187 if (id != lastBoundID) {
188 it->second->texture->execute();
189 lastBoundID = id;
190 }
191 return true;
192}
193
194
195bool TextureManager::bind(const char* name) {

Callers 5

doRenderMethod · 0.45
drawNoiseMethod · 0.45
renderBoxPyrMeshFastMethod · 0.45
drawSkyboxMethod · 0.45
operator()Method · 0.45

Calls 4

debugfFunction · 0.85
findMethod · 0.45
endMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected