SimpleGL  1.1.0
A framework for platform independent rendering
Public Member Functions | List of all members
sgl::TextureImageManager Class Reference

This class provides methods for managing texture images. More...

#include <manager_vk.hpp>

Inheritance diagram for sgl::TextureImageManager:
sgl::Manager< TextureImage >

Public Member Functions

void remove (std::string name) override
 Removes and disposes a texture image from the storage. More...
 
void clear () override
 Removes all texture images and disposes them. More...
 
TextureImageload (std::string path, std::string name)
 Loads a texture from file and stores it. More...
 
- Public Member Functions inherited from sgl::Manager< TextureImage >
 ~Manager (void)
 Deletes a manager and disposes all managed objects. More...
 
void put (std::string name, TextureImage *value)
 Stores a object with specified name. More...
 
TextureImageget (std::string name)
 Gets a managed object from the storage. More...
 

Additional Inherited Members

- Protected Member Functions inherited from sgl::Manager< TextureImage >
 Manager (void)
 Initializes a new manager. More...
 
- Protected Attributes inherited from sgl::Manager< TextureImage >
std::map< std::string, TextureImage * > objects
 Contains the objects to manage. More...
 

Detailed Description

This class provides methods for managing texture images.

Definition at line 57 of file manager_vk.hpp.

Member Function Documentation

void sgl::TextureImageManager::clear ( )
overridevirtual

Removes all texture images and disposes them.

Reimplemented from sgl::Manager< TextureImage >.

Definition at line 77 of file manager_vk.cpp.

TextureImage * sgl::TextureImageManager::load ( std::string  path,
std::string  name 
)

Loads a texture from file and stores it.

Parameters
pathFile path to the image.
nameThe name of the texture.
Returns
The loaded texture image.

Definition at line 88 of file manager_vk.cpp.

void sgl::TextureImageManager::remove ( std::string  name)
overridevirtual

Removes and disposes a texture image from the storage.

Parameters
nameThe name of the texture image.

Reimplemented from sgl::Manager< TextureImage >.

Definition at line 68 of file manager_vk.cpp.


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