OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

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

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

Implements StdMeshInstanceValueProvider.

Definition at line 341 of file C4MeshAnimation.h.

References StdMeshInstanceValueProvider::Value.

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

Member Data Documentation


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