Castor3D 0.12.0
Multiplatform 3D engine
Classes | Public Types | Public Member Functions | List of all members
castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits > Class Reference

AnimatedObjectGroup cache. More...

#include <AnimatedObjectGroupCache.hpp>

Inheritance diagram for castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >:
Inheritance graph
[legend]
Collaboration diagram for castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >:
Collaboration graph
[legend]

Classes

struct  MeshPoolsEntry
 
struct  SkeletonPoolsEntry
 

Public Types

using ElementT = castor3d::AnimatedObjectGroup
 
using ElementKeyT = String
 
using ElementCacheTraitsT = castor3d::AnimatedObjectGroupCacheTraits
 
using ElementCacheT = ResourceCacheBaseT< ElementT, ElementKeyT, ElementCacheTraitsT >
 
using ElementPtrT = typename ElementCacheT::ElementPtrT
 
using ElementObsT = typename ElementCacheT::ElementObsT
 
using ElementContT = typename ElementCacheT::ElementContT
 
using ElementInitialiserT = typename ElementCacheT::ElementInitialiserT
 
using ElementCleanerT = typename ElementCacheT::ElementCleanerT
 
using ElementMergerT = typename ElementCacheT::ElementMergerT
 

Public Member Functions

C3D_API ResourceCacheT (castor3d::Scene &scene)
 Constructor. More...
 
C3D_API ~ResourceCacheT ()=default
 Destructor. More...
 
C3D_API void initialise (castor3d::RenderDevice const &device)
 Initialises the cache buffers. More...
 
C3D_API void cleanup ()
 Sets all the elements to be cleaned up. More...
 
C3D_API void update (castor3d::CpuUpdater &updater)
 Updates the render pass, CPU wise. More...
 
C3D_API void clear (castor3d::RenderDevice const &device)
 Flushes the collection. More...
 
C3D_API std::vector< castor3d::AnimatedObject * > findObject (castor::String const &name) const
 
castor3d::GpuBufferOffsetT< castor3d::MorphingBufferConfiguration > const & getMorphingBuffer () const
 
castor3d::GpuBufferOffsetT< castor3d::SkinningTransformsConfiguration > const & getSkinningTransformsBuffer () const
 

Detailed Description

AnimatedObjectGroup cache.

Member Typedef Documentation

◆ ElementCacheT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementCacheT = ResourceCacheBaseT< ElementT, ElementKeyT, ElementCacheTraitsT >

◆ ElementCacheTraitsT

◆ ElementCleanerT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementCleanerT = typename ElementCacheT::ElementCleanerT

◆ ElementContT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementContT = typename ElementCacheT::ElementContT

◆ ElementInitialiserT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementInitialiserT = typename ElementCacheT::ElementInitialiserT

◆ ElementKeyT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementKeyT = String

◆ ElementMergerT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementMergerT = typename ElementCacheT::ElementMergerT

◆ ElementObsT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementObsT = typename ElementCacheT::ElementObsT

◆ ElementPtrT

using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementPtrT = typename ElementCacheT::ElementPtrT

◆ ElementT

Constructor & Destructor Documentation

◆ ResourceCacheT()

C3D_API castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ResourceCacheT ( castor3d::Scene scene)
explicit

Constructor.

Parameters
[in]sceneThe parent scene.

◆ ~ResourceCacheT()

Destructor.

Member Function Documentation

◆ cleanup()

C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::cleanup ( )

Sets all the elements to be cleaned up.

◆ clear()

C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::clear ( castor3d::RenderDevice const &  device)

Flushes the collection.

Parameters
[in]deviceThe GPU device.

◆ findObject()

C3D_API std::vector< castor3d::AnimatedObject * > castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::findObject ( castor::String const &  name) const

◆ getMorphingBuffer()

◆ getSkinningTransformsBuffer()

castor3d::GpuBufferOffsetT< castor3d::SkinningTransformsConfiguration > const & castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::getSkinningTransformsBuffer ( ) const
inline

◆ initialise()

C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::initialise ( castor3d::RenderDevice const &  device)

Initialises the cache buffers.

◆ update()

C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::update ( castor3d::CpuUpdater updater)

Updates the render pass, CPU wise.

Parameters
[in,out]updaterThe update data.

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