Unit CastleResources
Description
Manage resources with animations that may be reused by multiple instances. This is in practice used for creatures and items animations in our "Utilities for typical 3D games", https://castle-engine.io/manual_high_level_3d_classes.php .
Note that you do not need this unit in many normal cases when dealing with animations. It is generally simpler and more adviced to use TCastleScene and TCastleScene.PlayAnimation to play animations, see https://castle-engine.io/manual_scene.php .
Uses
- Classes
- DOM
- Generics.Collections
- CastleVectors
- CastleXMLConfig
- CastleTimeUtils
- CastleFrustum
- CastleScene
- X3DNodes
- CastleTransform
- CastleBoxes
- CastleFindFiles
- CastleSectors
Overview
Classes, Interfaces, Objects and Records
Name | Description |
---|---|
Class T3DResourceAnimation |
Animation defined by T3DResource. |
Class T3DResourceAnimationList |
|
Class TResourceFrame |
Display a specified frame of the specified animation. |
Class TAbstractLevel |
Abstract level information, with information useful to spawn resources like creatures and items. |
Class T3DResource |
Resource used for rendering and processing of 3D objects. |
Class T3DResourceList |
Functions and Procedures
function Resources: T3DResourceList; |
procedure RegisterResourceClass(const AClass: T3DResourceClass; const TypeName: string); |
Types
T3DResourceClass = class of T3DResource; |
Description
Functions and Procedures
function Resources: T3DResourceList; |
All known resources. Usually you call Resources.LoadFromFiles to fill this list, based on resource.xml files present in your data. |
procedure RegisterResourceClass(const AClass: T3DResourceClass; const TypeName: string); |
Register a resource class, to allow creating resources (like a creature or item) of this class by using appropriate type="xxx" inside resource.xml file. |
Types
T3DResourceClass = class of T3DResource; |
Generated by PasDoc 0.16.0.