Class TX3DNodesCache

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TX3DNodesCache = class(TTexturesVideosCache)

Description

Cache for resources not specific to renderer (OpenGL). Includes all TTexturesVideosCache resources (texture, movie data) and adds cache for 3D models.

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function Load3D(const URL: string): TX3DRootNode;
Public procedure Free3D(var Node: TX3DRootNode);
Public function Empty: boolean; override;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function Load3D(const URL: string): TX3DRootNode;

Load 3D model, just like Load3D 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.

Public procedure Free3D(var Node: TX3DRootNode);

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

Public function Empty: boolean; override;
 

Generated by PasDoc 0.13.0 on 2013-08-17 21:27:15