MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / InitDraw

Method InitDraw

engine/Poseidon/Graphics/Core/Engine.cpp:316–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void Engine::InitDraw(bool clear, PackedColor color)
317{
318 if (_nightVision)
319 {
320 _accomodateEye = Color(0, 8.0, 0);
321 }
322 else
323 {
324 _accomodateEye = HWhite;
325 }
326 _accomodateEye = _accomodateEye * _usrBrightness;
327 _accomodateEye.SetA(1);
328}
329
330void Engine::FinishDraw()
331{

Callers 8

RunMainLoopMethod · 0.45
SimulateMethod · 0.45
TriWaitFramesFunction · 0.45
TriDrawColorbarFunction · 0.45
TriAssertColorbarBytesFunction · 0.45
TriDrawGradient3dFunction · 0.45
DrawPatternHelperFunction · 0.45
FrameMethod · 0.45

Calls 2

ColorClass · 0.85
SetAMethod · 0.45

Tested by 5

TriWaitFramesFunction · 0.36
TriDrawColorbarFunction · 0.36
TriAssertColorbarBytesFunction · 0.36
TriDrawGradient3dFunction · 0.36
DrawPatternHelperFunction · 0.36