MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Begin

Method Begin

ogsr_engine/xr_3da/device.cpp:32–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30bool is_editor_active{};
31
32BOOL CRenderDevice::Begin()
33{
34 switch (m_pRender->GetDeviceState())
35 {
36 case IRenderDeviceRender::dsOK: break;
37
38 case IRenderDeviceRender::dsLost:
39 // If the device was lost, do not render until we get it back
40 Sleep(33);
41 return FALSE;
42 break;
43
44 case IRenderDeviceRender::dsNeedReset:
45 // Check if the device is ready to be reset
46 Reset();
47 break;
48
49 default: R_ASSERT(0);
50 }
51
52
53 ::Render->Begin();
54
55 R_ASSERT(g_bRendering == FALSE, "Something Strange");
56
57 g_bRendering = TRUE;
58
59 return TRUE;
60}
61
62void CRenderDevice::Clear() { ::Render->Clear(); }
63

Callers 15

shedule_UpdateMethod · 0.45
move_along_pathMethod · 0.45
OnFrameMethod · 0.45
OnFrameMethod · 0.45
StepMethod · 0.45
shedule_UpdateMethod · 0.45
eye_pp_s1Method · 0.45
eye_pp_s2Method · 0.45
Exec_VisibilityMethod · 0.45
eye_pp_s01Method · 0.45
eye_pp_s2Method · 0.45
ai_stalker.cppFile · 0.45

Calls 2

GetDeviceStateMethod · 0.80
ResetFunction · 0.70

Tested by

no test coverage detected