Represents a UIBackingStore that renders its contents to an image texture.
More...
#include <CeresEngine/UI/UIBackingStore.hpp>
Represents a UIBackingStore that renders its contents to an image texture.
The UIFramebufferBackingStore class is a subclass of BackingStore and provides functionality to render the window contents to a color render target image. It also has support for a depth/stencil buffer for rendering bezier curves correctly.
◆ super
◆ UIFramebufferBackingStore() [1/2]
| CeresEngine::UIFramebufferBackingStore::UIFramebufferBackingStore |
( |
GPUDevice & |
device | ) |
|
|
explicit |
◆ UIFramebufferBackingStore() [2/2]
| CeresEngine::UIFramebufferBackingStore::UIFramebufferBackingStore |
( |
GPUDevice & |
device, |
|
|
Format |
format |
|
) |
| |
|
explicit |
◆ ~UIFramebufferBackingStore()
| CeresEngine::UIFramebufferBackingStore::~UIFramebufferBackingStore |
( |
| ) |
|
|
overridenoexcept |
◆ copyTo()
Copies the color image contents into the given destination image.
◆ getColorImage()
| GPUImage & CeresEngine::UIFramebufferBackingStore::getColorImage |
( |
| ) |
const |
|
inline |
The color render target image.
The window contents will be rendered to this texture.
◆ getDepthStencilImage()
| GPUImage & CeresEngine::UIFramebufferBackingStore::getDepthStencilImage |
( |
| ) |
const |
|
inline |
The depth/stencil render target image.
This will be used by the renderer to provide correct rendering of bezier curves. This texture is internally managed by the window and cannot be used or replaced externally.
◆ getFormat()
| Format CeresEngine::UIFramebufferBackingStore::getFormat |
( |
| ) |
const |
|
inline |
The format of the backing store.
◆ getRenderPass()
| GPURenderPass & CeresEngine::UIFramebufferBackingStore::getRenderPass |
( |
| ) |
const |
|
inline |
The GPU render pass for rendering the UI.
◆ getRenderTarget()
| GPURenderTarget & CeresEngine::UIFramebufferBackingStore::getRenderTarget |
( |
| ) |
const |
|
inline |
The GPU render target.
Includes both the color and the depth/stencil image as a render target.
◆ getSampleCount()
| Optional< UInt32 > CeresEngine::UIFramebufferBackingStore::getSampleCount |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ getSize()
| Extent2UI CeresEngine::UIFramebufferBackingStore::getSize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isAntiAliasing()
| bool CeresEngine::UIFramebufferBackingStore::isAntiAliasing |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
◆ rebuild()
| void CeresEngine::UIFramebufferBackingStore::rebuild |
( |
| ) |
|
Invalidates the window render buffer.
◆ rebuildIfNeeded()
| void CeresEngine::UIFramebufferBackingStore::rebuildIfNeeded |
( |
| ) |
|
Invalidates the window render buffer.
◆ setAntiAliasing()
| void CeresEngine::UIFramebufferBackingStore::setAntiAliasing |
( |
bool |
antiAliasing | ) |
|
|
overridevirtual |
◆ setFormat()
| void CeresEngine::UIFramebufferBackingStore::setFormat |
( |
Format |
format | ) |
|
The format of the backing store.
◆ setSampleCount()
◆ setSize()
| void CeresEngine::UIFramebufferBackingStore::setSize |
( |
const Extent2UI & |
size | ) |
|
|
overridevirtual |
◆ mAntiAliasing
| bool CeresEngine::UIFramebufferBackingStore::mAntiAliasing = true |
|
private |
If set to true, enables anti-aliased rendering of the window.
◆ mColorImage
| GPUImagePtr CeresEngine::UIFramebufferBackingStore::mColorImage |
|
mutableprivate |
The color render target image.
The window contents will be rendered to this texture.
◆ mDepthStencilImage
| GPUImagePtr CeresEngine::UIFramebufferBackingStore::mDepthStencilImage |
|
mutableprivate |
The depth/stencil render target image.
This will be used by the renderer to provide correct rendering of bezier curves. This texture is internally managed by the window and cannot be used or replaced externally.
◆ mDevice
| GPUDevicePtr CeresEngine::UIFramebufferBackingStore::mDevice |
|
private |
The GPU device that backs the framebuffer.
◆ mDirty
| bool CeresEngine::UIFramebufferBackingStore::mDirty = true |
|
mutableprivate |
◆ mFormat
The format of the backing store.
◆ mRenderPass
The GPU render pass for rendering the UI.
◆ mRenderTarget
The GPU render target.
Includes both the color and the depth/stencil image as a render target.
◆ mSampleCount
If set, forces the use of the given sample count for UI rendering.
◆ mSize
| Extent2UI CeresEngine::UIFramebufferBackingStore::mSize |
|
private |
The size of the backing store framebuffer.
The documentation for this class was generated from the following file: