CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::UIViewportDelegate Class Reference

A delegate class for UIViewport. More...

#include <CeresEngine/UI/UIViewport.hpp>

Inheritance diagram for CeresEngine::UIViewportDelegate:
CeresEngine::UIViewportViewController

Public Member Functions

virtual bool shouldRecreateRenderTarget (UIViewport &view, const GPUImagePtr &oldImage, const UISize &newSize)
 Allows the delegate to decide if the render target image should be recreated.
 
virtual void willRecreateRenderTarget (UIViewport &view, const GPUImagePtr &oldImage, const UISize &newSize)
 Notifies the delegate when the viewport view is about to recreate its render target image.
 
virtual void didRecreateRenderTarget (UIViewport &view)
 Notifies the delegate when the viewport view has to recreated its render target image.
 

Detailed Description

A delegate class for UIViewport.

Member Function Documentation

◆ didRecreateRenderTarget()

virtual void CeresEngine::UIViewportDelegate::didRecreateRenderTarget ( UIViewport view)
inlinevirtual

Notifies the delegate when the viewport view has to recreated its render target image.

◆ shouldRecreateRenderTarget()

virtual bool CeresEngine::UIViewportDelegate::shouldRecreateRenderTarget ( UIViewport view,
const GPUImagePtr oldImage,
const UISize newSize 
)
inlinevirtual

Allows the delegate to decide if the render target image should be recreated.

Parameters
oldImageThe current image being used.
newSizeThe new size of the image to be created.

◆ willRecreateRenderTarget()

virtual void CeresEngine::UIViewportDelegate::willRecreateRenderTarget ( UIViewport view,
const GPUImagePtr oldImage,
const UISize newSize 
)
inlinevirtual

Notifies the delegate when the viewport view is about to recreate its render target image.

Parameters
oldImageThe old image being scrapped.
newSizeThe new size of the image to be created.

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