| 178 | |
| 179 | |
| 180 | bool 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 | |
| 195 | bool TextureManager::bind(const char* name) { |
no test coverage detected