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

Method BeginFrame

trinity/Tr2Renderer.cpp:1040–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038}
1039
1040void Tr2Renderer::BeginFrame()
1041{
1042 Vector4 timeDataOld( 0, 0, 0, 0 );
1043 s_renderTimeVar.GetValue( timeDataOld );
1044
1045 Vector4 timeData;
1046 timeData.x = GetAnimationTime();
1047 timeData.y = timeData.x - floorf( timeData.x );
1048 timeData.z = static_cast<float>( GetCurrentFrameCounter() );
1049 timeData.w = timeDataOld.x;
1050 s_renderTimeVar = timeData;
1051}
1052
1053void Tr2Renderer::EndFrame()
1054{

Callers 1

RenderMethod · 0.45

Calls 2

GetCurrentFrameCounterFunction · 0.85
GetValueMethod · 0.45

Tested by

no test coverage detected