|
Crossfire Server
1.75.0
|
#include <PngLoader.h>
Inheritance diagram for PngLoader:Public Member Functions | |
| virtual void | load (BufferReader *reader, const std::string &filename) override |
| Load assets from the specified reader. More... | |
| PngLoader (Faces *faces, Facesets *facesets) | |
| virtual bool | willLoad (const std::string &filename) override |
| Whether this instance will process or not the specified file. More... | |
Public Member Functions inherited from AssetLoader | |
| virtual | ~AssetLoader () |
| Virtual destructor for inheritance. More... | |
Protected Attributes | |
| Faces * | m_faces |
| Facesets * | m_facesets |
Definition at line 22 of file PngLoader.h.
Definition at line 22 of file PngLoader.cpp.
|
overridevirtual |
Load assets from the specified reader.
| reader | reader. |
| filename | full filename. |
Implements AssetLoader.
Definition at line 25 of file PngLoader.cpp.
References buf, bufferreader_data(), bufferreader_data_length(), face_info::data, fatal(), AssetsCollection< T, Key >::get(), llevDebug, LOG(), m_faces, m_facesets, Face::name, Face::number, OUT_OF_MEMORY, ROTATE_RIGHT, split(), split_string(), and strdup_local.
Referenced by willLoad().
|
inlineoverridevirtual |
Whether this instance will process or not the specified file.
| filename | full file path. |
Implements AssetLoader.
Definition at line 26 of file PngLoader.h.
References Utils::endsWith(), and load().
|
protected |
Definition at line 32 of file PngLoader.h.
Referenced by load().
|
protected |
Definition at line 33 of file PngLoader.h.
Referenced by load().