| 385 | } |
| 386 | |
| 387 | void FastRenderer::StartLine(Vec2 pt, Color c) |
| 388 | { |
| 389 | #ifdef _DEBUG |
| 390 | if (!activeBatch) |
| 391 | { |
| 392 | pmlog_warn("Batch not open"); |
| 393 | } |
| 394 | if (chainSize) |
| 395 | { |
| 396 | pmlog_warn("Chain not closed"); |
| 397 | } |
| 398 | if (activeBatch->topology != D3D11_PRIMITIVE_TOPOLOGY_LINELIST) |
| 399 | { |
| 400 | pmlog_error("Not line topology"); |
| 401 | throw Except<GraphicsException>(); |
| 402 | } |
| 403 | #endif |
| 404 | chainColor = c; |
| 405 | chainSize = 1; |
| 406 | WriteIndex(nVertices); |
| 407 | WriteVertex(pt); |
| 408 | } |
| 409 | |
| 410 | void FastRenderer::AddVertex(Vec2 pt) |
| 411 | { |