std::shared_ptr< BaseTexture > operator[](const std::string &name) const
Get's texture with name.
Definition: texture_manager.cpp:34
Class for texture manager.
Definition: texture_manager.h:13
bool textureExists(const std::string &name) const noexcept
Function to see if texture with name exists.
Definition: texture_manager.cpp:45
bool loadTexture(const std::string &path)
Loads a texture.
Definition: texture_manager.cpp:21
~TextureManager()
Destroys the object.
Definition: texture_manager.cpp:17
static std::string getNameFromPath(const std::string &path) noexcept
Gets the name from path.
Definition: texture_manager.cpp:52
std::shared_ptr< BaseTexture > getTexture(const std::string &name) const
Gets the texture.
Definition: texture_manager.cpp:38
TextureManager()
TextureManager constructor.
Definition: texture_manager.cpp:13