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:

  1. cp VerticalStack.h Foo.h
  2. Edit Foo.h
    1. Replace references to VERTICAL_STACK_H with FOO_H
    2. Replace references to VerticalStack with Foo
  3. Edit TestEntries.cpp
    1. Add #include "Foo.h"
    2. To g_TestEntries, add: {"Foo", Foo::Create},
    3. Put this as the first entry and it will be the default when testbed starts.


Image:Icon-tutorials.png‎ Tutorials

General

AS3

TOOLBOX
LANGUAGES