MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / Draw

Method Draw

Source/Player/Application.cpp:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void Application::Draw() {
127 gameWorld->GetRenderWorld()->ClearDebugPrimitives(BE1::common.realTime);
128 gameWorld->GetRenderWorld()->ClearDebugText(BE1::common.realTime);
129
130 mainRenderContext->BeginFrame();
131
132 gameWorld->RenderCamera();
133
134 gameWorld->GetPhysicsWorld()->DebugDraw();
135
136 BE1::gameClient.Render(mainRenderContext);
137
138 mainRenderContext->EndFrame();
139}
140
141void Application::LoadMap(const char *mapName) {
142 gameWorld->LoadMap(mapName, BE1::GameWorld::LoadSceneMode::Single);

Callers 6

DisplayContextFunction · 0.45
DisplayContextFunction · 0.45
DisplayContextFunction · 0.45
DisplayContextFunction · 0.45
DisplayContextFunction · 0.45
DisplayContextFunction · 0.45

Calls 9

ClearDebugPrimitivesMethod · 0.80
ClearDebugTextMethod · 0.80
BeginFrameMethod · 0.80
RenderCameraMethod · 0.80
GetPhysicsWorldMethod · 0.80
GetRenderWorldMethod · 0.45
DebugDrawMethod · 0.45
RenderMethod · 0.45
EndFrameMethod · 0.45

Tested by

no test coverage detected