HAL::BeginDisplay

HAL::BeginDisplay
void BeginDisplay(Color backgroundColor, const Viewport& viewport, bool fullsceneBlendTarget = false, const Matrix2F& viewMatrix = Matrix2F::Identity);
Description

BeginDisplay begins rendering of a display unit that potentially has its own viewport, such as Render::TreeNode (GFx::Movie). The method also fills the background color, and set up default transforms, etc. All rendering calls must take place after this function and before EndDisplay.

Parameters
Parameters 
Description 
Color backgroundColor 
A background color with which the viewport will be filled before rendering the scene. If alpha is 0, background will not be filled. 
const Viewport& viewport 
Pointer to the viewport where the display unit is rendered. 
bool fullsceneBlendTarget = false 
Whether the full screen blend target should be enabled or disabled. This is enabled internally if the scene contains any clips with blend modes that require render targets (and do not have a parent with a layer blend mode). 
const Matrix2F& viewMatrix = Matrix2F::Identity 
The viewport matrix, determining how the content is scaled/translated on screen.