| 404 | |
| 405 | template <uint32_t iden, typename It> |
| 406 | void write_block(std::ostream& fs, It begin, It end) { |
| 407 | uint32_t N = std::distance(begin, end); |
| 408 | write_header<iden>(fs, N); |
| 409 | fs.write((const char*)&*begin, N); |
| 410 | write_padding<iden>(fs, N); |
| 411 | } |
| 412 | |
| 413 | void GltfSerializer::finalize() { |
| 414 | // separate z up |