Loading...
Searching...
No Matches
hellfire::TextureManager Class Reference

#include <TextureManager.h>

Collaboration diagram for hellfire::TextureManager:

Public Member Functions

Textureget_texture (const std::string &path)
 
void add_texture (const std::string &path, Texture *texture)
 
void clear ()
 
 ~TextureManager ()
 

Static Public Member Functions

static TextureManagerget_instance ()
 

Private Member Functions

 TextureManager ()
 

Private Attributes

std::unordered_map< std::string, Texture * > textures_
 

Static Private Attributes

static TextureManagerinstance_ = nullptr
 

Detailed Description

Definition at line 13 of file TextureManager.h.

Constructor & Destructor Documentation

◆ ~TextureManager()

hellfire::TextureManager::~TextureManager ( )
inline

Definition at line 23 of file TextureManager.h.

◆ TextureManager()

hellfire::TextureManager::TextureManager ( )
inlineprivate

Definition at line 30 of file TextureManager.h.

Member Function Documentation

◆ add_texture()

void hellfire::TextureManager::add_texture ( const std::string &  path,
Texture texture 
)
inline

Definition at line 19 of file TextureManager.h.

◆ clear()

void hellfire::TextureManager::clear ( )

Definition at line 23 of file TextureManager.cpp.

◆ get_instance()

hellfire::TextureManager & hellfire::TextureManager::get_instance ( )
static

Definition at line 8 of file TextureManager.cpp.

◆ get_texture()

hellfire::Texture * hellfire::TextureManager::get_texture ( const std::string &  path)

Definition at line 15 of file TextureManager.cpp.

Member Data Documentation

◆ instance_

hellfire::TextureManager * hellfire::TextureManager::instance_ = nullptr
staticprivate

Definition at line 28 of file TextureManager.h.

◆ textures_

std::unordered_map<std::string, Texture*> hellfire::TextureManager::textures_
private

Definition at line 33 of file TextureManager.h.


The documentation for this class was generated from the following files: