Class TX3DFontTexturesCache

Unit

Declaration

type TX3DFontTexturesCache = class(TX3DNodesCache)

Description

Cache for font texture nodes (TPixelTextureNode that we need for each font). Descends from TX3DNodesCache, so can also cache textures, movies, any X3D nodes.

Source: scene/x3d/x3dnodes_x3dfonttexturescache.inc (line 24).

Hierarchy

Show Additional Members:

Overview

Fields

Public Log: Boolean;

Methods

Protected procedure CheckEmpty;
Public constructor Create;
Public destructor Destroy; override;
Public function Video_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TVideo;
Public procedure Video_DecReference(var Video: TVideo);
Public function Empty: boolean; virtual;
Public constructor Create;
Public destructor Destroy; override;
Public function TextureImage_IncReference(const Url: String; out Composite: TCompositeImage; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload;
Public function TextureImage_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload;
Public function TextureImage_IncReference(const Url: String; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload;
Public procedure TextureImage_DecReference(var Image: TEncodedImage; var Composite: TCompositeImage); overload;
Public procedure TextureImage_DecReference(var Image: TEncodedImage); overload;
Public function Empty: boolean; override;
Public constructor Create;
Public destructor Destroy; override;
Public function LoadNode(const URL: String): TX3DRootNode;
Public function IsCached(const URL: String): Boolean;
Public function TryCopyNode(const URL: String): TX3DRootNode;
Public procedure FreeNode(var Node: TX3DRootNode);
Public function Empty: boolean; override;
Public constructor Create;
Public destructor Destroy; override;
Public function LoadFontTexture(const Font: TCastleFont; const Blending: boolean): TPixelTextureNode;
Public procedure FreeFontTexture(var FontTexture: TPixelTextureNode);
Public function Empty: boolean; override;

Properties

Public property OnEmpty: TProcedure read FOnEmpty write FOnEmpty;

Description

Fields

Public Log: Boolean;

This item has no description.

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 35).

Methods

Protected procedure CheckEmpty;

If cache is empty, calls OnEmpty. Note that OnEmpty may destroy current instance, so call CheckEmpty only when you finished processing — Self may be invalid afterwards.

Source: images/castlevideos.pas (line 333).

Public constructor Create;

This item has no description.

Source: images/castlevideos.pas (line 335).

Public destructor Destroy; override;

This item has no description.

Source: images/castlevideos.pas (line 336).

Public function Video_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TVideo;

This item has no description.

Source: images/castlevideos.pas (line 338).

Public procedure Video_DecReference(var Video: TVideo);

This item has no description.

Source: images/castlevideos.pas (line 341).

Public function Empty: boolean; virtual;

This item has no description.

Source: images/castlevideos.pas (line 343).

Public constructor Create;

This item has no description.

Source: images/castletextureimages.pas (line 152).

Public destructor Destroy; override;

This item has no description.

Source: images/castletextureimages.pas (line 153).

Public function TextureImage_IncReference(const Url: String; out Composite: TCompositeImage; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload;

This item has no description.

Source: images/castletextureimages.pas (line 155).

Public function TextureImage_IncReference(const Url: String; out AlphaChannel: TAlphaChannel; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload;

This item has no description.

Source: images/castletextureimages.pas (line 159).

Public function TextureImage_IncReference(const Url: String; const LoadOptions: TLoadImageOptions = []): TEncodedImage; overload;

This item has no description.

Source: images/castletextureimages.pas (line 162).

Public procedure TextureImage_DecReference(var Image: TEncodedImage; var Composite: TCompositeImage); overload;

This item has no description.

Source: images/castletextureimages.pas (line 165).

Public procedure TextureImage_DecReference(var Image: TEncodedImage); overload;

This item has no description.

Source: images/castletextureimages.pas (line 166).

Public function Empty: boolean; override;

This item has no description.

Source: images/castletextureimages.pas (line 168).

Public constructor Create;

This item has no description.

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 37).

Public destructor Destroy; override;

This item has no description.

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 38).

Public function LoadNode(const URL: String): TX3DRootNode;

Load model, just like X3DLoad.LoadNode but with a cache. URL must be absolute (not relative).

Note that this should not be used if you plan to modify the model graph (for example by VRML/X3D events). In such case, the cache should not be used, as it would make all the model instances shared. For example, if you inline the same model multiple times, you could not modify one instance independent from another.

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 48).

Public function IsCached(const URL: String): Boolean;

Is the given URL cached.

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 51).

Public function TryCopyNode(const URL: String): TX3DRootNode;

If the given URL is cached, return a DeepCopy of the node from cache. Otherwise returns Nil. This makes sense if you possibly already have this model in the cache, and now you want to load it again, *and* modify the X3D nodes tree afterwards.

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 57).

Public procedure FreeNode(var Node: TX3DRootNode);

Unload previously loaded here model. Node may be Nil (then it's ignored), or something loaded by LoadNode (then it's released and changed to Nil).

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 62).

Public function Empty: boolean; override;

This item has no description.

Source: scene/x3d/x3dnodes_x3dnodescache.inc (line 64).

Public constructor Create;

This item has no description.

Source: scene/x3d/x3dnodes_x3dfonttexturescache.inc (line 41).

Public destructor Destroy; override;

This item has no description.

Source: scene/x3d/x3dnodes_x3dfonttexturescache.inc (line 42).

Public function LoadFontTexture(const Font: TCastleFont; const Blending: boolean): TPixelTextureNode;

Return TPixelTextureNode to draw given font configuration.

Source: scene/x3d/x3dnodes_x3dfonttexturescache.inc (line 45).

Public procedure FreeFontTexture(var FontTexture: TPixelTextureNode);

This item has no description.

Source: scene/x3d/x3dnodes_x3dfonttexturescache.inc (line 48).

Public function Empty: boolean; override;

This item has no description.

Source: scene/x3d/x3dnodes_x3dfonttexturescache.inc (line 50).

Properties

Public property OnEmpty: TProcedure read FOnEmpty write FOnEmpty;

Called when cache becomes empty. This is only for internal usage by X3DNodes unit for now.

Source: images/castlevideos.pas (line 347).


Generated by PasDoc 0.17.0.snapshot.