Can now load a glb model with textures embedded in the model. Further cleanup coming.
This commit is contained in:
parent
5b5e8a9fb0
commit
c6a7c42a4e
12 changed files with 323 additions and 194 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "dbc.hpp"
|
||||
|
||||
TEST_SET(shader_tests);
|
||||
TEST_SET(model_tests);
|
||||
|
||||
using namespace fuc2;
|
||||
|
||||
|
|
@ -31,7 +32,8 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
|
||||
std::vector<fuc2::Set> tests{
|
||||
shader_tests::TESTS
|
||||
shader_tests::TESTS,
|
||||
model_tests::TESTS
|
||||
};
|
||||
|
||||
return run_tests(tests, argc, argv);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
fuc2_tests = files(
|
||||
'main.cpp',
|
||||
'shader_tests.cpp',
|
||||
'model_tests.cpp',
|
||||
)
|
||||
|
|
|
|||
21
14-refactor/tests/model_tests.cpp
Normal file
21
14-refactor/tests/model_tests.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include <deque>
|
||||
#include <string>
|
||||
#include <fuc2/testing.hpp>
|
||||
#include "model.hpp"
|
||||
|
||||
using namespace fuc2;
|
||||
|
||||
namespace model_tests {
|
||||
void test_load_textures() {
|
||||
Model model{"assets/popcorn_model_a.glb"};
|
||||
}
|
||||
|
||||
|
||||
fuc2::Set TESTS{
|
||||
.name="models",
|
||||
.options={ .fail_fast=false },
|
||||
.tests={
|
||||
TEST(test_load_textures),
|
||||
}
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue