| 70 | } |
| 71 | |
| 72 | void Tr2FloatParameter::SetDestination( void* dest, size_t size ) |
| 73 | { |
| 74 | if( size >= sizeof( float ) ) |
| 75 | { |
| 76 | m_reroutedValue = (float*)dest; |
| 77 | *m_reroutedValue = m_value; |
| 78 | |
| 79 | for( auto it = m_bindings.begin(); it != m_bindings.end(); ++it ) |
| 80 | { |
| 81 | ( *it )->RerouteDestination( m_reroutedValue ); |
| 82 | } |
| 83 | } |
| 84 | else |
| 85 | { |
| 86 | m_reroutedValue = NULL; |
| 87 | |
| 88 | for( auto it = m_bindings.begin(); it != m_bindings.end(); ++it ) |
| 89 | { |
| 90 | ( *it )->RerouteDestination( &m_value ); |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | void Tr2FloatParameter::GetDestination( void*& dest, size_t& size ) |
| 96 | { |
no test coverage detected