Class TResourceRendererList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TResourceRendererList = class(specialize TFPGObjectList<TResourceRenderer>)

Description

Hierarchy

  • TFPGObjectList
  • TResourceRendererList

Overview

Methods

Public function NodeIndex(ANode: TX3DNode): Integer;
Public function Node(ANode: TX3DNode): TResourceRenderer;
Public procedure Unprepare(ANode: TX3DNode);
Public procedure UnprepareAll;

Description

Methods

Public function NodeIndex(ANode: TX3DNode): Integer;

Looks for item with given Node. Returns -1 if not found.

Public function Node(ANode: TX3DNode): TResourceRenderer;

Looks for item with given Node. Returns Nil if not found.

Public procedure Unprepare(ANode: TX3DNode);

If resources for this Node were created (and possibly prepared), unprepare and remove them.

Note: for complicated reasons, this is ignored if called during UnprepareAll call on the same list. E.g. it may happen when your TResourceRenderer calls Unprepare on it's own list from it's own Unprepare (like TGLMultiTextureNode). Although it's ignored in this case, you still can be sure ANode will be unprepared (as UnprepareAll will eventually unprepare, well, all). Just be aware that effect may be delayed in this case.

Public procedure UnprepareAll;

Unprepare and free and nodes. Clears the list.


Generated by PasDoc 0.13.0 on 2014-08-30 12:10:38