MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getSurface

Method getSurface

src/Resource/ResourcePack.cpp:101–105  ·  view source on GitHub ↗

* Returns a specific surface from the resource set. * @param name Name of the surface. * @return Pointer to the surface. */

Source from the content-addressed store, hash-verified

99 * @return Pointer to the surface.
100 */
101Surface *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.

Callers 1

setPaletteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected