| 493 | } |
| 494 | |
| 495 | void 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 = ℘ |
| 518 | } |
| 519 | |
| 520 | ddPop(); |
| 521 | } |
| 522 | |
| 523 | void ::Render::drawPfx(World::WorldInstance& world, Components::PfxComponent& pfx, const Render::RenderConfig& config) |
| 524 | { |