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

Method DoQueryBegin

trinity/Interior/Tr2InteriorScene.cpp:1075–1087  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description This function executes a query begin event in a prepass batch gathering operation. It initializes a bunch of state variables needed for tracking the query through the scene. Unlike during DoQueryBeginForwardPass, it does not initialize the transparency stack because pre-pass, light-pass, and shadows

Source from the content-addressed store, hash-verified

1073// OnQueryBegin
1074// --------------------------------------------------------------------------------------
1075void Tr2InteriorScene::DoQueryBegin( const Tr2VisibilityEvent& event )
1076{
1077 CCP_ASSERT( event.m_eventType == Tr2VisibilityEvent::QUERY_BEGIN );
1078
1079 // Clear lights
1080 m_activeLightSet.Clear();
1081
1082 // If we're gathering forward batches, then we need a background cubemap batch here
1083 for( auto it = m_lights.begin(); it != m_lights.end(); ++it )
1084 {
1085 m_activeLightSet.AddLight( *it, Vector3( 0.f, 0.f, 0.f ) );
1086 }
1087}
1088
1089// --------------------------------------------------------------------------------------
1090// Description

Callers

nothing calls this directly

Calls 5

Vector3Class · 0.50
ClearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
AddLightMethod · 0.45

Tested by

no test coverage detected