API Documentation
RenderContextDescriptor.h
1 // RenderContextDescriptor.h
3 //
5 
6 namespace nkGraphics
7 {
14  {
15  public :
16 
17  // Constructor, destructor
30  RenderContextDescriptor (nkWinUi::Window* window, bool vsync = false) noexcept ;
39  RenderContextDescriptor (Texture* colorTarget) noexcept ;
48  RenderContextDescriptor (Texture* colorTarget, Texture* depthTarget) noexcept ;
60  RenderContextDescriptor (unsigned int width, unsigned int height, bool forOffscreen, bool vsync = false) noexcept ;
61 
62  // Getters
69  unsigned int getWidth () const ;
76  unsigned int getHeight () const ;
80  nkWinUi::Window* getWindow () const ;
84  Texture* getColorTarget () const ;
88  Texture* getDepthTarget () const ;
95  bool getOffscreenContext () const ;
102  bool getVsync () const ;
103  } ;
104 }
nkGraphics::RenderContextDescriptor::RenderContextDescriptor
RenderContextDescriptor() noexcept
nkGraphics::RenderContextDescriptor::getVsync
bool getVsync() const
nkGraphics::Texture
A texture used for rendering, hosted on GPU.
Definition: Texture.h:12
nkGraphics::RenderContextDescriptor
A descriptor, used when creating a context along with its window.
Definition: RenderContextDescriptor.h:14
nkGraphics::RenderContextDescriptor::getOffscreenContext
bool getOffscreenContext() const
nkGraphics::RenderContextDescriptor::getColorTarget
Texture * getColorTarget() const
nkGraphics::RenderContextDescriptor::getDepthTarget
Texture * getDepthTarget() const
nkGraphics::RenderContextDescriptor::getWidth
unsigned int getWidth() const
nkGraphics::RenderContextDescriptor::getWindow
nkWinUi::Window * getWindow() const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkGraphics::RenderContextDescriptor::getHeight
unsigned int getHeight() const