API Documentation
RenderContextManager.h
1 // RenderContextManager.h
3 //
5 
6 namespace nkGraphics
7 {
14  class RenderContextManager final : public nkCommon::MaybeSingletonClass<RenderContextManager>
15  {
16  public :
17 
18  // Getter
22  const std::unordered_map<void*, nkMemory::UniquePtr<RenderContext>>& getRenderContextMap () const ;
38 
48 
60  void activateContext (RenderContext* context) ;
61 
67  void eraseFor (nkWinUi::Window* win) ;
73  void erase (RenderContext* context) ;
74  } ;
75 }
nkGraphics::RenderContextManager::activateContextOf
void activateContextOf(nkWinUi::Window *win)
nkGraphics::RenderContextManager::getRenderContextMap
const std::unordered_map< void *, nkMemory::UniquePtr< RenderContext > > & getRenderContextMap() const
nkGraphics::RenderContextManager::getActiveRenderContext
RenderContext * getActiveRenderContext() const
nkGraphics::RenderContextDescriptor
A descriptor, used when creating a context along with its window.
Definition: RenderContextDescriptor.h:14
nkGraphics::RenderContextManager::activateContext
void activateContext(RenderContext *context)
nkGraphics::RenderContext
A rendering context, attached to a window or an offscreen texture.
Definition: RenderContext.h:14
nkGraphics::RenderContextManager::erase
void erase(RenderContext *context)
nkGraphics::RenderContextManager
Manages the render contexts recorded.
Definition: RenderContextManager.h:15
nkWinUi::Window
A graphical window, made for general purpose.
Definition: Window.h:14
nkGraphics::RenderContextManager::getDefaultRenderContext
RenderContext * getDefaultRenderContext() const
nkGraphics::RenderContextManager::eraseFor
void eraseFor(nkWinUi::Window *win)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::RenderContextManager::createRenderContext
RenderContext * createRenderContext(const RenderContextDescriptor &contextDesc)
nkGraphics::RenderContextManager::getRenderContextOf
RenderContext * getRenderContextOf(nkWinUi::Window *win) const