Adding an Entry To TestBed
From Box2D Wiki
Suppose you want to add a new entry to the Testbed called Foo. To add an entry to the TestBed program, follow these steps:
-
cp VerticalStack.h Foo.h - Edit Foo.h
- Replace references to
VERTICAL_STACK_HwithFOO_H - Replace references to
VerticalStackwithFoo
- Replace references to
- Edit TestEntries.cpp
- Add
#include "Foo.h" - To
g_TestEntries, add:{"Foo", Foo::Create}, - Put this as the first entry and it will be the default when testbed starts.
- Add
| Tutorials
General
AS3 |
