Class TCastleSimpleBackground
Unit
Declaration
type TCastleSimpleBackground = class(TCastleUserInterface)
Description
Warning: this symbol is deprecated: use TCastleRectangleControl with FullSize=true; note that by default it has White color, while TCastleSimpleBackground has by default Black color.
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.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleSimpleBackground
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
procedure Render; override; |
Properties
property Width default 0; |
|
property Height default 0; |
|
property Color: TCastleColor read FColor write SetColor; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
procedure Render; override; |
|
This item has no description. Showing description inherited from TCastleUserInterface.Render. Render a control. Called only when Exists and render context is initialized. Do not call this method. It will be automatically called by the engine when needed. It will be called when UI is part of TCastleContainer.Controls list or rendered (e.g. for off-screen rendering) by TCastleContainer.RenderControl. You should only override this method. See https://castle-engine.io/manual_2d_ui_custom_drawn.php for examples what you can put here. You can depend on some OpenGL state being set before calling this method. You can depend on it being set, and you can carelessly change it. This state we set:
Beware that GLSL RenderContext.CurrentProgram has undefined value when this is called. You should always set it, before making direct OpenGL drawing calls (all the engine drawing routines do it already, this is only a concern if you make direct OpenGL / OpenGLES calls). |
Properties
property Width default 0; |
|
This item has no description. Showing description inherited from TCastleUserInterface.Width. These properties determine the control size. See the EffectiveRect documentation for details how the size is calculated.
|
property Height default 0; |
|
This item has no description. |
property Color: TCastleColor read FColor write SetColor; |
|
Background color. By default, this is black color with opaque alpha. |
Generated by PasDoc 0.16.0-snapshot.