#include <array>
#include <cstddef>
#include <cstdint>
#include <expected>
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include <nlohmann/json.hpp>
Go to the source code of this file.
|
| std::expected< GltfModel, std::string > | coastline::CarModelToGltf (std::span< const std::uint8_t > bytes, std::size_t imageOffset, std::string_view bufferUri) |
| | Describe the model of a car as glTF.
|
| std::expected< GltfModel, std::string > | coastline::TrackToGltf (std::span< const std::uint8_t > bytes, std::string_view bufferUri) |
| | Describe a track as glTF.
|
| std::expected< GltfModel, std::string > | coastline::FrontEndModelToGltf (std::span< const std::uint8_t > bytes, std::string_view bufferUri) |
| | Describe a model of the front end, such as a logo of the splash screens, as glTF.
|
| std::expected< std::vector< std::uint8_t >, std::string > | coastline::ModelFromGltf (const nlohmann::ordered_json &json, std::span< const std::uint8_t > buffer) |
| | Build the file of a model or a track from its glTF, the inverse of CarModelToGltf(), TrackToGltf(), and FrontEndModelToGltf().
|