* Returns a specific surface from the resource set. * @param name Name of the surface. * @return Pointer to the surface. */
| 99 | * @return Pointer to the surface. |
| 100 | */ |
| 101 | Surface *ResourcePack::getSurface(const std::string &name) const |
| 102 | { |
| 103 | std::map<std::string, Surface*>::const_iterator i = _surfaces.find(name); |
| 104 | if (_surfaces.end() != i) return i->second; else return 0; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Returns a specific surface set from the resource set. |