mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add VEC3 model loader
This commit is contained in:
parent
b3d942b76c
commit
91f45ad4d7
3 changed files with 263 additions and 0 deletions
12
test/coders/vec3.cpp
Normal file
12
test/coders/vec3.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
#include "coders/vec3.hpp"
|
||||
#include "files/files.hpp"
|
||||
|
||||
TEST(VEC3, Decode) {
|
||||
auto file = std::filesystem::u8path(
|
||||
"../res/content/base/models/demo.vec3"
|
||||
);
|
||||
auto bytes = files::read_bytes_buffer(file);
|
||||
auto model = vec3::load(file.u8string(), bytes);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue