LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::ResizeBuffersFlags Struct Reference

Swap-chain resize buffers flags. More...

#include <SwapChainFlags.h>

Public Types

enum  { AdaptSurface = (1 << 0) , FullscreenMode = (1 << 1) , WindowedMode = (1 << 2) , StrictResolution = (1 << 3) }

Detailed Description

Swap-chain resize buffers flags.

See also
SwapChain::ResizeBuffers

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
AdaptSurface 

Adapts the swap-chain's surface for the new resolution.

See also
Surface::AdaptForVideoMode
FullscreenMode 

Puts the swap-chain into fullscreen mode.

Remarks
This implies AdaptSurface but cannot be used in combination with the WindowedMode flag.
See also
WindowedMode
SwapChain::SwitchFullscreen
WindowedMode 

Puts the swap-chain into windowed mode.

Remarks
This implies AdaptSurface but cannot be used in combination with the FullscreenMode flag.
See also
FullscreenMode
SwapChain::SwitchFullscreen
StrictResolution 

Only reports success if the swap buffers were resized to the exact resolution requested.

Remarks
A requested resolution is only a hint: the platform may clamp it to what the surface permits. By default, SwapChain::ResizeBuffers returns true as long as the swap buffers were resized to a valid resolution, even if it differs from the request. With this flag, it returns false on such a mismatch. The swap buffers are resized either way and SwapChain::GetResolution reports what was actually allocated.
Todo
This flag should indicate that a failed swap-chain resize should have no effect other than returning false; As of this writing, this only results in returning false, but does not guarantee that the backend won't re-create the swap-chain and not restore it.
See also
SwapChain::ResizeBuffers
SwapChain::GetResolution

The documentation for this struct was generated from the following file: