MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetDestination

Method SetDestination

trinity/Shader/Parameter/Tr2Matrix4Parameter.cpp:68–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void 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
92void Tr2Matrix4Parameter::GetDestination( void*& dest, size_t& size )
93{

Callers

nothing calls this directly

Calls 3

RerouteDestinationMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected