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

Function CopyMatrixToTriMatrix

trinity/TriValueBinding.cpp:220–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static bool CopyMatrixToTriMatrix( void* srcVar, void* dstVar, float /*scale*/, const Vector4& /*offset*/ )
221{
222 if( ITriMatrixPtr mp = BlueCastPtr( static_cast<IRoot*>( srcVar ) ) )
223 {
224 auto src = static_cast<Matrix*>( srcVar );
225 auto dst = mp->GetMatrix();
226 if( *src != *dst )
227 {
228 mp->SetMatrix( static_cast<Matrix*>( srcVar ) );
229 return true;
230 }
231 }
232 return false;
233}
234
235static bool CopyVector3ToTriVector( void* srcVar, void* dstVar, float scale, const Vector4& offset )
236{

Callers

nothing calls this directly

Calls 2

GetMatrixMethod · 0.80
SetMatrixMethod · 0.80

Tested by

no test coverage detected