API Documentation
TextureManager.h
1 // TextureManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class TextureManager final : public nkCommon::SingletonClass<TextureManager>
14  {
15  public :
16 
21 
35  Texture* get (const nkMemory::StringView& name) ;
44  Texture* getByIndex (unsigned int id) ;
51  void rename (const nkMemory::StringView& currentName, const nkMemory::StringView& newName) ;
57  void erase (const nkMemory::StringView& name) ;
58 
65  void setActiveRenderTarget (Texture* target) ;
72  void setActiveDepthTarget (Texture* target) ;
80  Texture* getDepthTarget () const ;
81  } ;
82 }
nkGraphics::Texture
A texture used for rendering, hosted on GPU.
Definition: Texture.h:35
nkGraphics::TextureManager::setActiveRenderTarget
void setActiveRenderTarget(Texture *target)
nkGraphics::TextureManager::getByIndex
Texture * getByIndex(unsigned int id)
nkGraphics::TextureManager::erase
void erase(const nkMemory::StringView &name)
nkGraphics::TextureManager::get
Texture * get(const nkMemory::StringView &name)
nkGraphics::TextureManager::getActiveRenderTarget
Texture * getActiveRenderTarget() const
nkGraphics::TextureManager::~TextureManager
~TextureManager()
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::TextureManager::getDepthTarget
Texture * getDepthTarget() const
nkGraphics::TextureManager::rename
void rename(const nkMemory::StringView &currentName, const nkMemory::StringView &newName)
nkGraphics::TextureManager
Manages the textures available in the component.
Definition: TextureManager.h:14
nkGraphics::TextureManager::setActiveDepthTarget
void setActiveDepthTarget(Texture *target)
nkGraphics::TextureManager::createOrRetrieve
Texture * createOrRetrieve(const nkMemory::StringView &name)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7