btu::nif namespace

Classes

class Mesh
struct Settings

Enums

enum class HeadpartStatus: std::uint8_t { Yes, No }

Typedefs

using Error = common::Error
using ResultError = tl::expected<void, Error>

Functions

NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Settings, target_game, rename_referenced_textures, optimize) struct OptimizationSteps
auto compute_optimization_steps(const Mesh& file, const Settings& sets) →  OptimizationSteps
auto convert(Mesh file, HeadpartStatus headpart, Game game) →  tl::expected<Mesh, Error>
auto load(Path path) →  tl::expected<Mesh, Error> noexcept
auto load(Path relative_path, std::span<std::byte> data) →  tl::expected<Mesh, Error> noexcept
void nif_optimize(Mesh& file)
auto optimize(Mesh file, const OptimizationSteps& steps) →  tl::expected<Mesh, Error>
void rename_referenced_textures(Mesh& file)
auto save(Mesh mesh, const Path& path) →  ResultError noexcept
auto save(Mesh mesh) →  tl::expected<std::vector<std::byte>, Error> noexcept

Variables

auto canonize_path constexpr

Enum documentation

Typedef documentation

using btu::nif::Error = common::Error

using btu::nif::ResultError = tl::expected<void, Error>

Function documentation

btu::nif::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Settings, target_game, rename_referenced_textures, optimize) struct OptimizationSteps

OptimizationSteps btu::nif::compute_optimization_steps(const Mesh& file, const Settings& sets)

tl::expected<Mesh, Error> btu::nif::convert(Mesh file, HeadpartStatus headpart, Game game)

tl::expected<Mesh, Error> btu::nif::load(Path path) noexcept

tl::expected<Mesh, Error> btu::nif::load(Path relative_path, std::span<std::byte> data) noexcept

void btu::nif::nif_optimize(Mesh& file)

tl::expected<Mesh, Error> btu::nif::optimize(Mesh file, const OptimizationSteps& steps)

ResultError btu::nif::save(Mesh mesh, const Path& path) noexcept

tl::expected<std::vector<std::byte>, Error> btu::nif::save(Mesh mesh) noexcept

Variable documentation

auto btu::nif::canonize_path constexpr