MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / debugDrawPath

Method debugDrawPath

src/render/WorldRender.cpp:495–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void Render::debugDrawPath(const World::Waynet::WaynetInstance& waynet, const std::vector<size_t>& path)
496{
497 if (path.empty())
498 return;
499
500 ddPush();
501
502 ddSetTransform(nullptr);
503 ddSetColor(0xFF00FFFF);
504 //ddSetStipple(true, 1.0f);
505
506 const float wpAxisLen = 1.0f;
507
508 const World::Waynet::Waypoint* start = &waynet.waypoints[path[0]];
509
510 for (size_t t : path)
511 {
512 const World::Waynet::Waypoint& wp = waynet.waypoints[t];
513
514 ddMoveTo(start->position.x, start->position.y, start->position.z);
515 ddLineTo(wp.position.x, wp.position.y, wp.position.z);
516
517 start = &wp;
518 }
519
520 ddPop();
521}
522
523void ::Render::drawPfx(World::WorldInstance& world, Components::PfxComponent& pfx, const Render::RenderConfig& config)
524{

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected