Classes | Macros | Typedefs | Functions | Variables
test.h File Reference
#include "box2d/box2d.h"
#include "draw.h"
#include <stdlib.h>
Include dependency graph for test.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ContactPoint
 
class  DestructionListener
 
class  Test
 
struct  TestEntry
 

Macros

#define MAX_TESTS   256
 
#define RAND_LIMIT   32767
 

Typedefs

typedef TestTestCreateFcn()
 

Functions

float RandomFloat ()
 Random number in range [-1,1]. More...
 
float RandomFloat (float lo, float hi)
 Random floating point number in range [lo, hi]. More...
 
int RegisterTest (const char *category, const char *name, TestCreateFcn *fcn)
 

Variables

int g_testCount
 
TestEntry g_testEntries [MAX_TESTS]
 
const int32 k_maxContactPoints = 2048
 

Macro Definition Documentation

◆ MAX_TESTS

#define MAX_TESTS   256

Definition at line 152 of file test.h.

◆ RAND_LIMIT

#define RAND_LIMIT   32767

Definition at line 34 of file test.h.

Typedef Documentation

◆ TestCreateFcn

typedef Test* TestCreateFcn()

Definition at line 140 of file test.h.

Function Documentation

◆ RandomFloat() [1/2]

float RandomFloat ( )
inline

Random number in range [-1,1].

Definition at line 37 of file test.h.

◆ RandomFloat() [2/2]

float RandomFloat ( float  lo,
float  hi 
)
inline

Random floating point number in range [lo, hi].

Definition at line 46 of file test.h.

◆ RegisterTest()

int RegisterTest ( const char *  category,
const char *  name,
TestCreateFcn fcn 
)

Definition at line 458 of file test.cpp.

Variable Documentation

◆ g_testCount

int g_testCount

Definition at line 456 of file test.cpp.

◆ g_testEntries

TestEntry g_testEntries[MAX_TESTS]

Definition at line 455 of file test.cpp.

◆ k_maxContactPoints

const int32 k_maxContactPoints = 2048

Definition at line 66 of file test.h.



mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22