Update vertex test for coordinate system

This is also the first working version of the mesh. I successfully
loaded it in Minetest.
This commit is contained in:
JosiahWI
2022-10-17 14:27:11 -05:00
parent 3cb592369d
commit 60e70c3cc5
2 changed files with 9 additions and 6 deletions

View File

@ -29,8 +29,8 @@ TEST_CASE("minimal triangle has correct vertices") {
reinterpret_cast<irr::video::S3DVertex*>(
meshbuf->getVertices()) };
CHECK(vertices[0].Pos == irr::core::vector3df {0.0f, 0.0f, 0.0f});
CHECK(vertices[1].Pos == irr::core::vector3df {1.0f, 0.0f, 0.0f});
CHECK(vertices[2].Pos == irr::core::vector3df {1.0f, 1.0f, 0.0f});
CHECK(vertices[1].Pos == irr::core::vector3df {0.0f, 1.0f, 0.0f});
CHECK(vertices[2].Pos == irr::core::vector3df {-1.0f, 0.0f, 0.0f});
device->drop();
}