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

Method OnContextCreated

trinity/Tr2RenderContext.cpp:129–134  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Called by Tr2RenderContextAL when a primary or secondary context is created. Initializes Tr2EffectStateManager instance. Arguments: renderContext - AL render context created --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

127// renderContext - AL render context created
128// --------------------------------------------------------------------------------------
129void Tr2RenderContextBase::OnContextCreated( Tr2PrimaryRenderContextAL& renderContext )
130{
131#if !TRINITY_PLATFORM_HAS_PRIMARY_CONTEXT
132 m_backBuffer->Attach( renderContext.GetDefaultBackBuffer(), this );
133#endif
134}
135
136#if !TRINITY_PLATFORM_HAS_PRIMARY_CONTEXT
137// --------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

AttachMethod · 0.45

Tested by

no test coverage detected