Castor3D 0.16.0
Multiplatform 3D engine
castor3d::ObjectCacheTraitsT< ElementT, KeyT > Struct Template Reference

Helper structure to specialise a scene objects cache behaviour. More...

Detailed Description

template<typename ElementT, typename KeyT>
struct castor3d::ObjectCacheTraitsT< ElementT, KeyT >

Helper structure to specialise a scene objects cache behaviour.

Remarks
Must hold:
  • Name: The element type name.
  • ElementT: The resource type.
  • ElementPtrT: The resource pointer type.
  • ElementObjT: The resource observer type.
  • ElementContT: The resource container type.
  • ElementCacheT: The resource base cache type.
  • ElementInitialiserT: The prototype of the function use to initialise a resource.
  • ElementCleanerT: The prototype of the function use to cleanup a resource.
  • ElementMergerT: The prototype of the function use to merge a cache element into another cache.
  • ElementAttacherT: The prototype of the function use to attach a cache element to a scene node.
  • ElementDetacherT: The prototype of the function use to detach a cache element from a scene node.
  • static ElementPtrT makeElement( ElementKeyT const &, ParametersT && ... ): The element creation function.

The documentation for this struct was generated from the following file: