ManaPlus
Static Public Member Functions | Data Fields
AtlasLoader Struct Reference

Static Public Member Functions

static Resourceload (const void *const v)
 

Data Fields

const std::string name
 
const StringVect *const files
 

Detailed Description

Definition at line 35 of file atlasloader.cpp.

Member Function Documentation

◆ load()

static Resource* AtlasLoader::load ( const void *const  v)
inlinestatic

Definition at line 42 of file atlasloader.cpp.

43  {
44  if (v == nullptr)
45  return nullptr;
46 
47  const AtlasLoader *const rl = static_cast<const AtlasLoader *>(v);
49  rl->name, *rl->files);
50  if (resource == nullptr)
51  reportAlways("Atlas creation error: %s", rl->name.c_str())
52  return resource;
53  }
#define reportAlways(...)
Definition: checkutils.h:253
static AtlasResource * loadTextureAtlas(const std::string &name, const StringVect &files)
const std::string name
Definition: atlasloader.cpp:39
const StringVect *const files
Definition: atlasloader.cpp:40

References files, AtlasManager::loadTextureAtlas(), name, and reportAlways.

Referenced by Loader::getAtlas().

Field Documentation

◆ files

const StringVect* const AtlasLoader::files

Definition at line 40 of file atlasloader.cpp.

Referenced by load().

◆ name

const std::string AtlasLoader::name

Definition at line 39 of file atlasloader.cpp.

Referenced by load().


The documentation for this struct was generated from the following file: