Class TGeneratedTextureFunctionality

Unit

Declaration

type TGeneratedTextureFunctionality = class(TNodeFunctionality)

Description

Functionality for all X3D nodes that represent generated textures.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 25).

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.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 33).

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.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 44).

Methods

Protected function GetUpdate: TTextureUpdate; virtual; abstract;

This item has no description.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 29).

Protected procedure SetUpdate(const Value: TTextureUpdate); virtual; abstract;

This item has no description.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 30).

Public constructor Create(const TextureNode: TAbstractTextureNode);

This item has no description.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 46).

Public function NeedsUpdate: Boolean;

Depending on Update, decide whether we need updating.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 49).

Public procedure PostUpdate;

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

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 53).

Properties

Public property Update: TTextureUpdate read GetUpdate write SetUpdate;

This item has no description.

Source: src/scene/x3d/x3dnodes_generatedtextures.inc (line 55).


Generated by PasDoc 0.17.0.snapshot.