Class TAbstractTexture3DNode

Unit

Declaration

type TAbstractTexture3DNode = class(TAbstractSingleTextureNode)

Description

Base type for all node types that specify 3D sources for texture images.

Hierarchy

Overview

Methods

Public procedure CreateNode; override;
Public destructor Destroy; override;

Properties

Public property FdRepeatS: TSFBool read FFdRepeatS;
Public property FdRepeatT: TSFBool read FFdRepeatT;
Public property FdRepeatR: TSFBool read FFdRepeatR;
Public property FdTextureProperties: TSFNode read FFdTextureProperties;
Public property TextureLoaded: boolean read FTextureLoaded write SetTextureLoaded;
Public property TextureImage: TEncodedImage read FTextureImage;
Public property TextureComposite: TCompositeImage read FTextureComposite;
Public property RepeatR: Boolean read GetRepeatR write SetRepeatR;
Public property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties;

Description

Methods

Public procedure CreateNode; override;
 
Public destructor Destroy; override;
 

Properties

Public property FdRepeatS: TSFBool read FFdRepeatS;
 
Public property FdRepeatT: TSFBool read FFdRepeatT;
 
Public property FdRepeatR: TSFBool read FFdRepeatR;
 
Public property FdTextureProperties: TSFNode read FFdTextureProperties;
 
Public property TextureLoaded: boolean read FTextureLoaded write SetTextureLoaded;

Load and unload 3D texture.

When loading, we will try to set TextureImage and TextureComposite. If loading is successful, TextureImage will be always set to non-nil (TextureComposite will be set to non-nil only if image came from some composite (DDS, KTX...) image). If loading failed, both TextureImage and TextureComposite will be Nil.

Note that even when loading failed (TextureImage remained Nil), TextureLoaded value still changes to True. This is good — it makes assignment TextureLoaded := true always work, and (more important) it prevents trying to load (and displaying uselessly the same WritelnWarning) again at successful TextureLoaded := true.

In case of problems (for example when some URL cannot be loaded), we will make WritelnWarning.

Public property TextureImage: TEncodedImage read FTextureImage;
 
Public property TextureComposite: TCompositeImage read FTextureComposite;
 
Public property RepeatR: Boolean read GetRepeatR write SetRepeatR;
 
Public property TextureProperties: TTexturePropertiesNode read GetTextureProperties write SetTextureProperties;
 

Generated by PasDoc 0.16.0.