Class ResourceLoader

Class Documentation

class ResourceLoader

Public Functions

ResourceLoader()

Constructor.

virtual ~ResourceLoader()

Destructor.

virtual bool IsALoadableFileExtension(std::string _extention)

returns true if the file maybe is able to be loaded by this Loader based on the file extension (e.g. “.mesh”)

virtual Resource *LoadResource(bx::FileReaderI *pStream, uint32_t _handle, const std::string &_filename, void *_extraParams) = 0

Loads a resource from a FileSystem and return its pointer.

Return
Returns the created resource pointer. Note resource may not loaded yet.
Parameters
  • pStream:
  • _extraParams:

Protected Attributes

std::vector<std::string> m_aFileExtension

The file extension list that this loader is capable to load.

bool m_bSwapEndian

Swap the loaded data or not.