Class i_2D::TextureHolder
ClassList > i_2D > TextureHolder
Public Functions
Type | Name |
---|---|
std::map< char, sf::Texture > | GenerativeWorldTexture () This function loads texture for the generative world images group 6. |
const sf::Texture & | GetTexture (std::string id) Returns a held texture matching the given id. |
void | LoadTexture (std::string id, std::string file_name) Stores a texture under the given id/name;. |
std::map< char, sf::Texture > | ManualWorldTexture () This function loads texture for the manual world images group 8. |
std::map< char, sf::Texture > | MazeTexture () This function loads texture for the maze world images - Default maze. |
std::map< char, sf::Texture > | SecondWorldTexture () This function loads texture for the second world images group 4. |
TextureHolder () = default |
|
~TextureHolder () = default |
Public Functions Documentation
function GenerativeWorldTexture
This function loads texture for the generative world images group 6.
std::map< char, sf::Texture > i_2D::TextureHolder::GenerativeWorldTexture ()
Returns:
std::map< name, texture> returns the map, key is the name of the texture and values is the actual texture
function GetTexture
Returns a held texture matching the given id.
const sf::Texture & i_2D::TextureHolder::GetTexture (
std::string id
)
Parameters:
id
Identifier/Name of the texture stored.
Returns:
The sf::Texture matching the id.
function LoadTexture
Stores a texture under the given id/name;.
void i_2D::TextureHolder::LoadTexture (
std::string id,
std::string file_name
)
Parameters:
id
Identifier used to reference this texture in the future.file_name
File to load the texture from.
function ManualWorldTexture
This function loads texture for the manual world images group 8.
std::map< char, sf::Texture > i_2D::TextureHolder::ManualWorldTexture ()
Returns:
std::map< name, texture> returns the map, key is the name of the texture and values is the actual texture
function MazeTexture
This function loads texture for the maze world images - Default maze.
std::map< char, sf::Texture > i_2D::TextureHolder::MazeTexture ()
Returns:
std::map< name, texture> returns the map, key is the name of the texture and values is the actual texture
function SecondWorldTexture
This function loads texture for the second world images group 4.
std::map< char, sf::Texture > i_2D::TextureHolder::SecondWorldTexture ()
Returns:
std::map< name, texture> returns the map, key is the name of the texture and values is the actual texture
function TextureHolder
i_2D::TextureHolder::TextureHolder () = default
function ~TextureHolder
i_2D::TextureHolder::~TextureHolder () = default
The documentation for this class was generated from the following file source/Interfaces/TextureHolder.hpp