| 66 | } |
| 67 | |
| 68 | void Tr2Matrix4Parameter::SetDestination( void* dest, size_t size ) |
| 69 | { |
| 70 | if( size >= sizeof( m_value ) ) |
| 71 | { |
| 72 | m_reroutedValue = (float*)dest; |
| 73 | |
| 74 | memcpy( m_reroutedValue, &m_value, sizeof( m_value ) ); |
| 75 | |
| 76 | for( BindingVector_t::iterator it = m_bindings.begin(); it != m_bindings.end(); ++it ) |
| 77 | { |
| 78 | ( *it )->RerouteDestination( m_reroutedValue ); |
| 79 | } |
| 80 | } |
| 81 | else |
| 82 | { |
| 83 | m_reroutedValue = NULL; |
| 84 | |
| 85 | for( BindingVector_t::iterator it = m_bindings.begin(); it != m_bindings.end(); ++it ) |
| 86 | { |
| 87 | ( *it )->RerouteDestination( &m_value ); |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | void Tr2Matrix4Parameter::GetDestination( void*& dest, size_t& size ) |
| 93 | { |
nothing calls this directly
no test coverage detected