use mvc for the testbed, update almost all tests, bugfixes, improvements, cleanup
Since I started altering the testbed for better maintainability, I prefered to drop this (tested) large change with a single commit. Some changes below: Put some globals in their correct place, Now Testbed uses the MVC pattern (Model-View Controller). This way it becomes better to maintain than using no pattern in my opinion. Fixed some bugs in the debug draw interface. Of course, updated almost all tests because of the differences. Update script.
This commit is contained in:
@ -117,4 +117,18 @@ TestEntry g_tests[] =
|
||||
{ "Mass-Spring System", &MassSpring::Create },
|
||||
{ "Shift Center", &ShiftCenter::Create },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
};
|
||||
|
||||
//
|
||||
static u32 TestCount()
|
||||
{
|
||||
u32 count = 0;
|
||||
while (g_tests[count].create != NULL)
|
||||
{
|
||||
++count;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
// Count the tests
|
||||
u32 g_testCount = TestCount();
|
Reference in New Issue
Block a user