Class TCastleSimpleBackground

Unit

Declaration

type TCastleSimpleBackground = class(TUIControl)

Description

Fill the whole window with a simple color. This is very fast, but it unconditionally clears the whole window, and there is no blending (if your Color has some alpha, it is just copied to the color buffer). To clear the rectangle with a color, with optional blending, use TCastleRectangleControl instead.

Note that TCastleSceneManager clears the background under itself by default. See TCastleSceneManager.Transparent, TCastleSceneManager.BackgroundColor . So if you use TCastleSceneManager that fills the whole screen, then there's no need to use this control.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public procedure Render; override;

Properties

Public property Color: TCastleColor read FColor write SetColor;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public procedure Render; override;
 

Properties

Public property Color: TCastleColor read FColor write SetColor;

Background color. By default, this is black color with opaque alpha.


Generated by PasDoc 0.15.0.