samples.benchmark

Undocumented in source.

Members

Functions

bench
string bench(string _name)
Undocumented in source. Be warned that the author may not have intended to support it.
benchmarks
string benchmarks(string[] _names)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

benchmarknames
enum benchmarknames;
Undocumented in source.

Static functions

NoCollide_begin
cpBool NoCollide_begin(cpArbiter* arb, cpSpace* space, void* data)
Undocumented in source. Be warned that the author may not have intended to support it.
add_box
void add_box(int i, cpFloat size)
Undocumented in source. Be warned that the author may not have intended to support it.
add_circle
void add_circle(int i, cpFloat radius)
Undocumented in source. Be warned that the author may not have intended to support it.
add_hexagon
void add_hexagon(int _i, cpFloat radius)
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
frand_unit_circle
cpVect frand_unit_circle()
Undocumented in source. Be warned that the author may not have intended to support it.
init_BouncyTerrainCircles_500
cpSpace* init_BouncyTerrainCircles_500()
Undocumented in source. Be warned that the author may not have intended to support it.
init_BouncyTerrainHexagons_500
cpSpace* init_BouncyTerrainHexagons_500()
Undocumented in source. Be warned that the author may not have intended to support it.
init_ComplexTerrainCircles_1000
cpSpace* init_ComplexTerrainCircles_1000()
Undocumented in source. Be warned that the author may not have intended to support it.
init_ComplexTerrainHexagons_1000
cpSpace* init_ComplexTerrainHexagons_1000()
Undocumented in source. Be warned that the author may not have intended to support it.
init_NoCollide
cpSpace* init_NoCollide()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainBoxes_100
cpSpace* init_SimpleTerrainBoxes_100()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainBoxes_1000
cpSpace* init_SimpleTerrainBoxes_1000()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainBoxes_500
cpSpace* init_SimpleTerrainBoxes_500()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainCircles_100
cpSpace* init_SimpleTerrainCircles_100()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainCircles_1000
cpSpace* init_SimpleTerrainCircles_1000()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainCircles_500
cpSpace* init_SimpleTerrainCircles_500()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainHexagons_100
cpSpace* init_SimpleTerrainHexagons_100()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainHexagons_1000
cpSpace* init_SimpleTerrainHexagons_1000()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainHexagons_500
cpSpace* init_SimpleTerrainHexagons_500()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainVBoxes_200
cpSpace* init_SimpleTerrainVBoxes_200()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainVCircles_200
cpSpace* init_SimpleTerrainVCircles_200()
Undocumented in source. Be warned that the author may not have intended to support it.
init_SimpleTerrainVHexagons_200
cpSpace* init_SimpleTerrainVHexagons_200()
Undocumented in source. Be warned that the author may not have intended to support it.
rand_size
float rand_size()
Undocumented in source. Be warned that the author may not have intended to support it.
setupSpace_simpleTerrain
void setupSpace_simpleTerrain()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(int ticks)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

bouncy_terrain_count
int bouncy_terrain_count;
Undocumented in source.
complex_terrain_count
int complex_terrain_count;
Undocumented in source.
simple_terrain_count
int simple_terrain_count;
Undocumented in source.
space
cpSpace* space;
Undocumented in source.

Variables

bouncy_terrain_verts
enum cpVect bouncy_terrain_verts;
Undocumented in source.
complex_terrain_verts
enum cpVect complex_terrain_verts;
Undocumented in source.
simple_terrain_verts
enum cpVect simple_terrain_verts;
Undocumented in source.

Meta