OpenClonk
C4ValueProviderRef< SourceT > Class Template Reference

#include <C4MeshAnimation.h>

Inheritance diagram for C4ValueProviderRef< SourceT >:
[legend]
Collaboration diagram for C4ValueProviderRef< SourceT >:
[legend]

Public Member Functions

 C4ValueProviderRef (const SourceT &ref, C4Real scale)
 
bool Execute () override
 

Public Attributes

C4Real Value
 

Detailed Description

template<typename SourceT>
class C4ValueProviderRef< SourceT >

Definition at line 335 of file C4MeshAnimation.h.

Constructor & Destructor Documentation

◆ C4ValueProviderRef()

template<typename SourceT >
C4ValueProviderRef< SourceT >::C4ValueProviderRef ( const SourceT &  ref,
C4Real  scale 
)
inline

Definition at line 338 of file C4MeshAnimation.h.

338  :
339  Ref(ref), Scale(scale) {}

Member Function Documentation

◆ Execute()

template<typename SourceT >
bool C4ValueProviderRef< SourceT >::Execute ( )
inlineoverridevirtual

Implements StdMeshInstanceValueProvider.

Definition at line 341 of file C4MeshAnimation.h.

342  {
343  Value = Scale * Ref;
344  return true;
345  }

References StdMeshInstanceValueProvider::Value.

Member Data Documentation

◆ Value


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