2025-02-04 12:53:05 +03:00

15 lines
398 B
C++

#include <gtest/gtest.h>
#include "coders/vec3.hpp"
#include "io/io.hpp"
#include "io/devices/StdfsDevice.hpp"
namespace fs = std::filesystem;
TEST(VEC3, Decode) {
io::set_device("res", std::make_shared<io::StdfsDevice>(fs::u8path("../../res")));
io::path file = "res:models/block.vec3";
auto bytes = io::read_bytes_buffer(file);
auto model = vec3::load(file.string(), bytes);
}