whiteoutlib 0.1.4

Read and write Blizzard game assets from Rust: models (MDX, M2, M3), textures (BLP, DDS, PNG, JPEG, BMP, TGA, TIFF, GIF) and archives (CASC, MPQ).
Documentation
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2026 Fernando Sahmkow

#pragma once

#include <string>
#include <whiteout/models/mdx/types.h>
#include <whiteout/models/mdx/writer.h>

namespace whiteout {
namespace mdx {

/// Convert a Model to MDL text format.
/// @param model   The model to serialize.
/// @param format  Which MDL dialect to emit (default: engine-faithful).
std::string writeModelToMdl(const Model& model, MdlFormat format = MdlFormat::WarcraftIII);

} // namespace mdx
} // namespace whiteout