Class NXOCParser

Inheritance Relationships

Base Type

Class Documentation

class inexor::vulkan_renderer::io::NXOCParser : public inexor::vulkan_renderer::io::OctreeParser

Public Functions

virtual ByteStream serialize(std::shared_ptr<const world::Cube> cube, std::uint32_t version) final

Serialization of an octree.

virtual std::shared_ptr<world::Cube> deserialize(const ByteStream &stream) final

Deserialization of an octree.

Private Functions

template<std::size_t version>
ByteStream serialize_impl(std::shared_ptr<const world::Cube> cube)

Specific version serialization.

template<std::size_t version>
std::shared_ptr<world::Cube> deserialize_impl(const ByteStream &stream)

Specific version deserialization.

Private Static Attributes

static constexpr std::uint32_t LATEST_VERSION = {0}