Class TImageBackgroundNode

Unit

Declaration

type TImageBackgroundNode = class(TAbstractBackgroundNode)

Description

Display a 2D image as a background.

Hierarchy

Overview

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
Public procedure CreateNode; override;
Public class function ClassX3DType: string; override;
Public procedure SetTexCoords(const Value: array of TVector2);
Public procedure SetTexCoords(const Value: TVector2List);

Properties

Public property FdColor: TSFColorRGBA read FFdColor;
Public property FdTexture: TSFNode read FFdTexture;
Public property FdTexCoords: TMFVec2f read FFdTexCoords;
Public property Color: TCastleColor read GetColor write SetColor;
Public property Texture: TAbstractTextureNode read GetTexture write SetTexture;

Description

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
 
Public procedure CreateNode; override;
 
Public class function ClassX3DType: string; override;
 
Public procedure SetTexCoords(const Value: array of TVector2);
 
Public procedure SetTexCoords(const Value: TVector2List);
 

Properties

Public property FdColor: TSFColorRGBA read FFdColor;
 
See also
Color
Color that is multiplied by the texture color.
Public property FdTexture: TSFNode read FFdTexture;
 
See also
Texture
Texture displayed in a full-screen quad.
Public property FdTexCoords: TMFVec2f read FFdTexCoords;

Texture coordinates of the full-screen quad. By default they use the whole texture area:

  1. Vector2(0, 0),

  2. Vector2(1, 0),

  3. Vector2(1, 1),

  4. Vector2(0, 1)

It is undefined what happens if there are not exactly 4 items.

Public property Color: TCastleColor read GetColor write SetColor;

Color that is multiplied by the texture color. Opaque white by default.

Note that the alpha component of this color matters (just like the alpha channel of the texture in Texture). If the resulting image is partially-transparent, it will be mixed with black color.

Public property Texture: TAbstractTextureNode read GetTexture write SetTexture;

Texture displayed in a full-screen quad. Only 2D single-texture nodes are supported now. If you leave this as Nil, the image background has no visible effect.


Generated by PasDoc 0.16.0.