|
| virtual void | setSize (int newWidth, int newHeight, bool forceIt=false)=0 |
| | Set the size of the main drawing buffer used by the graphics device in pixels.
|
| |
| virtual void | setFullscreen (bool enabled)=0 |
| | Switch this swap chain to fullscreen or windowed depending on the parameter.
|
| |
| virtual bool | isFullscreen ()=0 |
| | Test whether the current swap chain is fullscreen.
|
| |
| virtual void | beginFrame ()=0 |
| | Signal the beginning of a new frame to the graphics device.
|
| |
| virtual void | endFrame (uint32_t syncInterval=0, PresentFlags presentFlags=PresentFlags::None)=0 |
| | Signal the end of a frame to the graphics device.
|
| |
| virtual const RenderTargetHandle & | getRenderTarget () const =0 |
| | Returns the render target managed by this swap chain.
|
| |
| virtual const DepthStencilHandle & | getDepthStencil () const =0 |
| | Returns the depth stencil managed by this swap chain.
|
| |
| virtual int | getWidth () const =0 |
| | Returns the pixel width of this swap chain.
|
| |
| virtual int | getHeight () const =0 |
| | Returns the pixel height of this swap chain.
|
| |
| virtual int | getSamples () const =0 |
| | Returns the number of samples this swap chain has.
|
| |
Definition at line 10 of file ISwapChain.h.
◆ beginFrame()
| virtual void Cogs::ISwapChain::beginFrame |
( |
| ) |
|
|
pure virtual |
◆ endFrame()
Signal the end of a frame to the graphics device.
When the graphics device itself is responsible for managing the device context (e.g in D3D11), and the PresentFlags::NoSwap flag is not set, this will swap the back buffer to make the result of previous drawing visible.
- Parameters
-
| syncInterval | Synchronization interval.
- 0 - No synchronization, presentation occurs immediately.
- 1 - Synchronize presentation after 1 vertical blank.
|
| presentFlags | A combination of PresentFlags controlling the presentation of the rendered frame. |
- See also
- PresentFlags
Implemented in Cogs::SwapChainD3D11, Cogs::SwapChainGL20, and Cogs::SwapChainWebGPU.
◆ getDepthStencil()
◆ getHeight()
| virtual int Cogs::ISwapChain::getHeight |
( |
| ) |
const |
|
pure virtual |
◆ getRenderTarget()
◆ getSamples()
| virtual int Cogs::ISwapChain::getSamples |
( |
| ) |
const |
|
pure virtual |
◆ getWidth()
| virtual int Cogs::ISwapChain::getWidth |
( |
| ) |
const |
|
pure virtual |
◆ isFullscreen()
| virtual bool Cogs::ISwapChain::isFullscreen |
( |
| ) |
|
|
pure virtual |
◆ setFullscreen()
| virtual void Cogs::ISwapChain::setFullscreen |
( |
bool |
enabled | ) |
|
|
pure virtual |
◆ setSize()
| virtual void Cogs::ISwapChain::setSize |
( |
int |
newWidth, |
|
|
int |
newHeight, |
|
|
bool |
forceIt = false |
|
) |
| |
|
pure virtual |
Set the size of the main drawing buffer used by the graphics device in pixels.
- Parameters
-
| newWidth | Width of the drawing buffer in pixels. |
| newHeight | Height of the drawing buffer in pixels. |
| forceIt | Force the resize even if the new width and height are identical to the existing values. |
Implemented in Cogs::SwapChainD3D11, Cogs::SwapChainGL20, and Cogs::SwapChainWebGPU.
◆ windowData
| WindowData* Cogs::ISwapChain::windowData = nullptr |
|
protected |
The documentation for this class was generated from the following file: