mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-28 07:45:40 +00:00
update assimp lib
This commit is contained in:
parent
03a348deb7
commit
d3f8fee74e
1725 changed files with 196314 additions and 62009 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2022, assimp team
|
||||
Copyright (c) 2006-2024, assimp team
|
||||
|
||||
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ using namespace Assimp;
|
|||
|
||||
class AssimpAPITest_aiMatrix3x3 : public AssimpMathTest {
|
||||
protected:
|
||||
virtual void SetUp() {
|
||||
void SetUp() override {
|
||||
result_c = result_cpp = aiMatrix3x3();
|
||||
}
|
||||
|
||||
|
|
@ -114,10 +114,19 @@ TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3InverseTest) {
|
|||
EXPECT_EQ(result_cpp, result_c);
|
||||
}
|
||||
|
||||
inline void AI_EXPECT_REAL_EQ(ai_real val1, ai_real val2) {
|
||||
#ifdef ASSIMP_DOUBLE_PRECISION
|
||||
EXPECT_DOUBLE_EQ((val1), (val2));
|
||||
#else
|
||||
EXPECT_FLOAT_EQ((val1), (val2));
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3DeterminantTest) {
|
||||
result_c = result_cpp = random_mat3();
|
||||
EXPECT_EQ(result_cpp.Determinant(),
|
||||
aiMatrix3Determinant(&result_c));
|
||||
const ai_real det_1 = result_cpp.Determinant();
|
||||
const ai_real det_2 = aiMatrix3Determinant(&result_c);
|
||||
AI_EXPECT_REAL_EQ(det_1, det_2);
|
||||
}
|
||||
|
||||
TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3RotationZTest) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue