Castor3D 0.16.0
Multiplatform 3D engine
|
Cache de AnimatedObjectGroup. Plus de détails...
#include <AnimatedObjectGroupCache.hpp>
Classes | |
struct | MeshPoolsEntry |
struct | SkeletonPoolsEntry |
Types publics | |
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 |
Types publics hérités de castor::ResourceCacheBaseT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits > | |
using | ElementT |
using | ElementKeyT |
using | ElementCacheTraitsT |
using | ElementCacheBaseT |
using | ElementCacheT |
using | ElementPtrT |
using | ElementObsT |
using | ElementContT |
using | ElementInitialiserT |
using | ElementCleanerT |
using | ElementMergerT |
Fonctions membres publiques | |
C3D_API | ResourceCacheT (castor3d::Scene &scene) |
Constructeur. | |
C3D_API | ~ResourceCacheT () noexcept override |
Destructeur. | |
C3D_API void | initialise (castor3d::RenderDevice const &device) |
Initialise les buffers du cache. | |
C3D_API void | cleanup () |
Met tous les éléments à nettoyer. | |
C3D_API void | update (castor3d::CpuUpdater &updater) |
Met à jour la passe de rendu, au niveau CPU. | |
C3D_API void | clear (castor3d::RenderDevice const &device) |
Vide la collection. | |
C3D_API castor::Vector< castor3d::AnimatedObject * > | findObject (castor::String const &name) const |
castor3d::GpuBufferOffsetT< castor3d::MorphingWeightsConfiguration > const & | getMorphingWeights () const |
castor3d::GpuBufferOffsetT< castor3d::SkinningTransformsConfiguration > const & | getSkinningTransformsBuffer () const |
Fonctions membres publiques hérités de castor::OwnedBy< castor3d::Scene > | |
castor3d::Scene * | getOwner () const |
L'objet propriétaire. | |
Fonctions membres publiques hérités de castor::ResourceCacheBaseT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits > | |
ResourceCacheBaseT (ResourceCacheBaseT const &)=delete | |
ResourceCacheBaseT (ResourceCacheBaseT &&) noexcept=delete | |
ResourceCacheBaseT & | operator= (ResourceCacheBaseT const &)=delete |
ResourceCacheBaseT & | operator= (ResourceCacheBaseT &&) noexcept=delete |
void | cleanup () noexcept |
Met tous les éléments à nettoyer. | |
void | clear () noexcept |
Vide la collection. | |
ElementPtrT | create (ElementKeyT const &name, ParametersT &&... parameters) const |
Crée un élément. | |
ElementObsT | tryAdd (ElementKeyT const &name, ElementPtrT &element, bool initialise=false) |
Ajoute un élément. | |
ElementObsT | tryAdd (ElementKeyT const &name, bool initialise, ElementObsT &created, ParametersT &&... parameters) |
Ajoute un élément, construict sur place. | |
ElementObsT | tryAddNoLock (ElementKeyT const &name, ElementPtrT &element, bool initialise=false) |
Ajoute un élément. | |
ElementObsT | tryAddNoLock (ElementKeyT const &name, bool initialise, ElementObsT &created, ParametersT &&... parameters) |
Ajoute un élément, construict sur place. | |
ElementObsT | add (ElementKeyT const &name, ElementPtrT &element, bool initialise=true) |
Version journalisante de tryAdd. | |
ElementObsT | add (ElementKeyT const &name, ParametersT &&... parameters) |
Version journalisante de tryAdd. | |
ElementObsT | addNoLock (ElementKeyT const &name, ElementPtrT &element, bool initialise=true) |
Version journalisante de tryAdd. | |
ElementObsT | addNoLock (ElementKeyT const &name, ParametersT &&... parameters) |
Version journalisante de tryAdd. | |
ElementPtrT | tryRemove (ElementKeyT const &name, bool cleanup=false) noexcept |
Retire un élément à partir d'un nom. | |
ElementPtrT | tryRemoveNoLock (ElementKeyT const &name, bool cleanup=false) noexcept |
Retire un élément à partir d'un nom. | |
ElementPtrT | remove (ElementKeyT const &name, bool cleanup=false) noexcept |
Version journalisante de tryAdd. | |
ElementPtrT | removeNoLock (ElementKeyT const &name, bool cleanup=false) noexcept |
Version journalisante de tryAdd. | |
void | rename (ElementKeyT const &oldName, ElementKeyT const &newName) |
Renomme une ressource. | |
ElementObsT | tryFind (ElementKeyT const &name) const noexcept |
Cherche un élément par son nom. | |
ElementObsT | tryFindNoLock (ElementKeyT const &name) const noexcept |
Cherche un élément par son nom. | |
ElementObsT | find (ElementKeyT const &name) const |
Version journalisante de tryAdd. | |
ElementObsT | findNoLock (ElementKeyT const &name) const |
Version journalisante de tryAdd. | |
void | mergeInto (ElementCacheBaseT &destination) |
Met les éléments de ce cache dans ceux de celui donné. | |
void | forEach (FuncType func) const |
void | forEach (FuncType func) |
uint32_t | getObjectCount () const noexcept |
uint32_t | getObjectCountNoLock () const noexcept |
String const & | getObjectTypeName () const noexcept |
bool | has (ElementKeyT const &name) const noexcept |
bool | hasNoLock (ElementKeyT const &name) const noexcept |
bool | isEmpty () const noexcept |
bool | isEmptyNoLock () const noexcept |
void | lock () const |
void | unlock () const noexcept |
auto | begin () noexcept |
auto | begin () const noexcept |
auto | end () noexcept |
auto | end () const noexcept |
void | reportCreation (String const &name) const |
void | reportAdded (String const &name) const |
void | reportDuplicate (String const &name) const |
void | reportNull () const |
void | reportUnknown (String const &name) const |
Cache de AnimatedObjectGroup.
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementCacheT = ResourceCacheBaseT< ElementT, ElementKeyT, ElementCacheTraitsT > |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementCacheTraitsT = castor3d::AnimatedObjectGroupCacheTraits |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementCleanerT = typename ElementCacheT::ElementCleanerT |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementContT = typename ElementCacheT::ElementContT |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementInitialiserT = typename ElementCacheT::ElementInitialiserT |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementKeyT = String |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementMergerT = typename ElementCacheT::ElementMergerT |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementObsT = typename ElementCacheT::ElementObsT |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementPtrT = typename ElementCacheT::ElementPtrT |
using castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::ElementT = castor3d::AnimatedObjectGroup |
|
explicit |
Constructeur.
[in] | scene | La scène parent. |
|
overridenoexcept |
Destructeur.
C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::cleanup | ( | ) |
Met tous les éléments à nettoyer.
C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::clear | ( | castor3d::RenderDevice const & | device | ) |
Vide la collection.
[in] | device | Le device GPU. |
C3D_API castor::Vector< castor3d::AnimatedObject * > castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::findObject | ( | castor::String const & | name | ) | const |
|
inline |
|
inline |
C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::initialise | ( | castor3d::RenderDevice const & | device | ) |
Initialise les buffers du cache.
C3D_API void castor::ResourceCacheT< castor3d::AnimatedObjectGroup, String, castor3d::AnimatedObjectGroupCacheTraits >::update | ( | castor3d::CpuUpdater & | updater | ) |
Met à jour la passe de rendu, au niveau CPU.
[in,out] | updater | Les données d'update. |