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

Method Attach

trinity/Tr2RenderTarget.cpp:262–271  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Attaches this object to existing AL render target. Attached Tr2RenderTarget doesn't own the AL object, but only references it. Used for attaching to special render targets (swap chain back buffers). Arguments: renderTarget - AL render target owner - Render target owner object: Tr2RenderTarget locks

Source from the content-addressed store, hash-verified

260// is not deleted before this Tr2RenderTarget
261// --------------------------------------------------------------------------------------
262void Tr2RenderTarget::Attach( const Tr2TextureAL& renderTarget, IRoot* owner )
263{
264 Destroy();
265 m_attachedRenderTarget = renderTarget;
266 if( m_attachedOwner != owner )
267 {
268 m_attachedOwner = owner;
269 }
270 m_onTextureChange();
271}
272
273// --------------------------------------------------------------------------------------
274// Description:

Callers 15

OnPrepareResourcesMethod · 0.45
OnContextCreatedMethod · 0.45
JoinMethod · 0.45
PyUpdateColorMethod · 0.45
PyGetColorAtMethod · 0.45
PyUpdateVectorMethod · 0.45
PyGetVectorAtMethod · 0.45
PyGetVectorDotAtMethod · 0.45
PyUpdateQuaternionMethod · 0.45
PyGetQuaternionAtMethod · 0.45
PyGetQuaternionDotAtMethod · 0.45

Calls 1

DestroyFunction · 0.85

Tested by

no test coverage detected