| 1038 | } |
| 1039 | |
| 1040 | void 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 | |
| 1053 | void Tr2Renderer::EndFrame() |
| 1054 | { |
no test coverage detected