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

Method draw_objects

ogsr_engine/xrGame/level_graph_debug2.cpp:353–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void CLevelGraph::draw_objects()
354{
355 u32 I = 0;
356 u32 E = Level().Objects.o_count();
357 for (; I < E; ++I)
358 {
359 CObject* _O = Level().Objects.o_get_by_iterator(I);
360
361 CCustomMonster* tpCustomMonster = smart_cast<CCustomMonster*>(_O);
362 if (tpCustomMonster)
363 {
364 tpCustomMonster->OnRender();
365 if (!tpCustomMonster->movement().detail().path().empty())
366 {
367 Fvector temp = tpCustomMonster->movement().detail().path()[tpCustomMonster->movement().detail().path().size() - 1].position;
368 Level().debug_renderer().draw_aabb(temp, 1.f, 1.f, 1.f, D3DCOLOR_XRGB(0, 0, 255));
369 }
370 }
371 }
372}
373
374#ifdef DEBUG
375

Callers

nothing calls this directly

Calls 6

movementMethod · 0.80
draw_aabbMethod · 0.80
OnRenderMethod · 0.45
emptyMethod · 0.45
pathMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected