| 316 | } |
| 317 | |
| 318 | void CRender::LoadVisuals(IReader* fs) |
| 319 | { |
| 320 | u32 index = 0; |
| 321 | dxRender_Visual* V = nullptr; |
| 322 | ogf_header H; |
| 323 | |
| 324 | IReader* chunk; |
| 325 | |
| 326 | while ((chunk = fs->open_chunk(index)) != nullptr) |
| 327 | { |
| 328 | chunk->r_chunk_safe(OGF_HEADER, &H, sizeof(H)); |
| 329 | |
| 330 | V = Models->Instance_Create(H.type); |
| 331 | V->Load(nullptr, chunk, 0); |
| 332 | V->is_level_static = true; |
| 333 | |
| 334 | Visuals.push_back(V); |
| 335 | |
| 336 | chunk->close(); |
| 337 | |
| 338 | index++; |
| 339 | } |
| 340 | |
| 341 | Msg("Loaded [%d] models from level.", Visuals.size()); |
| 342 | } |
| 343 | |
| 344 | void CRender::LoadLights(IReader* fs) |
| 345 | { |
nothing calls this directly
no test coverage detected