Class TGeneratedTextureFunctionality

Unit

Declaration

type TGeneratedTextureFunctionality = class(TNodeFunctionality)

Description

Functionality for all X3D nodes that represent generated textures.

Hierarchy

Overview

Fields

Public InternalLastStateId: TFrameId;
Public InternalUpdateNeeded: boolean;

Methods

Protected function GetUpdate: TTextureUpdate; virtual; abstract;
Protected procedure SetUpdate(const Value: TTextureUpdate); virtual; abstract;
Public constructor Create(const TextureNode: TAbstractTextureNode);
Public function NeedsUpdate: Boolean;
Public procedure PostUpdate;

Properties

Public property Update: TTextureUpdate read GetUpdate write SetUpdate;

Description

Fields

Public InternalLastStateId: TFrameId;

Used by TCastleScene to track when to set InternalUpdateNeeded.

Public InternalUpdateNeeded: boolean;

When Update is upAlways, you can check this to know if really something visible changed since last update. If not, then you do not have to update the texture — no point, since it would look exactly like the current one.

TCastleScene takes care to set this field. After each actual update of the texture, it's set to False. Each time something visible affecting the look of this texture possibly changed, it's set to True.

Methods

Protected function GetUpdate: TTextureUpdate; virtual; abstract;
 
Protected procedure SetUpdate(const Value: TTextureUpdate); virtual; abstract;
 
Public constructor Create(const TextureNode: TAbstractTextureNode);
 
Public function NeedsUpdate: Boolean;

Depending on Update, decide whether we need updating.

Public procedure PostUpdate;

Call after NeedsUpdate returned True and you updated the texture. Will take care of sending "NONE" after "NEXT_FRAME_ONLY".

Properties

Public property Update: TTextureUpdate read GetUpdate write SetUpdate;
 

Generated by PasDoc 0.16.0.