Added MD5 (md5mesh works, md5anim has not yet been tested) and STL. new unittests, although not yet complete (material system, normals). Bugfixes (GFn and MDL7). Added HMP5 support. Rewrote MD2 and MD3 to be more stable.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@77 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
45
test/unit/utMaterialSystem.h
Normal file
45
test/unit/utMaterialSystem.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef TESTMATERIALS_H
|
||||
#define TESTMATERIALS_H
|
||||
|
||||
#include <cppunit/TestFixture.h>
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
#include <aiTypes.h>
|
||||
#include <aiMesh.h>
|
||||
#include <aiScene.h>
|
||||
#include <MaterialSystem.h>
|
||||
|
||||
|
||||
using namespace std;
|
||||
using namespace Assimp;
|
||||
|
||||
class MaterialSystemTest : public CPPUNIT_NS :: TestFixture
|
||||
{
|
||||
CPPUNIT_TEST_SUITE (MaterialSystemTest);
|
||||
CPPUNIT_TEST (testFloatProperty);
|
||||
CPPUNIT_TEST (testFloatArrayProperty);
|
||||
CPPUNIT_TEST (testIntProperty);
|
||||
CPPUNIT_TEST (testIntArrayProperty);
|
||||
CPPUNIT_TEST (testColorProperty);
|
||||
CPPUNIT_TEST (testStringProperty);
|
||||
CPPUNIT_TEST_SUITE_END ();
|
||||
|
||||
public:
|
||||
void setUp (void);
|
||||
void tearDown (void);
|
||||
|
||||
protected:
|
||||
|
||||
void testFloatProperty (void);
|
||||
void testFloatArrayProperty (void);
|
||||
void testIntProperty (void);
|
||||
void testIntArrayProperty (void);
|
||||
void testColorProperty (void);
|
||||
void testStringProperty (void);
|
||||
|
||||
private:
|
||||
|
||||
MaterialHelper* pcMat;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user